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

char * xrealloc_getcwd_or_warn(char *cwd)

{
}



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

undefined4 FUN_000b406b(void)

{
  int *piVar1;
  char *__buf;
  char *pcVar2;
  undefined4 uVar3;
  size_t __size;
  
  piVar1 = DAT_000d16fc;
  __size = 0x80;
  do {
    __size = __size + 0x40;
    __buf = (char *)FUN_00019b52();
    pcVar2 = getcwd(__buf,__size);
    if (pcVar2 != (char *)0x0) {
      strlen(__buf);
      uVar3 = FUN_00019b52();
      return uVar3;
    }
  } while (*piVar1 == 0x22);
  free(__buf);
  FUN_00018e3c("getcwd");
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
CALL 0x00017640
ADD EBX,0x1c9a9
MOV ESI,EAX
MOV EDI,0x80
MOV EBP,dword ptr [EBX + 0xcdc]
ADD EDI,0x40
MOV EDX,EDI
MOV EAX,ESI
CALL 0x00019b52
MOV ESI,EAX
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00016af0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000b40d0
CMP dword ptr [EBP],0x22
JZ 0x000b408a
SUB ESP,0xc
PUSH ESI
CALL 0x000175a0
LEA EAX,[EBX + 0xffffd682]
MOV dword ptr [ESP],EAX
CALL 0x00018e3c
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00016b40
LEA EDX,[EAX + 0x1]
MOV EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00019b52
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000b406b(void)\n\n{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000b406b(void)\n\n{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" type_identifier (function_declarator "FUN_000b406b(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "__size = 0x80;" (assignment_expression "__size = 0x80" identifier = number_literal) ;) (do_statement "do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);" do (compound_statement "{\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  }" { (expression_statement "__size = __size + 0x40;" (assignment_expression "__size = __size + 0x40" identifier = (binary_expression "__size + 0x40" identifier + number_literal)) ;) (expression_statement "__buf = (char *)FUN_00019b52();" (assignment_expression "__buf = (char *)FUN_00019b52()" identifier = (cast_expression "(char *)FUN_00019b52()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b52()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar2 = getcwd(__buf,__size);" (assignment_expression "pcVar2 = getcwd(__buf,__size)" identifier = (call_expression "getcwd(__buf,__size)" identifier (argument_list "(__buf,__size)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" { (expression_statement "strlen(__buf);" (call_expression "strlen(__buf)" identifier (argument_list "(__buf)" ( identifier ))) ;) (expression_statement "uVar3 = FUN_00019b52();" (assignment_expression "uVar3 = FUN_00019b52()" identifier = (call_expression "FUN_00019b52()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) while (parenthesized_expression "(*piVar1 == 0x22)" ( (binary_expression "*piVar1 == 0x22" (pointer_expression "*piVar1" * identifier) == number_literal) )) ;) (expression_statement "free(__buf);" (call_expression "free(__buf)" identifier (argument_list "(__buf)" ( identifier ))) ;) (expression_statement "FUN_00018e3c("getcwd");" (call_expression "FUN_00018e3c("getcwd")" identifier (argument_list "("getcwd")" ( (string_literal ""getcwd"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * xrealloc_getcwd_or_warn(char *cwd)\n\n{\n}\n\n" comment (function_definition "char * xrealloc_getcwd_or_warn(char *cwd)\n\n{\n}" primitive_type (pointer_declarator "* xrealloc_getcwd_or_warn(char *cwd)" * (function_declarator "xrealloc_getcwd_or_warn(char *cwd)" identifier (parameter_list "(char *cwd)" ( (parameter_declaration "char *cwd" primitive_type (pointer_declarator "*cwd" * identifier)) )))) (compound_statement "{\n}" { })))
(translation_unit "undefined4 FUN_000b406b(void)\n\n{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000b406b(void)\n\n{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" type_identifier (function_declarator "FUN_000b406b(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "__size = 0x80;" (assignment_expression "__size = 0x80" identifier = number_literal) ;) (do_statement "do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);" do (compound_statement "{\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  }" { (expression_statement "__size = __size + 0x40;" (assignment_expression "__size = __size + 0x40" identifier = (binary_expression "__size + 0x40" identifier + number_literal)) ;) (expression_statement "__buf = (char *)FUN_00019b52();" (assignment_expression "__buf = (char *)FUN_00019b52()" identifier = (cast_expression "(char *)FUN_00019b52()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b52()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar2 = getcwd(__buf,__size);" (assignment_expression "pcVar2 = getcwd(__buf,__size)" identifier = (call_expression "getcwd(__buf,__size)" identifier (argument_list "(__buf,__size)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" { (expression_statement "strlen(__buf);" (call_expression "strlen(__buf)" identifier (argument_list "(__buf)" ( identifier ))) ;) (expression_statement "uVar3 = FUN_00019b52();" (assignment_expression "uVar3 = FUN_00019b52()" identifier = (call_expression "FUN_00019b52()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) while (parenthesized_expression "(*piVar1 == 0x22)" ( (binary_expression "*piVar1 == 0x22" (pointer_expression "*piVar1" * identifier) == number_literal) )) ;) (expression_statement "free(__buf);" (call_expression "free(__buf)" identifier (argument_list "(__buf)" ( identifier ))) ;) (expression_statement "FUN_00018e3c("getcwd");" (call_expression "FUN_00018e3c("getcwd")" identifier (argument_list "("getcwd")" ( (string_literal ""getcwd"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000b406b(void)\n\n{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000b406b(void)" (identifier "FUN_000b406b") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char *__buf;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t __size;\n  \n  piVar1 = DAT_000d16fc;\n  __size = 0x80;\n  do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);\n  free(__buf);\n  FUN_00018e3c("getcwd");\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *__buf;" (primitive_type "char") (pointer_declarator "*__buf" (* "*") (identifier "__buf")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" (identifier "piVar1") (= "=") (identifier "DAT_000d16fc")) (; ";")) (expression_statement "__size = 0x80;" (assignment_expression "__size = 0x80" (identifier "__size") (= "=") (number_literal "0x80")) (; ";")) (do_statement "do {\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  } while (*piVar1 == 0x22);" (do "do") (compound_statement "{\n    __size = __size + 0x40;\n    __buf = (char *)FUN_00019b52();\n    pcVar2 = getcwd(__buf,__size);\n    if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }\n  }" ({ "{") (expression_statement "__size = __size + 0x40;" (assignment_expression "__size = __size + 0x40" (identifier "__size") (= "=") (binary_expression "__size + 0x40" (identifier "__size") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "__buf = (char *)FUN_00019b52();" (assignment_expression "__buf = (char *)FUN_00019b52()" (identifier "__buf") (= "=") (cast_expression "(char *)FUN_00019b52()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b52()" (identifier "FUN_00019b52") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pcVar2 = getcwd(__buf,__size);" (assignment_expression "pcVar2 = getcwd(__buf,__size)" (identifier "pcVar2") (= "=") (call_expression "getcwd(__buf,__size)" (identifier "getcwd") (argument_list "(__buf,__size)" (( "(") (identifier "__buf") (, ",") (identifier "__size") () ")")))) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      strlen(__buf);\n      uVar3 = FUN_00019b52();\n      return uVar3;\n    }" ({ "{") (expression_statement "strlen(__buf);" (call_expression "strlen(__buf)" (identifier "strlen") (argument_list "(__buf)" (( "(") (identifier "__buf") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00019b52();" (assignment_expression "uVar3 = FUN_00019b52()" (identifier "uVar3") (= "=") (call_expression "FUN_00019b52()" (identifier "FUN_00019b52") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*piVar1 == 0x22)" (( "(") (binary_expression "*piVar1 == 0x22" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x22")) () ")")) (; ";")) (expression_statement "free(__buf);" (call_expression "free(__buf)" (identifier "free") (argument_list "(__buf)" (( "(") (identifier "__buf") () ")"))) (; ";")) (expression_statement "FUN_00018e3c("getcwd");" (call_expression "FUN_00018e3c("getcwd")" (identifier "FUN_00018e3c") (argument_list "("getcwd")" (( "(") (string_literal ""getcwd"" (" """) (string_content "getcwd") (" """)) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

char * function_1(char *cwd)

{
}


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

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

undefined4 MASKED(void)

{
  int *piVar1;
  char *__buf;
  char *pcVar2;
  undefined4 uVar3;
  size_t __size;
  
  piVar1 = DAT_000d16fc;
  __size = 0x80;
  do {
    __size = __size + 0x40;
    __buf = (char *)FUN_00019b52();
    pcVar2 = getcwd(__buf,__size);
    if (pcVar2 != (char *)0x0) {
      strlen(__buf);
      uVar3 = FUN_00019b52();
      return uVar3;
    }
  } while (*piVar1 == 0x22);
  free(__buf);
  FUN_00018e3c("getcwd");
  return 0;
}

