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

void lang_enter_overlay_section(char *name)

{
  overlay_list *poVar1;
  etree_type *rhs;
  
  lang_enter_output_section_statement
            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0
             ,0);
  if (overlay_list == (overlay_list *)0x0) {
    overlay_vma = exp_nameop(0x143,name);
  }
  poVar1 = (overlay_list *)xmalloc(8);
  poVar1->os = current_section;
  poVar1->next = overlay_list;
  overlay_list = poVar1;
  rhs = exp_nameop(0x141,name);
  if (overlay_max != (etree_type *)0x0) {
    overlay_max = exp_binop(0x145,overlay_max,rhs);
    return;
  }
  overlay_max = rhs;
  return;
}



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

void FUN_00029f80(undefined4 param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);
  if (DAT_001c3874 == (int *)0x0) {
    DAT_001c3880 = FUN_00032d00(0x143,param_1);
  }
  piVar1 = (int *)xmalloc(8);
  piVar1[1] = DAT_001c3898;
  *piVar1 = (int)DAT_001c3874;
  DAT_001c3874 = piVar1;
  uVar2 = FUN_00032d00(0x141,param_1);
  if (DAT_001c3878 != 0) {
    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);
    return;
  }
  DAT_001c3878 = uVar2;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x198079
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBX + 0x187c]
PUSH 0x0
PUSH 0x1
PUSH dword ptr [EBX + 0x1880]
PUSH ESI
CALL 0x00028800
MOV ECX,dword ptr [EBX + 0x1874]
ADD ESP,0x20
TEST ECX,ECX
JZ 0x0002a030
SUB ESP,0xc
PUSH 0x8
CALL 0x00016e98
MOV EDX,dword ptr [EBX + 0x1898]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [EBX + 0x1874]
MOV dword ptr [EBX + 0x1874],EAX
MOV dword ptr [EAX],EDX
POP EAX
POP EDX
PUSH ESI
PUSH 0x141
CALL 0x00032d00
MOV EDX,dword ptr [EBX + 0x1878]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x0002a020
SUB ESP,0x4
PUSH EAX
PUSH EDX
PUSH 0x145
CALL 0x00032b80
ADD ESP,0x10
MOV dword ptr [EBX + 0x1878],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV dword ptr [EBX + 0x1878],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH ESI
PUSH 0x143
CALL 0x00032d00
ADD ESP,0x10
MOV dword ptr [EBX + 0x1880],EAX
JMP 0x00029fbd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00029f80(undefined4 param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}\n\n" comment (function_definition "void FUN_00029f80(undefined4 param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00029f80(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);" (call_expression "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" identifier (argument_list "(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal , number_literal ))) ;) (if_statement "if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" if (parenthesized_expression "(DAT_001c3874 == (int *)0x0)" ( (binary_expression "DAT_001c3874 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" { (expression_statement "DAT_001c3880 = FUN_00032d00(0x143,param_1);" (assignment_expression "DAT_001c3880 = FUN_00032d00(0x143,param_1)" identifier = (call_expression "FUN_00032d00(0x143,param_1)" identifier (argument_list "(0x143,param_1)" ( number_literal , identifier )))) ;) })) (expression_statement "piVar1 = (int *)xmalloc(8);" (assignment_expression "piVar1 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = DAT_001c3898;" (assignment_expression "piVar1[1] = DAT_001c3898" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = (int)DAT_001c3874;" (assignment_expression "*piVar1 = (int)DAT_001c3874" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)DAT_001c3874" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_001c3874 = piVar1;" (assignment_expression "DAT_001c3874 = piVar1" identifier = identifier) ;) (expression_statement "uVar2 = FUN_00032d00(0x141,param_1);" (assignment_expression "uVar2 = FUN_00032d00(0x141,param_1)" identifier = (call_expression "FUN_00032d00(0x141,param_1)" identifier (argument_list "(0x141,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" if (parenthesized_expression "(DAT_001c3878 != 0)" ( (binary_expression "DAT_001c3878 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" { (expression_statement "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);" (assignment_expression "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2)" identifier = (call_expression "FUN_00032b80(0x145,DAT_001c3878,uVar2)" identifier (argument_list "(0x145,DAT_001c3878,uVar2)" ( number_literal , identifier , identifier )))) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_001c3878 = uVar2;" (assignment_expression "DAT_001c3878 = uVar2" identifier = identifier) ;) (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 lang_enter_overlay_section(char *name)\n\n{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(8);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    overlay_max = exp_binop(0x145,overlay_max,rhs);\n    return;\n  }\n  overlay_max = rhs;\n  return;\n}\n\n" comment comment (function_definition "void lang_enter_overlay_section(char *name)\n\n{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(8);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    overlay_max = exp_binop(0x145,overlay_max,rhs);\n    return;\n  }\n  overlay_max = rhs;\n  return;\n}" primitive_type (function_declarator "lang_enter_overlay_section(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(8);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    overlay_max = exp_binop(0x145,overlay_max,rhs);\n    return;\n  }\n  overlay_max = rhs;\n  return;\n}" { (declaration "overlay_list *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "etree_type *rhs;" type_identifier (pointer_declarator "*rhs" * identifier) ;) (expression_statement "lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);" (call_expression "lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0)" identifier (argument_list "(name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0)" ( identifier , identifier , identifier , (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , number_literal ))) ;) (if_statement "if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }" if (parenthesized_expression "(overlay_list == (overlay_list *)0x0)" ( (binary_expression "overlay_list == (overlay_list *)0x0" identifier == (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    overlay_vma = exp_nameop(0x143,name);\n  }" { (expression_statement "overlay_vma = exp_nameop(0x143,name);" (assignment_expression "overlay_vma = exp_nameop(0x143,name)" identifier = (call_expression "exp_nameop(0x143,name)" identifier (argument_list "(0x143,name)" ( number_literal , identifier )))) ;) })) (expression_statement "poVar1 = (overlay_list *)xmalloc(8);" (assignment_expression "poVar1 = (overlay_list *)xmalloc(8)" identifier = (cast_expression "(overlay_list *)xmalloc(8)" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "poVar1->os = current_section;" (assignment_expression "poVar1->os = current_section" (field_expression "poVar1->os" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar1->next = overlay_list;" (assignment_expression "poVar1->next = overlay_list" (field_expression "poVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "overlay_list = poVar1;" (assignment_expression "overlay_list = poVar1" identifier = identifier) ;) (expression_statement "rhs = exp_nameop(0x141,name);" (assignment_expression "rhs = exp_nameop(0x141,name)" identifier = (call_expression "exp_nameop(0x141,name)" identifier (argument_list "(0x141,name)" ( number_literal , identifier )))) ;) (if_statement "if (overlay_max != (etree_type *)0x0) {\n    overlay_max = exp_binop(0x145,overlay_max,rhs);\n    return;\n  }" if (parenthesized_expression "(overlay_max != (etree_type *)0x0)" ( (binary_expression "overlay_max != (etree_type *)0x0" identifier != (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    overlay_max = exp_binop(0x145,overlay_max,rhs);\n    return;\n  }" { (expression_statement "overlay_max = exp_binop(0x145,overlay_max,rhs);" (assignment_expression "overlay_max = exp_binop(0x145,overlay_max,rhs)" identifier = (call_expression "exp_binop(0x145,overlay_max,rhs)" identifier (argument_list "(0x145,overlay_max,rhs)" ( number_literal , identifier , identifier )))) ;) (return_statement "return;" return ;) })) (expression_statement "overlay_max = rhs;" (assignment_expression "overlay_max = rhs" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00029f80(undefined4 param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_00029f80(undefined4 param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00029f80(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);" (call_expression "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" identifier (argument_list "(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal , number_literal ))) ;) (if_statement "if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" if (parenthesized_expression "(DAT_001c3874 == (int *)0x0)" ( (binary_expression "DAT_001c3874 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" { (expression_statement "DAT_001c3880 = FUN_00032d00(0x143,param_1);" (assignment_expression "DAT_001c3880 = FUN_00032d00(0x143,param_1)" identifier = (call_expression "FUN_00032d00(0x143,param_1)" identifier (argument_list "(0x143,param_1)" ( number_literal , identifier )))) ;) })) (expression_statement "piVar1 = (int *)xmalloc(8);" (assignment_expression "piVar1 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = DAT_001c3898;" (assignment_expression "piVar1[1] = DAT_001c3898" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = (int)DAT_001c3874;" (assignment_expression "*piVar1 = (int)DAT_001c3874" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)DAT_001c3874" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_001c3874 = piVar1;" (assignment_expression "DAT_001c3874 = piVar1" identifier = identifier) ;) (expression_statement "uVar2 = FUN_00032d00(0x141,param_1);" (assignment_expression "uVar2 = FUN_00032d00(0x141,param_1)" identifier = (call_expression "FUN_00032d00(0x141,param_1)" identifier (argument_list "(0x141,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" if (parenthesized_expression "(DAT_001c3878 != 0)" ( (binary_expression "DAT_001c3878 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" { (expression_statement "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);" (assignment_expression "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2)" identifier = (call_expression "FUN_00032b80(0x145,DAT_001c3878,uVar2)" identifier (argument_list "(0x145,DAT_001c3878,uVar2)" ( number_literal , identifier , identifier )))) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_001c3878 = uVar2;" (assignment_expression "DAT_001c3878 = uVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , IDENT , LIT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00029f80(undefined4 param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00029f80(undefined4 param_1)" (identifier "FUN_00029f80") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);\n  if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }\n  piVar1 = (int *)xmalloc(8);\n  piVar1[1] = DAT_001c3898;\n  *piVar1 = (int)DAT_001c3874;\n  DAT_001c3874 = piVar1;\n  uVar2 = FUN_00032d00(0x141,param_1);\n  if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }\n  DAT_001c3878 = uVar2;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);" (call_expression "FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" (identifier "FUN_00028800") (argument_list "(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_001c3880") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "DAT_001c387c") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (DAT_001c3874 == (int *)0x0) {\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" (if "if") (parenthesized_expression "(DAT_001c3874 == (int *)0x0)" (( "(") (binary_expression "DAT_001c3874 == (int *)0x0" (identifier "DAT_001c3874") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_001c3880 = FUN_00032d00(0x143,param_1);\n  }" ({ "{") (expression_statement "DAT_001c3880 = FUN_00032d00(0x143,param_1);" (assignment_expression "DAT_001c3880 = FUN_00032d00(0x143,param_1)" (identifier "DAT_001c3880") (= "=") (call_expression "FUN_00032d00(0x143,param_1)" (identifier "FUN_00032d00") (argument_list "(0x143,param_1)" (( "(") (number_literal "0x143") (, ",") (identifier "param_1") () ")")))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)xmalloc(8);" (assignment_expression "piVar1 = (int *)xmalloc(8)" (identifier "piVar1") (= "=") (cast_expression "(int *)xmalloc(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "piVar1[1] = DAT_001c3898;" (assignment_expression "piVar1[1] = DAT_001c3898" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_001c3898")) (; ";")) (expression_statement "*piVar1 = (int)DAT_001c3874;" (assignment_expression "*piVar1 = (int)DAT_001c3874" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)DAT_001c3874" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_001c3874"))) (; ";")) (expression_statement "DAT_001c3874 = piVar1;" (assignment_expression "DAT_001c3874 = piVar1" (identifier "DAT_001c3874") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "uVar2 = FUN_00032d00(0x141,param_1);" (assignment_expression "uVar2 = FUN_00032d00(0x141,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_00032d00(0x141,param_1)" (identifier "FUN_00032d00") (argument_list "(0x141,param_1)" (( "(") (number_literal "0x141") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (DAT_001c3878 != 0) {\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_001c3878 != 0)" (( "(") (binary_expression "DAT_001c3878 != 0" (identifier "DAT_001c3878") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);\n    return;\n  }" ({ "{") (expression_statement "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);" (assignment_expression "DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2)" (identifier "DAT_001c3878") (= "=") (call_expression "FUN_00032b80(0x145,DAT_001c3878,uVar2)" (identifier "FUN_00032b80") (argument_list "(0x145,DAT_001c3878,uVar2)" (( "(") (number_literal "0x145") (, ",") (identifier "DAT_001c3878") (, ",") (identifier "uVar2") () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_001c3878 = uVar2;" (assignment_expression "DAT_001c3878 = uVar2" (identifier "DAT_001c3878") (= "=") (identifier "uVar2")) (; ";")) (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)

{
  type_1 *poVar1;
  type_2 *rhs;
  
  var_1
            (name,overlay_vma,overlay_section,(type_2 *)0x0,overlay_subalign,(type_2 *)0x0,0
             ,0);
  if (type_1 == (type_1 *)0x0) {
    overlay_vma = var_2(0x143,name);
  }
  poVar1 = (type_1 *)var_3(8);
  poVar1->os = current_section;
  poVar1->next = type_1;
  type_1 = poVar1;
  rhs = var_2(0x141,name);
  if (var_4 != (type_2 *)0x0) {
    var_4 = var_5(0x145,var_4,rhs);
    return;
  }
  var_4 = rhs;
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  FUN_00028800(param_1,DAT_001c3880,1,0,DAT_001c387c,0,0,0);
  if (DAT_001c3874 == (int *)0x0) {
    DAT_001c3880 = FUN_00032d00(0x143,param_1);
  }
  piVar1 = (int *)xmalloc(8);
  piVar1[1] = DAT_001c3898;
  *piVar1 = (int)DAT_001c3874;
  DAT_001c3874 = piVar1;
  uVar2 = FUN_00032d00(0x141,param_1);
  if (DAT_001c3878 != 0) {
    DAT_001c3878 = FUN_00032b80(0x145,DAT_001c3878,uVar2);
    return;
  }
  DAT_001c3878 = uVar2;
  return;
}

