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

void s_app_file(int appfile)

{
  char *fname;
  int iVar1;
  int length;
  undefined4 uStack_c;
  
  uStack_c = 0x347a7;
  fname = demand_copy_string(&length);
  if (fname != (char *)0x0) {
    iVar1 = new_logical_line_flags(fname,-1,1);
    if ((iVar1 == 0) && (appfile != 0)) {
      demand_empty_rest_of_line();
      return;
    }
    demand_empty_rest_of_line();
    register_dependency(fname);
    elf_file_symbol(fname,appfile);
  }
  return;
}



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

void FUN_000347a0(int param_1)

{
  int iVar1;
  int iVar2;
  undefined1 local_10 [4];
  undefined4 uStack_c;
  
  uStack_c = 0x347a7;
  iVar1 = FUN_00034650(local_10);
  if (iVar1 != 0) {
    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);
    if ((iVar2 == 0) && (param_1 != 0)) {
      FUN_0002f970();
      return;
    }
    FUN_0002f970();
    FUN_0001ccc0(iVar1);
    FUN_0004eb30(iVar1,param_1);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00019010
ADD EBX,0x46859
SUB ESP,0x20
LEA EAX,[ESP + 0x18]
PUSH EAX
CALL 0x00034650
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000347fc
SUB ESP,0x4
MOV ESI,EAX
PUSH 0x1
PUSH -0x1
PUSH EAX
CALL 0x00027d60
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000347df
MOV ECX,dword ptr [ESP + 0x20]
TEST ECX,ECX
JNZ 0x00034808
CALL 0x0002f970
SUB ESP,0xc
PUSH ESI
CALL 0x0001ccc0
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x28]
PUSH ESI
CALL 0x0004eb30
ADD ESP,0x10
ADD ESP,0x14
POP EBX
POP ESI
RET
CALL 0x0002f970
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000347a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000347a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000347a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_10 [4];" type_identifier (array_declarator "local_10 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x347a7;" (assignment_expression "uStack_c = 0x347a7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00034650(local_10);" (assignment_expression "iVar1 = FUN_00034650(local_10)" identifier = (call_expression "FUN_00034650(local_10)" identifier (argument_list "(local_10)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" { (expression_statement "iVar2 = FUN_00027d60(iVar1,0xffffffff,1);" (assignment_expression "iVar2 = FUN_00027d60(iVar1,0xffffffff,1)" identifier = (call_expression "FUN_00027d60(iVar1,0xffffffff,1)" identifier (argument_list "(iVar1,0xffffffff,1)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }" if (parenthesized_expression "((iVar2 == 0) && (param_1 != 0))" ( (binary_expression "(iVar2 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_0002f970();\n      return;\n    }" { (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001ccc0(iVar1);" (call_expression "FUN_0001ccc0(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0004eb30(iVar1,param_1);" (call_expression "FUN_0004eb30(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid s_app_file(int appfile)\n\n{\n  char *fname;\n  int iVar1;\n  int length;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  fname = demand_copy_string(&length);\n  if (fname != (char *)0x0) {\n    iVar1 = new_logical_line_flags(fname,-1,1);\n    if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }\n    demand_empty_rest_of_line();\n    register_dependency(fname);\n    elf_file_symbol(fname,appfile);\n  }\n  return;\n}\n\n" comment comment (function_definition "void s_app_file(int appfile)\n\n{\n  char *fname;\n  int iVar1;\n  int length;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  fname = demand_copy_string(&length);\n  if (fname != (char *)0x0) {\n    iVar1 = new_logical_line_flags(fname,-1,1);\n    if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }\n    demand_empty_rest_of_line();\n    register_dependency(fname);\n    elf_file_symbol(fname,appfile);\n  }\n  return;\n}" primitive_type (function_declarator "s_app_file(int appfile)" identifier (parameter_list "(int appfile)" ( (parameter_declaration "int appfile" primitive_type identifier) ))) (compound_statement "{\n  char *fname;\n  int iVar1;\n  int length;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  fname = demand_copy_string(&length);\n  if (fname != (char *)0x0) {\n    iVar1 = new_logical_line_flags(fname,-1,1);\n    if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }\n    demand_empty_rest_of_line();\n    register_dependency(fname);\n    elf_file_symbol(fname,appfile);\n  }\n  return;\n}" { (declaration "char *fname;" primitive_type (pointer_declarator "*fname" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int length;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x347a7;" (assignment_expression "uStack_c = 0x347a7" identifier = number_literal) ;) (expression_statement "fname = demand_copy_string(&length);" (assignment_expression "fname = demand_copy_string(&length)" identifier = (call_expression "demand_copy_string(&length)" identifier (argument_list "(&length)" ( (pointer_expression "&length" & identifier) )))) ;) (if_statement "if (fname != (char *)0x0) {\n    iVar1 = new_logical_line_flags(fname,-1,1);\n    if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }\n    demand_empty_rest_of_line();\n    register_dependency(fname);\n    elf_file_symbol(fname,appfile);\n  }" if (parenthesized_expression "(fname != (char *)0x0)" ( (binary_expression "fname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = new_logical_line_flags(fname,-1,1);\n    if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }\n    demand_empty_rest_of_line();\n    register_dependency(fname);\n    elf_file_symbol(fname,appfile);\n  }" { (expression_statement "iVar1 = new_logical_line_flags(fname,-1,1);" (assignment_expression "iVar1 = new_logical_line_flags(fname,-1,1)" identifier = (call_expression "new_logical_line_flags(fname,-1,1)" identifier (argument_list "(fname,-1,1)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar1 == 0) && (appfile != 0)) {\n      demand_empty_rest_of_line();\n      return;\n    }" if (parenthesized_expression "((iVar1 == 0) && (appfile != 0))" ( (binary_expression "(iVar1 == 0) && (appfile != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(appfile != 0)" ( (binary_expression "appfile != 0" identifier != number_literal) ))) )) (compound_statement "{\n      demand_empty_rest_of_line();\n      return;\n    }" { (expression_statement "demand_empty_rest_of_line();" (call_expression "demand_empty_rest_of_line()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "demand_empty_rest_of_line();" (call_expression "demand_empty_rest_of_line()" identifier (argument_list "()" ( ))) ;) (expression_statement "register_dependency(fname);" (call_expression "register_dependency(fname)" identifier (argument_list "(fname)" ( identifier ))) ;) (expression_statement "elf_file_symbol(fname,appfile);" (call_expression "elf_file_symbol(fname,appfile)" identifier (argument_list "(fname,appfile)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000347a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000347a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000347a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_10 [4];" type_identifier (array_declarator "local_10 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x347a7;" (assignment_expression "uStack_c = 0x347a7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00034650(local_10);" (assignment_expression "iVar1 = FUN_00034650(local_10)" identifier = (call_expression "FUN_00034650(local_10)" identifier (argument_list "(local_10)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" { (expression_statement "iVar2 = FUN_00027d60(iVar1,0xffffffff,1);" (assignment_expression "iVar2 = FUN_00027d60(iVar1,0xffffffff,1)" identifier = (call_expression "FUN_00027d60(iVar1,0xffffffff,1)" identifier (argument_list "(iVar1,0xffffffff,1)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }" if (parenthesized_expression "((iVar2 == 0) && (param_1 != 0))" ( (binary_expression "(iVar2 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_0002f970();\n      return;\n    }" { (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001ccc0(iVar1);" (call_expression "FUN_0001ccc0(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0004eb30(iVar1,param_1);" (call_expression "FUN_0004eb30(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000347a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000347a0(int param_1)" (identifier "FUN_000347a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 local_10 [4];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x347a7;\n  iVar1 = FUN_00034650(local_10);\n  if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 local_10 [4];" (type_identifier "undefined1") (array_declarator "local_10 [4]" (identifier "local_10") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x347a7;" (assignment_expression "uStack_c = 0x347a7" (identifier "uStack_c") (= "=") (number_literal "0x347a7")) (; ";")) (expression_statement "iVar1 = FUN_00034650(local_10);" (assignment_expression "iVar1 = FUN_00034650(local_10)" (identifier "iVar1") (= "=") (call_expression "FUN_00034650(local_10)" (identifier "FUN_00034650") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);\n    if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }\n    FUN_0002f970();\n    FUN_0001ccc0(iVar1);\n    FUN_0004eb30(iVar1,param_1);\n  }" ({ "{") (expression_statement "iVar2 = FUN_00027d60(iVar1,0xffffffff,1);" (assignment_expression "iVar2 = FUN_00027d60(iVar1,0xffffffff,1)" (identifier "iVar2") (= "=") (call_expression "FUN_00027d60(iVar1,0xffffffff,1)" (identifier "FUN_00027d60") (argument_list "(iVar1,0xffffffff,1)" (( "(") (identifier "iVar1") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (param_1 != 0)) {\n      FUN_0002f970();\n      return;\n    }" (if "if") (parenthesized_expression "((iVar2 == 0) && (param_1 != 0))" (( "(") (binary_expression "(iVar2 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_0002f970();\n      return;\n    }" ({ "{") (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" (identifier "FUN_0002f970") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0002f970();" (call_expression "FUN_0002f970()" (identifier "FUN_0002f970") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0001ccc0(iVar1);" (call_expression "FUN_0001ccc0(iVar1)" (identifier "FUN_0001ccc0") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0004eb30(iVar1,param_1);" (call_expression "FUN_0004eb30(iVar1,param_1)" (identifier "FUN_0004eb30") (argument_list "(iVar1,param_1)" (( "(") (identifier "iVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_5)

{
  char *var_2;
  int var_4;
  int length;
  type_1 uStack_c;
  
  uStack_c = 0x347a7;
  var_2 = var_1(&length);
  if (var_2 != (char *)0x0) {
    var_4 = var_3(var_2,-1,1);
    if ((var_4 == 0) && (var_5 != 0)) {
      var_6();
      return;
    }
    var_6();
    var_7(var_2);
    var_8(var_2,var_5);
  }
  return;
}


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

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

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  undefined1 local_10 [4];
  undefined4 uStack_c;
  
  uStack_c = 0x347a7;
  iVar1 = FUN_00034650(local_10);
  if (iVar1 != 0) {
    iVar2 = FUN_00027d60(iVar1,0xffffffff,1);
    if ((iVar2 == 0) && (param_1 != 0)) {
      FUN_0002f970();
      return;
    }
    FUN_0002f970();
    FUN_0001ccc0(iVar1);
    FUN_0004eb30(iVar1,param_1);
  }
  return;
}

