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

void subseg_change(segT seg,int subseg)

{
  void *pvVar1;
  
  now_seg = seg;
  now_subseg = subseg;
  if (seg->userdata != (void *)0x0) {
    return;
  }
  pvVar1 = (void *)xcalloc(1,0x30);
  *(segT *)((int)pvVar1 + 0x20) = seg;
  seg->userdata = pvVar1;
  return;
}



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

void FUN_00034730(int param_1,undefined4 param_2)

{
  int iVar1;
  
  DAT_00072cdc = param_1;
  DAT_00072dcc = param_2;
  if (*(int *)(param_1 + 0x68) != 0) {
    return;
  }
  iVar1 = xcalloc(1,0x30);
  *(int *)(iVar1 + 0x20) = param_1;
  *(int *)(param_1 + 0x68) = iVar1;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000160b0
ADD EBX,0x358c9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
LEA EAX,[EBX + 0x8cdc]
MOV dword ptr [EAX],ESI
LEA EAX,[EBX + 0x8dcc]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESI + 0x68]
TEST EAX,EAX
JZ 0x00034768
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH 0x30
PUSH 0x1
CALL 0x000147e0
ADD ESP,0x10
MOV dword ptr [EAX + 0x20],ESI
MOV dword ptr [ESI + 0x68],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00034730(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}\n\n" comment (function_definition "void FUN_00034730(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00034730(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "DAT_00072cdc = param_1;" (assignment_expression "DAT_00072cdc = param_1" identifier = identifier) ;) (expression_statement "DAT_00072dcc = param_2;" (assignment_expression "DAT_00072dcc = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" ( (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = xcalloc(1,0x30);" (assignment_expression "iVar1 = xcalloc(1,0x30)" identifier = (call_expression "xcalloc(1,0x30)" identifier (argument_list "(1,0x30)" ( number_literal , number_literal )))) ;) (expression_statement "*(int *)(iVar1 + 0x20) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_1" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x68) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = 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 subseg_change(segT seg,int subseg)\n\n{\n  void *pvVar1;\n  \n  now_seg = seg;\n  now_subseg = subseg;\n  if (seg->userdata != (void *)0x0) {\n    return;\n  }\n  pvVar1 = (void *)xcalloc(1,0x30);\n  *(segT *)((int)pvVar1 + 0x20) = seg;\n  seg->userdata = pvVar1;\n  return;\n}\n\n" comment comment (function_definition "void subseg_change(segT seg,int subseg)\n\n{\n  void *pvVar1;\n  \n  now_seg = seg;\n  now_subseg = subseg;\n  if (seg->userdata != (void *)0x0) {\n    return;\n  }\n  pvVar1 = (void *)xcalloc(1,0x30);\n  *(segT *)((int)pvVar1 + 0x20) = seg;\n  seg->userdata = pvVar1;\n  return;\n}" primitive_type (function_declarator "subseg_change(segT seg,int subseg)" identifier (parameter_list "(segT seg,int subseg)" ( (parameter_declaration "segT seg" type_identifier identifier) , (parameter_declaration "int subseg" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  \n  now_seg = seg;\n  now_subseg = subseg;\n  if (seg->userdata != (void *)0x0) {\n    return;\n  }\n  pvVar1 = (void *)xcalloc(1,0x30);\n  *(segT *)((int)pvVar1 + 0x20) = seg;\n  seg->userdata = pvVar1;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "now_seg = seg;" (assignment_expression "now_seg = seg" identifier = identifier) ;) (expression_statement "now_subseg = subseg;" (assignment_expression "now_subseg = subseg" identifier = identifier) ;) (if_statement "if (seg->userdata != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(seg->userdata != (void *)0x0)" ( (binary_expression "seg->userdata != (void *)0x0" (field_expression "seg->userdata" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pvVar1 = (void *)xcalloc(1,0x30);" (assignment_expression "pvVar1 = (void *)xcalloc(1,0x30)" identifier = (cast_expression "(void *)xcalloc(1,0x30)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x30)" identifier (argument_list "(1,0x30)" ( number_literal , number_literal ))))) ;) (expression_statement "*(segT *)((int)pvVar1 + 0x20) = seg;" (assignment_expression "*(segT *)((int)pvVar1 + 0x20) = seg" (pointer_expression "*(segT *)((int)pvVar1 + 0x20)" * (cast_expression "(segT *)((int)pvVar1 + 0x20)" ( (type_descriptor "segT *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "seg->userdata = pvVar1;" (assignment_expression "seg->userdata = pvVar1" (field_expression "seg->userdata" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00034730(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_00034730(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00034730(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "DAT_00072cdc = param_1;" (assignment_expression "DAT_00072cdc = param_1" identifier = identifier) ;) (expression_statement "DAT_00072dcc = param_2;" (assignment_expression "DAT_00072dcc = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" ( (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = xcalloc(1,0x30);" (assignment_expression "iVar1 = xcalloc(1,0x30)" identifier = (call_expression "xcalloc(1,0x30)" identifier (argument_list "(1,0x30)" ( number_literal , number_literal )))) ;) (expression_statement "*(int *)(iVar1 + 0x20) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_1" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x68) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (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 ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00034730(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00034730(int param_1,undefined4 param_2)" (identifier "FUN_00034730") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00072cdc = param_1;\n  DAT_00072dcc = param_2;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }\n  iVar1 = xcalloc(1,0x30);\n  *(int *)(iVar1 + 0x20) = param_1;\n  *(int *)(param_1 + 0x68) = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "DAT_00072cdc = param_1;" (assignment_expression "DAT_00072cdc = param_1" (identifier "DAT_00072cdc") (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_00072dcc = param_2;" (assignment_expression "DAT_00072dcc = param_2" (identifier "DAT_00072dcc") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = xcalloc(1,0x30);" (assignment_expression "iVar1 = xcalloc(1,0x30)" (identifier "iVar1") (= "=") (call_expression "xcalloc(1,0x30)" (identifier "xcalloc") (argument_list "(1,0x30)" (( "(") (number_literal "1") (, ",") (number_literal "0x30") () ")")))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x20) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_1" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(param_1 + 0x68) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (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(type_1 seg,int subseg)

{
  void *pvVar1;
  
  now_seg = seg;
  now_subseg = subseg;
  if (seg->userdata != (void *)0x0) {
    return;
  }
  pvVar1 = (void *)var_1(1,0x30);
  *(type_1 *)((int)pvVar1 + 0x20) = seg;
  seg->userdata = pvVar1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_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: (identifier))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  DAT_00072cdc = param_1;
  DAT_00072dcc = param_2;
  if (*(int *)(param_1 + 0x68) != 0) {
    return;
  }
  iVar1 = xcalloc(1,0x30);
  *(int *)(iVar1 + 0x20) = param_1;
  *(int *)(param_1 + 0x68) = iVar1;
  return;
}

