
/* WARNING: Unknown calling convention */

sftp_request * fxp_mkdir_send(char *path)

{
  int iVar1;
  sftp_request *psVar2;
  sftp_packet *pkt;
  int in_GS_OFFSET;
  int in_stack_ffffffe4;
  uchar x [4];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  psVar2 = sftp_alloc_request();
  pkt = sftp_pkt_init(in_stack_ffffffe4);
  sftp_pkt_adduint32(pkt,psVar2->id);
  sftp_pkt_addstring(pkt,path);
  x[0] = '\0';
  x[1] = '\0';
  x[2] = '\0';
  x[3] = '\0';
  sftp_pkt_adddata(pkt,x,4);
  sftp_send(pkt);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return psVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined4 FUN_00029a60(void)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_00028ca0();
  uVar3 = FUN_00028b70();
  FUN_00028a90();
  FUN_00028e40();
  FUN_00028a20();
  FUN_000291f0(uVar3);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x20]
CALL 0x00028ca0
MOV ESI,EAX
MOV EAX,0xe
CALL 0x00028b70
MOV EDX,dword ptr [ESI]
MOV EBX,EAX
CALL 0x00028a90
MOV EDX,EDI
MOV EAX,EBX
CALL 0x00028e40
LEA EDX,[ESP + 0x8]
MOV ECX,0x4
MOV EAX,EBX
MOV dword ptr [ESP + 0x8],0x0
CALL 0x00028a20
SUB ESP,0xc
PUSH EBX
CALL 0x000291f0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00029ad3
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
CALL 0x0006f2a0
(translation_unit "undefined4 FUN_00029a60(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" (function_definition "undefined4 FUN_00029a60(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" type_identifier (function_declarator "FUN_00029a60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00028ca0();" (assignment_expression "uVar2 = FUN_00028ca0()" identifier = (call_expression "FUN_00028ca0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_00028b70();" (assignment_expression "uVar3 = FUN_00028b70()" identifier = (call_expression "FUN_00028b70()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00028a90();" (call_expression "FUN_00028a90()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00028e40();" (call_expression "FUN_00028e40()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00028a20();" (call_expression "FUN_00028a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000291f0(uVar3);" (call_expression "FUN_000291f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nsftp_request * fxp_mkdir_send(char *path)\n\n{\n  int iVar1;\n  sftp_request *psVar2;\n  sftp_packet *pkt;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_alloc_request();\n  pkt = sftp_pkt_init(in_stack_ffffffe4);\n  sftp_pkt_adduint32(pkt,psVar2->id);\n  sftp_pkt_addstring(pkt,path);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\0';\n  sftp_pkt_adddata(pkt,x,4);\n  sftp_send(pkt);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return psVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "sftp_request * fxp_mkdir_send(char *path)\n\n{\n  int iVar1;\n  sftp_request *psVar2;\n  sftp_packet *pkt;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_alloc_request();\n  pkt = sftp_pkt_init(in_stack_ffffffe4);\n  sftp_pkt_adduint32(pkt,psVar2->id);\n  sftp_pkt_addstring(pkt,path);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\0';\n  sftp_pkt_adddata(pkt,x,4);\n  sftp_send(pkt);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return psVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* fxp_mkdir_send(char *path)" * (function_declarator "fxp_mkdir_send(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  sftp_request *psVar2;\n  sftp_packet *pkt;\n  int in_GS_OFFSET;\n  int in_stack_ffffffe4;\n  uchar x [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar2 = sftp_alloc_request();\n  pkt = sftp_pkt_init(in_stack_ffffffe4);\n  sftp_pkt_adduint32(pkt,psVar2->id);\n  sftp_pkt_addstring(pkt,path);\n  x[0] = '\0';\n  x[1] = '\0';\n  x[2] = '\0';\n  x[3] = '\0';\n  sftp_pkt_adddata(pkt,x,4);\n  sftp_send(pkt);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return psVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sftp_request *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "sftp_packet *pkt;" type_identifier (pointer_declarator "*pkt" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int in_stack_ffffffe4;" primitive_type identifier ;) (declaration "uchar x [4];" type_identifier (array_declarator "x [4]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "psVar2 = sftp_alloc_request();" (assignment_expression "psVar2 = sftp_alloc_request()" identifier = (call_expression "sftp_alloc_request()" identifier (argument_list "()" ( )))) ;) (expression_statement "pkt = sftp_pkt_init(in_stack_ffffffe4);" (assignment_expression "pkt = sftp_pkt_init(in_stack_ffffffe4)" identifier = (call_expression "sftp_pkt_init(in_stack_ffffffe4)" identifier (argument_list "(in_stack_ffffffe4)" ( identifier )))) ;) (expression_statement "sftp_pkt_adduint32(pkt,psVar2->id);" (call_expression "sftp_pkt_adduint32(pkt,psVar2->id)" identifier (argument_list "(pkt,psVar2->id)" ( identifier , (field_expression "psVar2->id" identifier -> field_identifier) ))) ;) (expression_statement "sftp_pkt_addstring(pkt,path);" (call_expression "sftp_pkt_addstring(pkt,path)" identifier (argument_list "(pkt,path)" ( identifier , identifier ))) ;) (expression_statement "x[0] = '\0';" (assignment_expression "x[0] = '\0'" (subscript_expression "x[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[1] = '\0';" (assignment_expression "x[1] = '\0'" (subscript_expression "x[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[2] = '\0';" (assignment_expression "x[2] = '\0'" (subscript_expression "x[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "x[3] = '\0';" (assignment_expression "x[3] = '\0'" (subscript_expression "x[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sftp_pkt_adddata(pkt,x,4);" (call_expression "sftp_pkt_adddata(pkt,x,4)" identifier (argument_list "(pkt,x,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "sftp_send(pkt);" (call_expression "sftp_send(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return psVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return psVar2;\n  }" { (return_statement "return psVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00029a60(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "undefined4 FUN_00029a60(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f2a0();\n}" type_identifier (function_declarator "FUN_00029a60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00028ca0();" (assignment_expression "uVar2 = FUN_00028ca0()" identifier = (call_expression "FUN_00028ca0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_00028b70();" (assignment_expression "uVar3 = FUN_00028b70()" identifier = (call_expression "FUN_00028b70()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00028a90();" (call_expression "FUN_00028a90()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00028e40();" (call_expression "FUN_00028e40()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00028a20();" (call_expression "FUN_00028a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000291f0(uVar3);" (call_expression "FUN_000291f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00029a60(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f2a0();\n}" (type_identifier "undefined4") (function_declarator "FUN_00029a60(void)" (identifier "FUN_00029a60") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_00028ca0();\n  uVar3 = FUN_00028b70();\n  FUN_00028a90();\n  FUN_00028e40();\n  FUN_00028a20();\n  FUN_000291f0(uVar3);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_00028ca0();" (assignment_expression "uVar2 = FUN_00028ca0()" (identifier "uVar2") (= "=") (call_expression "FUN_00028ca0()" (identifier "FUN_00028ca0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00028b70();" (assignment_expression "uVar3 = FUN_00028b70()" (identifier "uVar3") (= "=") (call_expression "FUN_00028b70()" (identifier "FUN_00028b70") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00028a90();" (call_expression "FUN_00028a90()" (identifier "FUN_00028a90") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00028e40();" (call_expression "FUN_00028e40()" (identifier "FUN_00028e40") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00028a20();" (call_expression "FUN_00028a20()" (identifier "FUN_00028a20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000291f0(uVar3);" (call_expression "FUN_000291f0(uVar3)" (identifier "FUN_000291f0") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(char *path)

{
  int var_8;
  type_1 *psVar2;
  type_2 *pkt;
  int var_1;
  int in_stack_ffffffe4;
  type_3 x [4];
  
  var_8 = *(int *)(var_1 + 0x14);
  psVar2 = var_2();
  pkt = var_3(in_stack_ffffffe4);
  var_4(pkt,psVar2->id);
  var_5(pkt,path);
  x[0] = '\0';
  x[1] = '\0';
  x[2] = '\0';
  x[3] = '\0';
  var_6(pkt,x,4);
  var_7(pkt);
  if (var_8 == *(int *)(var_1 + 0x14)) {
    return psVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined4 MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_00028ca0();
  uVar3 = FUN_00028b70();
  FUN_00028a90();
  FUN_00028e40();
  FUN_00028a20();
  FUN_000291f0(uVar3);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

