
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

uchar * unw_decode_b1(uchar *dp,uint code,void *arg,uchar *end)

{
  if ((code & 0x20) != 0) {
    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);
    return dp;
  }
  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);
  return dp;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0004ada0(undefined4 param_1,uint param_2)

{
  if ((param_2 & 0x20) != 0) {
    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);
    return param_1;
  }
  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);
  return param_1;
}


PUSH EBX
CALL 0x00013f70
ADD EBX,0x6925a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,EAX
AND EDX,0x1f
TEST AL,0x20
JZ 0x0004ade0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffda5c2]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfffda5c5]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x10]
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffda5c2]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfffda5e0]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x10]
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0004ada0(undefined4 param_1,uint param_2)\n\n{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}\n\n" comment (function_definition "undefined4 FUN_0004ada0(undefined4 param_1,uint param_2)\n\n{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" type_identifier (function_declarator "FUN_0004ada0(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" { (if_statement "if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" if (parenthesized_expression "((param_2 & 0x20) != 0)" ( (binary_expression "(param_2 & 0x20) != 0" (parenthesized_expression "(param_2 & 0x20)" ( (binary_expression "param_2 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" { (expression_statement "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" identifier (argument_list "("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" ( (string_literal ""\t%s:copy_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" identifier (argument_list "("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" ( (string_literal ""\t%s:label_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nuchar * unw_decode_b1(uchar *dp,uint code,void *arg,uchar *end)\n\n{\n  if ((code & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n    return dp;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n  return dp;\n}\n\n" comment comment (function_definition "uchar * unw_decode_b1(uchar *dp,uint code,void *arg,uchar *end)\n\n{\n  if ((code & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n    return dp;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n  return dp;\n}" type_identifier (pointer_declarator "* unw_decode_b1(uchar *dp,uint code,void *arg,uchar *end)" * (function_declarator "unw_decode_b1(uchar *dp,uint code,void *arg,uchar *end)" identifier (parameter_list "(uchar *dp,uint code,void *arg,uchar *end)" ( (parameter_declaration "uchar *dp" type_identifier (pointer_declarator "*dp" * identifier)) , (parameter_declaration "uint code" type_identifier identifier) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "uchar *end" type_identifier (pointer_declarator "*end" * identifier)) )))) (compound_statement "{\n  if ((code & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n    return dp;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n  return dp;\n}" { (if_statement "if ((code & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n    return dp;\n  }" if (parenthesized_expression "((code & 0x20) != 0)" ( (binary_expression "(code & 0x20) != 0" (parenthesized_expression "(code & 0x20)" ( (binary_expression "code & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);\n    return dp;\n  }" { (expression_statement "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);" (call_expression "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f)" identifier (argument_list "("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f)" ( (string_literal ""\t%s:copy_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "code & 0x1f" identifier & number_literal) ))) ;) (return_statement "return dp;" return identifier ;) })) (expression_statement "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f);" (call_expression "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f)" identifier (argument_list "("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,code & 0x1f)" ( (string_literal ""\t%s:label_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "code & 0x1f" identifier & number_literal) ))) ;) (return_statement "return dp;" return identifier ;) })))
(translation_unit "undefined4 FUN_0004ada0(undefined4 param_1,uint param_2)\n\n{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}\n\n" (function_definition "undefined4 FUN_0004ada0(undefined4 param_1,uint param_2)\n\n{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" type_identifier (function_declarator "FUN_0004ada0(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" { (if_statement "if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" if (parenthesized_expression "((param_2 & 0x20) != 0)" ( (binary_expression "(param_2 & 0x20) != 0" (parenthesized_expression "(param_2 & 0x20)" ( (binary_expression "param_2 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" { (expression_statement "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" identifier (argument_list "("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" ( (string_literal ""\t%s:copy_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" identifier (argument_list "("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" ( (string_literal ""\t%s:label_state(label=%lu)\n"" " escape_sequence string_content escape_sequence ") , (pointer_expression "&DAT_0008e5c2" & identifier) , (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (pointer_expression & IDENT) , (binary_expression IDENT & LIT) ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (pointer_expression & IDENT) , (binary_expression IDENT & LIT) ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0004ada0(undefined4 param_1,uint param_2)\n\n{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004ada0(undefined4 param_1,uint param_2)" (identifier "FUN_0004ada0") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }\n  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n  return param_1;\n}" ({ "{") (if_statement "if ((param_2 & 0x20) != 0) {\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" (if "if") (parenthesized_expression "((param_2 & 0x20) != 0)" (( "(") (binary_expression "(param_2 & 0x20) != 0" (parenthesized_expression "(param_2 & 0x20)" (( "(") (binary_expression "param_2 & 0x20" (identifier "param_2") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);\n    return param_1;\n  }" ({ "{") (expression_statement "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" (identifier "printf") (argument_list "("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" (( "(") (string_literal ""\t%s:copy_state(label=%lu)\n"" (" """) (escape_sequence "\t") (string_content "%s:copy_state(label=%lu)") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "&DAT_0008e5c2" (& "&") (identifier "DAT_0008e5c2")) (, ",") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);" (call_expression "printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" (identifier "printf") (argument_list "("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f)" (( "(") (string_literal ""\t%s:label_state(label=%lu)\n"" (" """) (escape_sequence "\t") (string_content "%s:label_state(label=%lu)") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "&DAT_0008e5c2" (& "&") (identifier "DAT_0008e5c2")) (, ",") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_1 *dp,type_2 var_1,void *arg,type_1 *end)

{
  if ((var_1 & 0x20) != 0) {
    var_2("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,var_1 & 0x1f);
    return dp;
  }
  var_2("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,var_1 & 0x1f);
  return dp;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(undefined4 param_1,uint param_2)

{
  if ((param_2 & 0x20) != 0) {
    printf("\t%s:copy_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);
    return param_1;
  }
  printf("\t%s:label_state(label=%lu)\n",&DAT_0008e5c2,param_2 & 0x1f);
  return param_1;
}

