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

void call(char *name,int line)

{
  Symbol *data;
  int iVar1;
  
  data = add_reference(name,line);
  if (data != (Symbol *)0x0) {
    if (data->arity < 0) {
      data->arity = 0;
    }
    if (caller != (Symbol *)0x0) {
      iVar1 = data_in_list(caller,data->caller);
      if (iVar1 == 0) {
        linked_list_append(&data->caller,caller);
      }
      iVar1 = data_in_list(data,caller->callee);
      if (iVar1 == 0) {
        linked_list_append(&caller->callee,data);
        return;
      }
    }
  }
  return;
}



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

void FUN_0001a690(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = FUN_0001a5a0(param_1,param_2);
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 0x40) < 0) {
      *(undefined4 *)(iVar1 + 0x40) = 0;
    }
    if (DAT_0003bbd4 != 0) {
      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));
      if (iVar2 == 0) {
        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);
      }
      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));
      if (iVar2 == 0) {
        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);
        return;
      }
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012830
ADD EBX,0x207d8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x0001a5a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a6f2
MOV ESI,EAX
MOV EAX,dword ptr [EAX + 0x40]
TEST EAX,EAX
JS 0x0001a700
LEA EDI,[EBX + 0xd64]
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0001a6f2
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4c]
PUSH EAX
CALL 0x000169d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a730
MOV EAX,dword ptr [EDI]
SUB ESP,0x8
PUSH dword ptr [EAX + 0x50]
PUSH ESI
CALL 0x000169d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a718
POP EBX
POP ESI
POP EDI
RET
LEA EDI,[EBX + 0xd64]
MOV dword ptr [ESI + 0x40],0x0
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JNZ 0x0001a6ca
JMP 0x0001a6f2
MOV EAX,dword ptr [EDI]
SUB ESP,0x8
PUSH ESI
ADD EAX,0x50
PUSH EAX
CALL 0x00016760
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
LEA EAX,[ESI + 0x4c]
PUSH dword ptr [EDI]
PUSH EAX
CALL 0x00016760
ADD ESP,0x10
JMP 0x0001a6dd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001a690(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001a690(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001a690(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001a5a0(param_1,param_2);" (assignment_expression "iVar1 = FUN_0001a5a0(param_1,param_2)" identifier = (call_expression "FUN_0001a5a0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" { (if_statement "if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) < 0)" ( (binary_expression "*(int *)(iVar1 + 0x40) < 0" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" * (cast_expression "(undefined4 *)(iVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(DAT_0003bbd4 != 0)" ( (binary_expression "DAT_0003bbd4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" { (expression_statement "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));" (assignment_expression "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" identifier = (call_expression "FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" identifier (argument_list "(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x4c)" * (cast_expression "(undefined4 *)(iVar1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" { (expression_statement "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);" (call_expression "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4)" identifier (argument_list "(iVar1 + 0x4c,DAT_0003bbd4)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));" (assignment_expression "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" identifier = (call_expression "FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" identifier (argument_list "(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_0003bbd4 + 0x50)" * (cast_expression "(undefined4 *)(DAT_0003bbd4 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0003bbd4 + 0x50)" ( (binary_expression "DAT_0003bbd4 + 0x50" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" { (expression_statement "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);" (call_expression "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1)" identifier (argument_list "(DAT_0003bbd4 + 0x50,iVar1)" ( (binary_expression "DAT_0003bbd4 + 0x50" identifier + number_literal) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid call(char *name,int line)\n\n{\n  Symbol *data;\n  int iVar1;\n  \n  data = add_reference(name,line);\n  if (data != (Symbol *)0x0) {\n    if (data->arity < 0) {\n      data->arity = 0;\n    }\n    if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void call(char *name,int line)\n\n{\n  Symbol *data;\n  int iVar1;\n  \n  data = add_reference(name,line);\n  if (data != (Symbol *)0x0) {\n    if (data->arity < 0) {\n      data->arity = 0;\n    }\n    if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "call(char *name,int line)" identifier (parameter_list "(char *name,int line)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int line" primitive_type identifier) ))) (compound_statement "{\n  Symbol *data;\n  int iVar1;\n  \n  data = add_reference(name,line);\n  if (data != (Symbol *)0x0) {\n    if (data->arity < 0) {\n      data->arity = 0;\n    }\n    if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "Symbol *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "data = add_reference(name,line);" (assignment_expression "data = add_reference(name,line)" identifier = (call_expression "add_reference(name,line)" identifier (argument_list "(name,line)" ( identifier , identifier )))) ;) (if_statement "if (data != (Symbol *)0x0) {\n    if (data->arity < 0) {\n      data->arity = 0;\n    }\n    if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(data != (Symbol *)0x0)" ( (binary_expression "data != (Symbol *)0x0" identifier != (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (data->arity < 0) {\n      data->arity = 0;\n    }\n    if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }\n  }" { (if_statement "if (data->arity < 0) {\n      data->arity = 0;\n    }" if (parenthesized_expression "(data->arity < 0)" ( (binary_expression "data->arity < 0" (field_expression "data->arity" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n      data->arity = 0;\n    }" { (expression_statement "data->arity = 0;" (assignment_expression "data->arity = 0" (field_expression "data->arity" identifier -> field_identifier) = number_literal) ;) })) (if_statement "if (caller != (Symbol *)0x0) {\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }" if (parenthesized_expression "(caller != (Symbol *)0x0)" ( (binary_expression "caller != (Symbol *)0x0" identifier != (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = data_in_list(caller,data->caller);\n      if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }\n      iVar1 = data_in_list(data,caller->callee);\n      if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }\n    }" { (expression_statement "iVar1 = data_in_list(caller,data->caller);" (assignment_expression "iVar1 = data_in_list(caller,data->caller)" identifier = (call_expression "data_in_list(caller,data->caller)" identifier (argument_list "(caller,data->caller)" ( identifier , (field_expression "data->caller" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        linked_list_append(&data->caller,caller);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        linked_list_append(&data->caller,caller);\n      }" { (expression_statement "linked_list_append(&data->caller,caller);" (call_expression "linked_list_append(&data->caller,caller)" identifier (argument_list "(&data->caller,caller)" ( (pointer_expression "&data->caller" & (field_expression "data->caller" identifier -> field_identifier)) , identifier ))) ;) })) (expression_statement "iVar1 = data_in_list(data,caller->callee);" (assignment_expression "iVar1 = data_in_list(data,caller->callee)" identifier = (call_expression "data_in_list(data,caller->callee)" identifier (argument_list "(data,caller->callee)" ( identifier , (field_expression "caller->callee" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        linked_list_append(&caller->callee,data);\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        linked_list_append(&caller->callee,data);\n        return;\n      }" { (expression_statement "linked_list_append(&caller->callee,data);" (call_expression "linked_list_append(&caller->callee,data)" identifier (argument_list "(&caller->callee,data)" ( (pointer_expression "&caller->callee" & (field_expression "caller->callee" identifier -> field_identifier)) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001a690(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001a690(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001a690(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001a5a0(param_1,param_2);" (assignment_expression "iVar1 = FUN_0001a5a0(param_1,param_2)" identifier = (call_expression "FUN_0001a5a0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" { (if_statement "if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) < 0)" ( (binary_expression "*(int *)(iVar1 + 0x40) < 0" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" * (cast_expression "(undefined4 *)(iVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(DAT_0003bbd4 != 0)" ( (binary_expression "DAT_0003bbd4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" { (expression_statement "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));" (assignment_expression "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" identifier = (call_expression "FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" identifier (argument_list "(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x4c)" * (cast_expression "(undefined4 *)(iVar1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" { (expression_statement "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);" (call_expression "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4)" identifier (argument_list "(iVar1 + 0x4c,DAT_0003bbd4)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));" (assignment_expression "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" identifier = (call_expression "FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" identifier (argument_list "(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_0003bbd4 + 0x50)" * (cast_expression "(undefined4 *)(DAT_0003bbd4 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0003bbd4 + 0x50)" ( (binary_expression "DAT_0003bbd4 + 0x50" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" { (expression_statement "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);" (call_expression "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1)" identifier (argument_list "(DAT_0003bbd4 + 0x50,iVar1)" ( (binary_expression "DAT_0003bbd4 + 0x50" identifier + number_literal) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return ;) })) })) })) (return_statement return ;) })))
(function_definition "void FUN_0001a690(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001a690(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0001a690") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = FUN_0001a5a0(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = FUN_0001a5a0(param_1,param_2);" (assignment_expression "iVar1 = FUN_0001a5a0(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a5a0(param_1,param_2)" (identifier "FUN_0001a5a0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }\n    if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }\n  }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x40) < 0) {\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x40) < 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x40) < 0" (pointer_expression "*(int *)(iVar1 + 0x40)" (* "*") (cast_expression "(int *)(iVar1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x40) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (DAT_0003bbd4 != 0) {\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_0003bbd4 != 0)" (( "(") (binary_expression "DAT_0003bbd4 != 0" (identifier "DAT_0003bbd4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));\n      if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }\n      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));\n      if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));" (assignment_expression "iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" (identifier "iVar2") (= "=") (call_expression "FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" (identifier "FUN_000169d0") (argument_list "(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c))" (( "(") (identifier "DAT_0003bbd4") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4c)" (( "(") (binary_expression "iVar1 + 0x4c" (identifier "iVar1") (+ "+") (number_literal "0x4c")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);\n      }" ({ "{") (expression_statement "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);" (call_expression "FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4)" (identifier "FUN_00016760") (argument_list "(iVar1 + 0x4c,DAT_0003bbd4)" (( "(") (binary_expression "iVar1 + 0x4c" (identifier "iVar1") (+ "+") (number_literal "0x4c")) (, ",") (identifier "DAT_0003bbd4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));" (assignment_expression "iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" (identifier "iVar2") (= "=") (call_expression "FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" (identifier "FUN_000169d0") (argument_list "(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(DAT_0003bbd4 + 0x50)" (* "*") (cast_expression "(undefined4 *)(DAT_0003bbd4 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0003bbd4 + 0x50)" (( "(") (binary_expression "DAT_0003bbd4 + 0x50" (identifier "DAT_0003bbd4") (+ "+") (number_literal "0x50")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);\n        return;\n      }" ({ "{") (expression_statement "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);" (call_expression "FUN_00016760(DAT_0003bbd4 + 0x50,iVar1)" (identifier "FUN_00016760") (argument_list "(DAT_0003bbd4 + 0x50,iVar1)" (( "(") (binary_expression "DAT_0003bbd4 + 0x50" (identifier "DAT_0003bbd4") (+ "+") (number_literal "0x50")) (, ",") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *name,int line)

{
  type_1 *var_2;
  int var_5;
  
  var_2 = var_1(name,line);
  if (var_2 != (type_1 *)0x0) {
    if (var_2->arity < 0) {
      var_2->arity = 0;
    }
    if (var_3 != (type_1 *)0x0) {
      var_5 = var_4(var_3,var_2->var_3);
      if (var_5 == 0) {
        var_6(&var_2->var_3,var_3);
      }
      var_5 = var_4(var_2,var_3->callee);
      if (var_5 == 0) {
        var_6(&var_3->callee,var_2);
        return;
      }
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) 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 (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (return_statement))))))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = FUN_0001a5a0(param_1,param_2);
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 0x40) < 0) {
      *(undefined4 *)(iVar1 + 0x40) = 0;
    }
    if (DAT_0003bbd4 != 0) {
      iVar2 = FUN_000169d0(DAT_0003bbd4,*(undefined4 *)(iVar1 + 0x4c));
      if (iVar2 == 0) {
        FUN_00016760(iVar1 + 0x4c,DAT_0003bbd4);
      }
      iVar2 = FUN_000169d0(iVar1,*(undefined4 *)(DAT_0003bbd4 + 0x50));
      if (iVar2 == 0) {
        FUN_00016760(DAT_0003bbd4 + 0x50,iVar1);
        return;
      }
    }
  }
  return;
}

