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

char * __regparm3 d_demangle(char *mangled,int options,size_t *palc)

{
  int iVar1;
  size_t sVar2;
  d_growable_string dgs;
  
  dgs.buf = (char *)0x0;
  dgs.len = 0;
  dgs.alc = 0;
  dgs.allocation_failure = 0;
  iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs);
  if (iVar1 == 0) {
    free(dgs.buf);
    *palc = 0;
    dgs.buf = (char *)0x0;
  }
  else {
    sVar2 = 1;
    if (dgs.allocation_failure == 0) {
      sVar2 = dgs.alc;
    }
    *palc = sVar2;
  }
  return dgs.buf;
}



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

void * FUN_001a4060(void)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *in_ECX;
  void *local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x1a4069;
  local_1c = (void *)0x0;
  local_18 = 0;
  local_14 = 0;
  local_10 = 0;
  iVar1 = FUN_001a3d90(&local_1c);
  if (iVar1 == 0) {
    free(local_1c);
    *in_ECX = 0;
    local_1c = (void *)0x0;
  }
  else {
    uVar2 = 1;
    if (local_10 == 0) {
      uVar2 = local_14;
    }
    *in_ECX = uVar2;
  }
  return local_1c;
}


PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00035680
ADD EBX,0x19af97
SUB ESP,0x20
LEA ECX,[ESP + 0xc]
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x18],0x0
PUSH ECX
LEA ECX,[EBX + 0xffe5b530]
CALL 0x001a3d90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001a40d0
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,0x1
TEST EDX,EDX
JZ 0x001a40c8
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP]
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x001a40b6
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x00028420
MOV dword ptr [ESI],0x0
ADD ESP,0x10
XOR EAX,EAX
JMP 0x001a40bb
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * FUN_001a4060(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}\n\n" comment (function_definition "void * FUN_001a4060(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" primitive_type (pointer_declarator "* FUN_001a4060(void)" * (function_declarator "FUN_001a4060(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *in_ECX;" type_identifier (pointer_declarator "*in_ECX" * identifier) ;) (declaration "void *local_1c;" primitive_type (pointer_declarator "*local_1c" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1a4069;" (assignment_expression "uStack_c = 0x1a4069" identifier = number_literal) ;) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_001a3d90(&local_1c);" (assignment_expression "iVar1 = FUN_001a3d90(&local_1c)" identifier = (call_expression "FUN_001a3d90(&local_1c)" identifier (argument_list "(&local_1c)" ( (pointer_expression "&local_1c" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }" { (expression_statement "free(local_1c);" (call_expression "free(local_1c)" identifier (argument_list "(local_1c)" ( identifier ))) ;) (expression_statement "*in_ECX = 0;" (assignment_expression "*in_ECX = 0" (pointer_expression "*in_ECX" * identifier) = number_literal) ;) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" else (compound_statement "{\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (local_10 == 0) {\n      uVar2 = local_14;\n    }" if (parenthesized_expression "(local_10 == 0)" ( (binary_expression "local_10 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = local_14;\n    }" { (expression_statement "uVar2 = local_14;" (assignment_expression "uVar2 = local_14" identifier = identifier) ;) })) (expression_statement "*in_ECX = uVar2;" (assignment_expression "*in_ECX = uVar2" (pointer_expression "*in_ECX" * identifier) = identifier) ;) }))) (return_statement "return local_1c;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 d_demangle(char *mangled,int options,size_t *palc)\n\n{\n  int iVar1;\n  size_t sVar2;\n  d_growable_string dgs;\n  \n  dgs.buf = (char *)0x0;\n  dgs.len = 0;\n  dgs.alc = 0;\n  dgs.allocation_failure = 0;\n  iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs);\n  if (iVar1 == 0) {\n    free(dgs.buf);\n    *palc = 0;\n    dgs.buf = (char *)0x0;\n  }\n  else {\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }\n  return dgs.buf;\n}\n\n" comment (function_definition "char * __regparm3 d_demangle(char *mangled,int options,size_t *palc)\n\n{\n  int iVar1;\n  size_t sVar2;\n  d_growable_string dgs;\n  \n  dgs.buf = (char *)0x0;\n  dgs.len = 0;\n  dgs.alc = 0;\n  dgs.allocation_failure = 0;\n  iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs);\n  if (iVar1 == 0) {\n    free(dgs.buf);\n    *palc = 0;\n    dgs.buf = (char *)0x0;\n  }\n  else {\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }\n  return dgs.buf;\n}" primitive_type (pointer_declarator "* __regparm3 d_demangle(char *mangled,int options,size_t *palc)" * (ERROR "__regparm3" identifier) (function_declarator "d_demangle(char *mangled,int options,size_t *palc)" identifier (parameter_list "(char *mangled,int options,size_t *palc)" ( (parameter_declaration "char *mangled" primitive_type (pointer_declarator "*mangled" * identifier)) , (parameter_declaration "int options" primitive_type identifier) , (parameter_declaration "size_t *palc" primitive_type (pointer_declarator "*palc" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  d_growable_string dgs;\n  \n  dgs.buf = (char *)0x0;\n  dgs.len = 0;\n  dgs.alc = 0;\n  dgs.allocation_failure = 0;\n  iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs);\n  if (iVar1 == 0) {\n    free(dgs.buf);\n    *palc = 0;\n    dgs.buf = (char *)0x0;\n  }\n  else {\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }\n  return dgs.buf;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "d_growable_string dgs;" type_identifier identifier ;) (expression_statement "dgs.buf = (char *)0x0;" (assignment_expression "dgs.buf = (char *)0x0" (field_expression "dgs.buf" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "dgs.len = 0;" (assignment_expression "dgs.len = 0" (field_expression "dgs.len" identifier . field_identifier) = number_literal) ;) (expression_statement "dgs.alc = 0;" (assignment_expression "dgs.alc = 0" (field_expression "dgs.alc" identifier . field_identifier) = number_literal) ;) (expression_statement "dgs.allocation_failure = 0;" (assignment_expression "dgs.allocation_failure = 0" (field_expression "dgs.allocation_failure" identifier . field_identifier) = number_literal) ;) (expression_statement "iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs);" (assignment_expression "iVar1 = d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs)" identifier = (call_expression "d_demangle_callback(mangled,options,d_growable_string_callback_adapter,&dgs)" identifier (argument_list "(mangled,options,d_growable_string_callback_adapter,&dgs)" ( identifier , identifier , identifier , (pointer_expression "&dgs" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    free(dgs.buf);\n    *palc = 0;\n    dgs.buf = (char *)0x0;\n  }\n  else {\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    free(dgs.buf);\n    *palc = 0;\n    dgs.buf = (char *)0x0;\n  }" { (expression_statement "free(dgs.buf);" (call_expression "free(dgs.buf)" identifier (argument_list "(dgs.buf)" ( (field_expression "dgs.buf" identifier . field_identifier) ))) ;) (expression_statement "*palc = 0;" (assignment_expression "*palc = 0" (pointer_expression "*palc" * identifier) = number_literal) ;) (expression_statement "dgs.buf = (char *)0x0;" (assignment_expression "dgs.buf = (char *)0x0" (field_expression "dgs.buf" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }" else (compound_statement "{\n    sVar2 = 1;\n    if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }\n    *palc = sVar2;\n  }" { (expression_statement "sVar2 = 1;" (assignment_expression "sVar2 = 1" identifier = number_literal) ;) (if_statement "if (dgs.allocation_failure == 0) {\n      sVar2 = dgs.alc;\n    }" if (parenthesized_expression "(dgs.allocation_failure == 0)" ( (binary_expression "dgs.allocation_failure == 0" (field_expression "dgs.allocation_failure" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      sVar2 = dgs.alc;\n    }" { (expression_statement "sVar2 = dgs.alc;" (assignment_expression "sVar2 = dgs.alc" identifier = (field_expression "dgs.alc" identifier . field_identifier)) ;) })) (expression_statement "*palc = sVar2;" (assignment_expression "*palc = sVar2" (pointer_expression "*palc" * identifier) = identifier) ;) }))) (return_statement "return dgs.buf;" return (field_expression "dgs.buf" identifier . field_identifier) ;) })))
(translation_unit "void * FUN_001a4060(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}\n\n" (function_definition "void * FUN_001a4060(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" primitive_type (pointer_declarator "* FUN_001a4060(void)" * (function_declarator "FUN_001a4060(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *in_ECX;" type_identifier (pointer_declarator "*in_ECX" * identifier) ;) (declaration "void *local_1c;" primitive_type (pointer_declarator "*local_1c" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1a4069;" (assignment_expression "uStack_c = 0x1a4069" identifier = number_literal) ;) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_001a3d90(&local_1c);" (assignment_expression "iVar1 = FUN_001a3d90(&local_1c)" identifier = (call_expression "FUN_001a3d90(&local_1c)" identifier (argument_list "(&local_1c)" ( (pointer_expression "&local_1c" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }" { (expression_statement "free(local_1c);" (call_expression "free(local_1c)" identifier (argument_list "(local_1c)" ( identifier ))) ;) (expression_statement "*in_ECX = 0;" (assignment_expression "*in_ECX = 0" (pointer_expression "*in_ECX" * identifier) = number_literal) ;) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" else (compound_statement "{\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (local_10 == 0) {\n      uVar2 = local_14;\n    }" if (parenthesized_expression "(local_10 == 0)" ( (binary_expression "local_10 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = local_14;\n    }" { (expression_statement "uVar2 = local_14;" (assignment_expression "uVar2 = local_14" identifier = identifier) ;) })) (expression_statement "*in_ECX = uVar2;" (assignment_expression "*in_ECX = uVar2" (pointer_expression "*in_ECX" * identifier) = identifier) ;) }))) (return_statement "return local_1c;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "void * FUN_001a4060(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" (primitive_type "void") (pointer_declarator "* FUN_001a4060(void)" (* "*") (function_declarator "FUN_001a4060(void)" (identifier "FUN_001a4060") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *in_ECX;\n  void *local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4069;\n  local_1c = (void *)0x0;\n  local_18 = 0;\n  local_14 = 0;\n  local_10 = 0;\n  iVar1 = FUN_001a3d90(&local_1c);\n  if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }\n  return local_1c;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *in_ECX;" (type_identifier "undefined4") (pointer_declarator "*in_ECX" (* "*") (identifier "in_ECX")) (; ";")) (declaration "void *local_1c;" (primitive_type "void") (pointer_declarator "*local_1c" (* "*") (identifier "local_1c")) (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x1a4069;" (assignment_expression "uStack_c = 0x1a4069" (identifier "uStack_c") (= "=") (number_literal "0x1a4069")) (; ";")) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" (identifier "local_1c") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" (identifier "local_14") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" (identifier "local_10") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_001a3d90(&local_1c);" (assignment_expression "iVar1 = FUN_001a3d90(&local_1c)" (identifier "iVar1") (= "=") (call_expression "FUN_001a3d90(&local_1c)" (identifier "FUN_001a3d90") (argument_list "(&local_1c)" (( "(") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }\n  else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    free(local_1c);\n    *in_ECX = 0;\n    local_1c = (void *)0x0;\n  }" ({ "{") (expression_statement "free(local_1c);" (call_expression "free(local_1c)" (identifier "free") (argument_list "(local_1c)" (( "(") (identifier "local_1c") () ")"))) (; ";")) (expression_statement "*in_ECX = 0;" (assignment_expression "*in_ECX = 0" (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c = (void *)0x0;" (assignment_expression "local_1c = (void *)0x0" (identifier "local_1c") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" (else "else") (compound_statement "{\n    uVar2 = 1;\n    if (local_10 == 0) {\n      uVar2 = local_14;\n    }\n    *in_ECX = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (local_10 == 0) {\n      uVar2 = local_14;\n    }" (if "if") (parenthesized_expression "(local_10 == 0)" (( "(") (binary_expression "local_10 == 0" (identifier "local_10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = local_14;\n    }" ({ "{") (expression_statement "uVar2 = local_14;" (assignment_expression "uVar2 = local_14" (identifier "uVar2") (= "=") (identifier "local_14")) (; ";")) (} "}"))) (expression_statement "*in_ECX = uVar2;" (assignment_expression "*in_ECX = uVar2" (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (return_statement "return local_1c;" (return "return") (identifier "local_1c") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *mangled,int options,size_t *palc)

{
  int var_2;
  size_t sVar2;
  type_1 dgs;
  
  dgs.buf = (char *)0x0;
  dgs.len = 0;
  dgs.alc = 0;
  dgs.allocation_failure = 0;
  var_2 = var_1(mangled,options,d_growable_string_callback_adapter,&dgs);
  if (var_2 == 0) {
    var_3(dgs.buf);
    *palc = 0;
    dgs.buf = (char *)0x0;
  }
  else {
    sVar2 = 1;
    if (dgs.allocation_failure == 0) {
      sVar2 = dgs.alc;
    }
    *palc = sVar2;
  }
  return dgs.buf;
}


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

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

void * MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *in_ECX;
  void *local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x1a4069;
  local_1c = (void *)0x0;
  local_18 = 0;
  local_14 = 0;
  local_10 = 0;
  iVar1 = FUN_001a3d90(&local_1c);
  if (iVar1 == 0) {
    free(local_1c);
    *in_ECX = 0;
    local_1c = (void *)0x0;
  }
  else {
    uVar2 = 1;
    if (local_10 == 0) {
      uVar2 = local_14;
    }
    *in_ECX = uVar2;
  }
  return local_1c;
}

