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

bfd_boolean stab_range_type(void *p,bfd_signed_vma low,bfd_signed_vma high)

{
  uint size;
  char *__s;
  size_t sVar1;
  char *__s_00;
  bfd_boolean bVar2;
  
  bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10);
  size = *(uint *)(*(int *)((int)p + 0x38) + 0xc);
  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));
  sVar1 = strlen(__s);
  __s_00 = (char *)xmalloc(sVar1 + 100);
  sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high);
  free(__s);
  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size);
  if (bVar2 != 0) {
    free(__s_00);
    bVar2 = 1;
  }
  return bVar2;
}



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

int FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  char *__s;
  size_t sVar1;
  char *__s_00;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);
  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);
  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);
  sVar1 = strlen(__s);
  __s_00 = (char *)xmalloc(sVar1 + 100);
  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);
  free(__s);
  iVar2 = FUN_0002a7b0(uVar3,uVar4);
  if (iVar2 != 0) {
    free(__s_00);
    iVar2 = 1;
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x14ba7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [ESI + 0x38]
ADD ESI,0x38
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],ECX
MOV EDI,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,ESI
MOV dword ptr [ESP],EDI
CALL 0x00029a00
SUB ESP,0xc
PUSH EAX
MOV EDI,EAX
CALL 0x000134e0
ADD EAX,0x64
MOV dword ptr [ESP],EAX
CALL 0x000132e0
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EBP,EAX
LEA EAX,[EBX + 0xffff4f32]
MOV dword ptr [ESP],ECX
PUSH EDX
PUSH EDI
PUSH EAX
PUSH EBP
CALL 0x000137a0
ADD ESP,0x14
PUSH EDI
CALL 0x00013948
POP EAX
POP EDX
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0xc]
XOR ECX,ECX
MOV EDX,EBP
MOV EAX,ESI
CALL 0x0002a7b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002b4f8
SUB ESP,0xc
PUSH EBP
CALL 0x00013948
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);" (assignment_expression "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" identifier = (cast_expression "(char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00029a00(uVar3,uVar4,param_4,param_2)" identifier (argument_list "(uVar3,uVar4,param_4,param_2)" ( identifier , identifier , identifier , identifier ))))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = (char *)xmalloc(sVar1 + 100);" (assignment_expression "__s_00 = (char *)xmalloc(sVar1 + 100)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 100)" identifier (argument_list "(sVar1 + 100)" ( (binary_expression "sVar1 + 100" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);" (call_expression "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" identifier (argument_list "(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" ( identifier , (string_literal ""r%s;%ld;%ld;"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar2 = FUN_0002a7b0(uVar3,uVar4);" (assignment_expression "iVar2 = FUN_0002a7b0(uVar3,uVar4)" identifier = (call_expression "FUN_0002a7b0(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s_00);\n    iVar2 = 1;\n  }" { (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean stab_range_type(void *p,bfd_signed_vma low,bfd_signed_vma high)\n\n{\n  uint size;\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  bfd_boolean bVar2;\n  \n  bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10);\n  size = *(uint *)(*(int *)((int)p + 0x38) + 0xc);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high);\n  free(__s);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size);\n  if (bVar2 != 0) {\n    free(__s_00);\n    bVar2 = 1;\n  }\n  return bVar2;\n}\n\n" comment comment (function_definition "bfd_boolean stab_range_type(void *p,bfd_signed_vma low,bfd_signed_vma high)\n\n{\n  uint size;\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  bfd_boolean bVar2;\n  \n  bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10);\n  size = *(uint *)(*(int *)((int)p + 0x38) + 0xc);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high);\n  free(__s);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size);\n  if (bVar2 != 0) {\n    free(__s_00);\n    bVar2 = 1;\n  }\n  return bVar2;\n}" type_identifier (function_declarator "stab_range_type(void *p,bfd_signed_vma low,bfd_signed_vma high)" identifier (parameter_list "(void *p,bfd_signed_vma low,bfd_signed_vma high)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_signed_vma low" type_identifier identifier) , (parameter_declaration "bfd_signed_vma high" type_identifier identifier) ))) (compound_statement "{\n  uint size;\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  bfd_boolean bVar2;\n  \n  bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10);\n  size = *(uint *)(*(int *)((int)p + 0x38) + 0xc);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high);\n  free(__s);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size);\n  if (bVar2 != 0) {\n    free(__s_00);\n    bVar2 = 1;\n  }\n  return bVar2;\n}" { (declaration "uint size;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (expression_statement "bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10);" (assignment_expression "bVar2 = *(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10)" identifier = (pointer_expression "*(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10)" * (cast_expression "(bfd_boolean *)(*(int *)((int)p + 0x38) + 0x10)" ( (type_descriptor "bfd_boolean *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0x10)" ( (binary_expression "*(int *)((int)p + 0x38) + 0x10" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "size = *(uint *)(*(int *)((int)p + 0x38) + 0xc);" (assignment_expression "size = *(uint *)(*(int *)((int)p + 0x38) + 0xc)" identifier = (pointer_expression "*(uint *)(*(int *)((int)p + 0x38) + 0xc)" * (cast_expression "(uint *)(*(int *)((int)p + 0x38) + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0xc)" ( (binary_expression "*(int *)((int)p + 0x38) + 0xc" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__s = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "__s = stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier (argument_list "((stab_write_handle *)((int)p + 0x38))" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = (char *)xmalloc(sVar1 + 100);" (assignment_expression "__s_00 = (char *)xmalloc(sVar1 + 100)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 100)" identifier (argument_list "(sVar1 + 100)" ( (binary_expression "sVar1 + 100" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high);" (call_expression "sprintf(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high)" identifier (argument_list "(__s_00,"r%s;%ld;%ld;",__s,(undefined4)low,(undefined4)high)" ( identifier , (string_literal ""r%s;%ld;%ld;"" " string_content ") , identifier , (cast_expression "(undefined4)low" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (cast_expression "(undefined4)high" ( (type_descriptor "undefined4" type_identifier) ) identifier) ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size);" (assignment_expression "bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size)" identifier = (call_expression "stab_push_string((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size)" identifier (argument_list "((stab_write_handle *)((int)p + 0x38),__s_00,0,bVar2,size)" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , number_literal , identifier , identifier )))) ;) (if_statement "if (bVar2 != 0) {\n    free(__s_00);\n    bVar2 = 1;\n  }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s_00);\n    bVar2 = 1;\n  }" { (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (expression_statement "bVar2 = 1;" (assignment_expression "bVar2 = 1" identifier = number_literal) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "int FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);" (assignment_expression "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" identifier = (cast_expression "(char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00029a00(uVar3,uVar4,param_4,param_2)" identifier (argument_list "(uVar3,uVar4,param_4,param_2)" ( identifier , identifier , identifier , identifier ))))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = (char *)xmalloc(sVar1 + 100);" (assignment_expression "__s_00 = (char *)xmalloc(sVar1 + 100)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 100)" identifier (argument_list "(sVar1 + 100)" ( (binary_expression "sVar1 + 100" identifier + number_literal) ))))) ;) (expression_statement "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);" (call_expression "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" identifier (argument_list "(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" ( identifier , (string_literal ""r%s;%ld;%ld;"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar2 = FUN_0002a7b0(uVar3,uVar4);" (assignment_expression "iVar2 = FUN_0002a7b0(uVar3,uVar4)" identifier = (call_expression "FUN_0002a7b0(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s_00);\n    iVar2 = 1;\n  }" { (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0002b450(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0002b450") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  char *__s_00;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);\n  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);\n  sVar1 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar1 + 100);\n  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);\n  free(__s);\n  iVar2 = FUN_0002a7b0(uVar3,uVar4);\n  if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);" (assignment_expression "__s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_00029a00(uVar3,uVar4,param_4,param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00029a00(uVar3,uVar4,param_4,param_2)" (identifier "FUN_00029a00") (argument_list "(uVar3,uVar4,param_4,param_2)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_4") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" (identifier "sVar1") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__s_00 = (char *)xmalloc(sVar1 + 100);" (assignment_expression "__s_00 = (char *)xmalloc(sVar1 + 100)" (identifier "__s_00") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 100)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 100)" (identifier "xmalloc") (argument_list "(sVar1 + 100)" (( "(") (binary_expression "sVar1 + 100" (identifier "sVar1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);" (call_expression "sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" (identifier "sprintf") (argument_list "(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4)" (( "(") (identifier "__s_00") (, ",") (string_literal ""r%s;%ld;%ld;"" (" """) (string_content "r%s;%ld;%ld;") (" """)) (, ",") (identifier "__s") (, ",") (identifier "param_2") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0002a7b0(uVar3,uVar4);" (assignment_expression "iVar2 = FUN_0002a7b0(uVar3,uVar4)" (identifier "iVar2") (= "=") (call_expression "FUN_0002a7b0(uVar3,uVar4)" (identifier "FUN_0002a7b0") (argument_list "(uVar3,uVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    free(__s_00);\n    iVar2 = 1;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free(__s_00);\n    iVar2 = 1;\n  }" ({ "{") (expression_statement "free(__s_00);" (call_expression "free(__s_00)" (identifier "free") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")"))) (; ";")) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

type_1 function_1(void *p,type_2 low,type_2 high)

{
  type_3 size;
  char *__s;
  size_t var_4;
  char *__s_00;
  type_1 var_8;
  
  var_8 = *(type_1 *)(*(int *)((int)p + 0x38) + 0x10);
  size = *(type_3 *)(*(int *)((int)p + 0x38) + 0xc);
  __s = var_1((type_4 *)((int)p + 0x38));
  var_4 = var_2(__s);
  __s_00 = (char *)var_3(var_4 + 100);
  var_5(__s_00,"r%s;%ld;%ld;",__s,(type_5)low,(type_5)high);
  var_6(__s);
  var_8 = var_7((type_4 *)((int)p + 0x38),__s_00,0,var_8,size);
  if (var_8 != 0) {
    var_6(__s_00);
    var_8 = 1;
  }
  return var_8;
}


(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)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))))) (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 (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

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

int MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  char *__s;
  size_t sVar1;
  char *__s_00;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  uVar3 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0x10);
  uVar4 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);
  __s = (char *)FUN_00029a00(uVar3,uVar4,param_4,param_2);
  sVar1 = strlen(__s);
  __s_00 = (char *)xmalloc(sVar1 + 100);
  sprintf(__s_00,"r%s;%ld;%ld;",__s,param_2,param_4);
  free(__s);
  iVar2 = FUN_0002a7b0(uVar3,uVar4);
  if (iVar2 != 0) {
    free(__s_00);
    iVar2 = 1;
  }
  return iVar2;
}

