
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void stabs_generate_asm_file(void)

{
  char *file;
  char *pcVar1;
  char *file_00;
  uint lineno;
  undefined4 uStack_14;
  
  uStack_14 = 0x38cd9;
  file = as_where(&lineno);
  if (use_gnu_debug_info_extensions != 0) {
    pcVar1 = (char *)getpwd();
    pcVar1 = remap_debug_filename(pcVar1);
    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);
    generate_asm_file(100,file_00);
    free(file_00);
    free(pcVar1);
  }
  generate_asm_file(100,file);
  return;
}



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

void FUN_00038cd0(void)

{
  undefined4 uVar1;
  void *__ptr;
  void *__ptr_00;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x38cd9;
  FUN_00029420(local_20);
  if (DAT_000886b4 != 0) {
    uVar1 = getpwd();
    __ptr = (void *)FUN_00038000(uVar1);
    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);
    FUN_00038a30();
    free(__ptr_00);
    free(__ptr);
  }
  FUN_00038a30();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00018ff0
ADD EBX,0x47327
SUB ESP,0x28
LEA EAX,[ESP + 0x18]
PUSH EAX
CALL 0x00029420
ADD ESP,0x10
MOV ESI,EAX
LEA EAX,[EBX + 0x86b4]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x00038d18
MOV EDX,ESI
MOV EAX,0x64
CALL 0x00038a30
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000171e0
SUB ESP,0xc
PUSH EAX
CALL 0x00038000
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffdeb41]
PUSH 0x0
PUSH EAX
PUSH EDI
CALL 0x00017240
MOV EDX,EAX
MOV EBP,EAX
MOV EAX,0x64
CALL 0x00038a30
MOV dword ptr [ESP],EBP
CALL 0x00017770
MOV dword ptr [ESP],EDI
CALL 0x00017770
ADD ESP,0x10
JMP 0x00038cfd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038cd0(void)\n\n{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}\n\n" comment (function_definition "void FUN_00038cd0(void)\n\n{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" primitive_type (function_declarator "FUN_00038cd0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38cd9;" (assignment_expression "uStack_14 = 0x38cd9" identifier = number_literal) ;) (expression_statement "FUN_00029420(local_20);" (call_expression "FUN_00029420(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (if_statement "if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" if (parenthesized_expression "(DAT_000886b4 != 0)" ( (binary_expression "DAT_000886b4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" { (expression_statement "uVar1 = getpwd();" (assignment_expression "uVar1 = getpwd()" identifier = (call_expression "getpwd()" identifier (argument_list "()" ( )))) ;) (expression_statement "__ptr = (void *)FUN_00038000(uVar1);" (assignment_expression "__ptr = (void *)FUN_00038000(uVar1)" identifier = (cast_expression "(void *)FUN_00038000(uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038000(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))))) ;) (expression_statement "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);" (assignment_expression "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0)" identifier = (cast_expression "(void *)concat(__ptr,&DAT_0005eb41,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "concat(__ptr,&DAT_0005eb41,0)" identifier (argument_list "(__ptr,&DAT_0005eb41,0)" ( identifier , (pointer_expression "&DAT_0005eb41" & identifier) , number_literal ))))) ;) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" identifier (argument_list "()" ( ))) ;) (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 -- yet parameter storage is locked */\n\nvoid stabs_generate_asm_file(void)\n\n{\n  char *file;\n  char *pcVar1;\n  char *file_00;\n  uint lineno;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  file = as_where(&lineno);\n  if (use_gnu_debug_info_extensions != 0) {\n    pcVar1 = (char *)getpwd();\n    pcVar1 = remap_debug_filename(pcVar1);\n    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);\n    generate_asm_file(100,file_00);\n    free(file_00);\n    free(pcVar1);\n  }\n  generate_asm_file(100,file);\n  return;\n}\n\n" comment comment (function_definition "void stabs_generate_asm_file(void)\n\n{\n  char *file;\n  char *pcVar1;\n  char *file_00;\n  uint lineno;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  file = as_where(&lineno);\n  if (use_gnu_debug_info_extensions != 0) {\n    pcVar1 = (char *)getpwd();\n    pcVar1 = remap_debug_filename(pcVar1);\n    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);\n    generate_asm_file(100,file_00);\n    free(file_00);\n    free(pcVar1);\n  }\n  generate_asm_file(100,file);\n  return;\n}" primitive_type (function_declarator "stabs_generate_asm_file(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *file;\n  char *pcVar1;\n  char *file_00;\n  uint lineno;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  file = as_where(&lineno);\n  if (use_gnu_debug_info_extensions != 0) {\n    pcVar1 = (char *)getpwd();\n    pcVar1 = remap_debug_filename(pcVar1);\n    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);\n    generate_asm_file(100,file_00);\n    free(file_00);\n    free(pcVar1);\n  }\n  generate_asm_file(100,file);\n  return;\n}" { (declaration "char *file;" primitive_type (pointer_declarator "*file" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *file_00;" primitive_type (pointer_declarator "*file_00" * identifier) ;) (declaration "uint lineno;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38cd9;" (assignment_expression "uStack_14 = 0x38cd9" identifier = number_literal) ;) (expression_statement "file = as_where(&lineno);" (assignment_expression "file = as_where(&lineno)" identifier = (call_expression "as_where(&lineno)" identifier (argument_list "(&lineno)" ( (pointer_expression "&lineno" & identifier) )))) ;) (if_statement "if (use_gnu_debug_info_extensions != 0) {\n    pcVar1 = (char *)getpwd();\n    pcVar1 = remap_debug_filename(pcVar1);\n    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);\n    generate_asm_file(100,file_00);\n    free(file_00);\n    free(pcVar1);\n  }" if (parenthesized_expression "(use_gnu_debug_info_extensions != 0)" ( (binary_expression "use_gnu_debug_info_extensions != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = (char *)getpwd();\n    pcVar1 = remap_debug_filename(pcVar1);\n    file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);\n    generate_asm_file(100,file_00);\n    free(file_00);\n    free(pcVar1);\n  }" { (expression_statement "pcVar1 = (char *)getpwd();" (assignment_expression "pcVar1 = (char *)getpwd()" identifier = (cast_expression "(char *)getpwd()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "getpwd()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar1 = remap_debug_filename(pcVar1);" (assignment_expression "pcVar1 = remap_debug_filename(pcVar1)" identifier = (call_expression "remap_debug_filename(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0);" (assignment_expression "file_00 = (char *)concat(pcVar1,&DAT_0005eb41,0)" identifier = (cast_expression "(char *)concat(pcVar1,&DAT_0005eb41,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "concat(pcVar1,&DAT_0005eb41,0)" identifier (argument_list "(pcVar1,&DAT_0005eb41,0)" ( identifier , (pointer_expression "&DAT_0005eb41" & identifier) , number_literal ))))) ;) (expression_statement "generate_asm_file(100,file_00);" (call_expression "generate_asm_file(100,file_00)" identifier (argument_list "(100,file_00)" ( number_literal , identifier ))) ;) (expression_statement "free(file_00);" (call_expression "free(file_00)" identifier (argument_list "(file_00)" ( identifier ))) ;) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) })) (expression_statement "generate_asm_file(100,file);" (call_expression "generate_asm_file(100,file)" identifier (argument_list "(100,file)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00038cd0(void)\n\n{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}\n\n" (function_definition "void FUN_00038cd0(void)\n\n{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" primitive_type (function_declarator "FUN_00038cd0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38cd9;" (assignment_expression "uStack_14 = 0x38cd9" identifier = number_literal) ;) (expression_statement "FUN_00029420(local_20);" (call_expression "FUN_00029420(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (if_statement "if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" if (parenthesized_expression "(DAT_000886b4 != 0)" ( (binary_expression "DAT_000886b4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" { (expression_statement "uVar1 = getpwd();" (assignment_expression "uVar1 = getpwd()" identifier = (call_expression "getpwd()" identifier (argument_list "()" ( )))) ;) (expression_statement "__ptr = (void *)FUN_00038000(uVar1);" (assignment_expression "__ptr = (void *)FUN_00038000(uVar1)" identifier = (cast_expression "(void *)FUN_00038000(uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038000(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))))) ;) (expression_statement "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);" (assignment_expression "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0)" identifier = (cast_expression "(void *)concat(__ptr,&DAT_0005eb41,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "concat(__ptr,&DAT_0005eb41,0)" identifier (argument_list "(__ptr,&DAT_0005eb41,0)" ( identifier , (pointer_expression "&DAT_0005eb41" & identifier) , number_literal ))))) ;) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00038cd0(void)\n\n{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038cd0(void)" (identifier "FUN_00038cd0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  void *__ptr;\n  void *__ptr_00;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38cd9;\n  FUN_00029420(local_20);\n  if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }\n  FUN_00038a30();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "void *__ptr_00;" (primitive_type "void") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "undefined1 local_20 [12];" (type_identifier "undefined1") (array_declarator "local_20 [12]" (identifier "local_20") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x38cd9;" (assignment_expression "uStack_14 = 0x38cd9" (identifier "uStack_14") (= "=") (number_literal "0x38cd9")) (; ";")) (expression_statement "FUN_00029420(local_20);" (call_expression "FUN_00029420(local_20)" (identifier "FUN_00029420") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (if_statement "if (DAT_000886b4 != 0) {\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "(DAT_000886b4 != 0)" (( "(") (binary_expression "DAT_000886b4 != 0" (identifier "DAT_000886b4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = getpwd();\n    __ptr = (void *)FUN_00038000(uVar1);\n    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);\n    FUN_00038a30();\n    free(__ptr_00);\n    free(__ptr);\n  }" ({ "{") (expression_statement "uVar1 = getpwd();" (assignment_expression "uVar1 = getpwd()" (identifier "uVar1") (= "=") (call_expression "getpwd()" (identifier "getpwd") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__ptr = (void *)FUN_00038000(uVar1);" (assignment_expression "__ptr = (void *)FUN_00038000(uVar1)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00038000(uVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00038000(uVar1)" (identifier "FUN_00038000") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))))) (; ";")) (expression_statement "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);" (assignment_expression "__ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0)" (identifier "__ptr_00") (= "=") (cast_expression "(void *)concat(__ptr,&DAT_0005eb41,0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "concat(__ptr,&DAT_0005eb41,0)" (identifier "concat") (argument_list "(__ptr,&DAT_0005eb41,0)" (( "(") (identifier "__ptr") (, ",") (pointer_expression "&DAT_0005eb41" (& "&") (identifier "DAT_0005eb41")) (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" (identifier "FUN_00038a30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00038a30();" (call_expression "FUN_00038a30()" (identifier "FUN_00038a30") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char *file;
  char *pcVar1;
  char *file_00;
  type_1 lineno;
  type_2 uStack_14;
  
  uStack_14 = 0x38cd9;
  file = var_1(&lineno);
  if (var_2 != 0) {
    pcVar1 = (char *)var_3();
    pcVar1 = var_4(pcVar1);
    file_00 = (char *)var_5(pcVar1,&DAT_0005eb41,0);
    var_6(100,file_00);
    var_7(file_00);
    var_7(pcVar1);
  }
  var_6(100,file);
  return;
}


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

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

void MASKED(void)

{
  undefined4 uVar1;
  void *__ptr;
  void *__ptr_00;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x38cd9;
  FUN_00029420(local_20);
  if (DAT_000886b4 != 0) {
    uVar1 = getpwd();
    __ptr = (void *)FUN_00038000(uVar1);
    __ptr_00 = (void *)concat(__ptr,&DAT_0005eb41,0);
    FUN_00038a30();
    free(__ptr_00);
    free(__ptr);
  }
  FUN_00038a30();
  return;
}

