
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode tftp_doing(connectdata *conn,_Bool *dophase_done)

{
  int iVar1;
  curltime now;
  CURLcode CVar2;
  int iVar3;
  int in_GS_OFFSET;
  time_t local_24;
  int iStack_20;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  CVar2 = tftp_multi_statemach(conn,dophase_done);
  if ((*dophase_done != true) && (CVar2 == CURLE_OK)) {
    iVar3 = Curl_pgrsUpdate(conn);
    CVar2 = CURLE_ABORTED_BY_CALLBACK;
    if (iVar3 == 0) {
      Curl_now();
      now.tv_usec = iStack_20;
      now.tv_sec = local_24;
      CVar2 = Curl_speedcheck(conn->data,now);
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return CVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int FUN_0004ae90(char *param_1)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  int in_GS_OFFSET;
  undefined4 *unaff_retaddr;
  undefined1 auStack_34 [4];
  undefined1 auStack_30 [4];
  undefined4 local_2c;
  undefined4 local_28 [5];
  undefined4 local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x4ae98;
  entry();
  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0004a730(unaff_retaddr,param_1);
  puVar3 = auStack_30;
  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {
    iVar2 = FUN_0001cc10(unaff_retaddr);
    puVar3 = auStack_30;
    iVar1 = 0x2a;
    if (iVar2 == 0) {
      FUN_0001ab40(local_28);
      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);
      puVar3 = auStack_34;
    }
  }
  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(code **)(puVar3 + -4) = FUN_0004af20;
  FUN_0007c1a0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x65948
SUB ESP,0x28
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x24],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [ESP + 0x38]
PUSH ESI
PUSH EDI
CALL 0x0004a730
ADD ESP,0x10
CMP byte ptr [ESI],0x1
JZ 0x0004aec8
TEST EAX,EAX
JZ 0x0004aee0
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0004af1b
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH EDI
CALL 0x0001cc10
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,0x2a
TEST EDX,EDX
JNZ 0x0004aec8
LEA EAX,[ESP + 0x8]
SUB ESP,0xc
PUSH EAX
CALL 0x0001ab40
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [EDI]
CALL 0x00033f20
ADD ESP,0x20
JMP 0x0004aec8
CALL 0x0007c1a0
(translation_unit "int FUN_0004ae90(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_0004ae90(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_0004ae90(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_34 [4];" type_identifier (array_declarator "auStack_34 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_30 [4];" type_identifier (array_declarator "auStack_30 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28 [5];" type_identifier (array_declarator "local_28 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x4ae98;" (assignment_expression "uStack_10 = 0x4ae98" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0004a730(unaff_retaddr,param_1);" (assignment_expression "iVar1 = FUN_0004a730(unaff_retaddr,param_1)" identifier = (call_expression "FUN_0004a730(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" identifier = identifier) ;) (if_statement "if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" if (parenthesized_expression "((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0))" ( (binary_expression "(*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)" (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar3 = auStack_30, iVar1 == 0)" ( (comma_expression "puVar3 = auStack_30, iVar1 == 0" (assignment_expression "puVar3 = auStack_30" identifier = identifier) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" { (expression_statement "iVar2 = FUN_0001cc10(unaff_retaddr);" (assignment_expression "iVar2 = FUN_0001cc10(unaff_retaddr)" identifier = (call_expression "FUN_0001cc10(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" identifier = identifier) ;) (expression_statement "iVar1 = 0x2a;" (assignment_expression "iVar1 = 0x2a" identifier = number_literal) ;) (if_statement "if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" { (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);" (assignment_expression "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" identifier = (call_expression "FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" identifier (argument_list "(*unaff_retaddr,local_2c,local_28[0])" ( (pointer_expression "*unaff_retaddr" * identifier) , identifier , (subscript_expression "local_28[0]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" identifier = identifier) ;) })) })) (if_statement "if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar3 + 0x1c)" * (cast_expression "(int *)(puVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1c)" ( (binary_expression "puVar3 + 0x1c" identifier + number_literal) )))) == (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 iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "*(code **)(puVar3 + -4) = FUN_0004af20;" (assignment_expression "*(code **)(puVar3 + -4) = FUN_0004af20" (pointer_expression "*(code **)(puVar3 + -4)" * (cast_expression "(code **)(puVar3 + -4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode tftp_doing(connectdata *conn,_Bool *dophase_done)\n\n{\n  int iVar1;\n  curltime now;\n  CURLcode CVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar2 = tftp_multi_statemach(conn,dophase_done);\n  if ((*dophase_done != true) && (CVar2 == CURLE_OK)) {\n    iVar3 = Curl_pgrsUpdate(conn);\n    CVar2 = CURLE_ABORTED_BY_CALLBACK;\n    if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "CURLcode tftp_doing(connectdata *conn,_Bool *dophase_done)\n\n{\n  int iVar1;\n  curltime now;\n  CURLcode CVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar2 = tftp_multi_statemach(conn,dophase_done);\n  if ((*dophase_done != true) && (CVar2 == CURLE_OK)) {\n    iVar3 = Curl_pgrsUpdate(conn);\n    CVar2 = CURLE_ABORTED_BY_CALLBACK;\n    if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "tftp_doing(connectdata *conn,_Bool *dophase_done)" identifier (parameter_list "(connectdata *conn,_Bool *dophase_done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *dophase_done" type_identifier (pointer_declarator "*dophase_done" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  curltime now;\n  CURLcode CVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar2 = tftp_multi_statemach(conn,dophase_done);\n  if ((*dophase_done != true) && (CVar2 == CURLE_OK)) {\n    iVar3 = Curl_pgrsUpdate(conn);\n    CVar2 = CURLE_ABORTED_BY_CALLBACK;\n    if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "curltime now;" type_identifier identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "time_t local_24;" type_identifier identifier ;) (declaration "int iStack_20;" 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 "CVar2 = tftp_multi_statemach(conn,dophase_done);" (assignment_expression "CVar2 = tftp_multi_statemach(conn,dophase_done)" identifier = (call_expression "tftp_multi_statemach(conn,dophase_done)" identifier (argument_list "(conn,dophase_done)" ( identifier , identifier )))) ;) (if_statement "if ((*dophase_done != true) && (CVar2 == CURLE_OK)) {\n    iVar3 = Curl_pgrsUpdate(conn);\n    CVar2 = CURLE_ABORTED_BY_CALLBACK;\n    if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }\n  }" if (parenthesized_expression "((*dophase_done != true) && (CVar2 == CURLE_OK))" ( (binary_expression "(*dophase_done != true) && (CVar2 == CURLE_OK)" (parenthesized_expression "(*dophase_done != true)" ( (binary_expression "*dophase_done != true" (pointer_expression "*dophase_done" * identifier) != true) )) && (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) ))) )) (compound_statement "{\n    iVar3 = Curl_pgrsUpdate(conn);\n    CVar2 = CURLE_ABORTED_BY_CALLBACK;\n    if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }\n  }" { (expression_statement "iVar3 = Curl_pgrsUpdate(conn);" (assignment_expression "iVar3 = Curl_pgrsUpdate(conn)" identifier = (call_expression "Curl_pgrsUpdate(conn)" identifier (argument_list "(conn)" ( identifier )))) ;) (expression_statement "CVar2 = CURLE_ABORTED_BY_CALLBACK;" (assignment_expression "CVar2 = CURLE_ABORTED_BY_CALLBACK" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      Curl_now();\n      now.tv_usec = iStack_20;\n      now.tv_sec = local_24;\n      CVar2 = Curl_speedcheck(conn->data,now);\n    }" { (expression_statement "Curl_now();" (call_expression "Curl_now()" identifier (argument_list "()" ( ))) ;) (expression_statement "now.tv_usec = iStack_20;" (assignment_expression "now.tv_usec = iStack_20" (field_expression "now.tv_usec" identifier . field_identifier) = identifier) ;) (expression_statement "now.tv_sec = local_24;" (assignment_expression "now.tv_sec = local_24" (field_expression "now.tv_sec" identifier . field_identifier) = identifier) ;) (expression_statement "CVar2 = Curl_speedcheck(conn->data,now);" (assignment_expression "CVar2 = Curl_speedcheck(conn->data,now)" identifier = (call_expression "Curl_speedcheck(conn->data,now)" identifier (argument_list "(conn->data,now)" ( (field_expression "conn->data" identifier -> field_identifier) , identifier )))) ;) })) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar2;\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 CVar2;\n  }" { (return_statement "return CVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0004ae90(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_0004ae90(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_0004ae90(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_34 [4];" type_identifier (array_declarator "auStack_34 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_30 [4];" type_identifier (array_declarator "auStack_30 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28 [5];" type_identifier (array_declarator "local_28 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x4ae98;" (assignment_expression "uStack_10 = 0x4ae98" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0004a730(unaff_retaddr,param_1);" (assignment_expression "iVar1 = FUN_0004a730(unaff_retaddr,param_1)" identifier = (call_expression "FUN_0004a730(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" identifier = identifier) ;) (if_statement "if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" if (parenthesized_expression "((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0))" ( (binary_expression "(*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)" (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar3 = auStack_30, iVar1 == 0)" ( (comma_expression "puVar3 = auStack_30, iVar1 == 0" (assignment_expression "puVar3 = auStack_30" identifier = identifier) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" { (expression_statement "iVar2 = FUN_0001cc10(unaff_retaddr);" (assignment_expression "iVar2 = FUN_0001cc10(unaff_retaddr)" identifier = (call_expression "FUN_0001cc10(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" identifier = identifier) ;) (expression_statement "iVar1 = 0x2a;" (assignment_expression "iVar1 = 0x2a" identifier = number_literal) ;) (if_statement "if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" { (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);" (assignment_expression "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" identifier = (call_expression "FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" identifier (argument_list "(*unaff_retaddr,local_2c,local_28[0])" ( (pointer_expression "*unaff_retaddr" * identifier) , identifier , (subscript_expression "local_28[0]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" identifier = identifier) ;) })) })) (if_statement "if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar3 + 0x1c)" * (cast_expression "(int *)(puVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1c)" ( (binary_expression "puVar3 + 0x1c" identifier + number_literal) )))) == (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 iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*(code **)(puVar3 + -4) = FUN_0004af20;" (assignment_expression "*(code **)(puVar3 + -4) = FUN_0004af20" (pointer_expression "*(code **)(puVar3 + -4)" * (cast_expression "(code **)(puVar3 + -4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0004ae90(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" (primitive_type "int") (function_declarator "FUN_0004ae90(char *param_1)" (identifier "FUN_0004ae90") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int in_GS_OFFSET;\n  undefined4 *unaff_retaddr;\n  undefined1 auStack_34 [4];\n  undefined1 auStack_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28 [5];\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x4ae98;\n  entry();\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0004a730(unaff_retaddr,param_1);\n  puVar3 = auStack_30;\n  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }\n  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  *(code **)(puVar3 + -4) = FUN_0004af20;\n  FUN_0007c1a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "undefined1 auStack_34 [4];" (type_identifier "undefined1") (array_declarator "auStack_34 [4]" (identifier "auStack_34") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 auStack_30 [4];" (type_identifier "undefined1") (array_declarator "auStack_30 [4]" (identifier "auStack_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28 [5];" (type_identifier "undefined4") (array_declarator "local_28 [5]" (identifier "local_28") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x4ae98;" (assignment_expression "uStack_10 = 0x4ae98" (identifier "uStack_10") (= "=") (number_literal "0x4ae98")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_0004a730(unaff_retaddr,param_1);" (assignment_expression "iVar1 = FUN_0004a730(unaff_retaddr,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0004a730(unaff_retaddr,param_1)" (identifier "FUN_0004a730") (argument_list "(unaff_retaddr,param_1)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" (identifier "puVar3") (= "=") (identifier "auStack_30")) (; ";")) (if_statement "if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0))" (( "(") (binary_expression "(*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)" (parenthesized_expression "(*param_1 != '\x01')" (( "(") (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(puVar3 = auStack_30, iVar1 == 0)" (( "(") (comma_expression "puVar3 = auStack_30, iVar1 == 0" (assignment_expression "puVar3 = auStack_30" (identifier "puVar3") (= "=") (identifier "auStack_30")) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = FUN_0001cc10(unaff_retaddr);\n    puVar3 = auStack_30;\n    iVar1 = 0x2a;\n    if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001cc10(unaff_retaddr);" (assignment_expression "iVar2 = FUN_0001cc10(unaff_retaddr)" (identifier "iVar2") (= "=") (call_expression "FUN_0001cc10(unaff_retaddr)" (identifier "FUN_0001cc10") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")")))) (; ";")) (expression_statement "puVar3 = auStack_30;" (assignment_expression "puVar3 = auStack_30" (identifier "puVar3") (= "=") (identifier "auStack_30")) (; ";")) (expression_statement "iVar1 = 0x2a;" (assignment_expression "iVar1 = 0x2a" (identifier "iVar1") (= "=") (number_literal "0x2a")) (; ";")) (if_statement "if (iVar2 == 0) {\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0001ab40(local_28);\n      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);\n      puVar3 = auStack_34;\n    }" ({ "{") (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" (identifier "FUN_0001ab40") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);" (assignment_expression "iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" (identifier "iVar1") (= "=") (call_expression "FUN_00033f20(*unaff_retaddr,local_2c,local_28[0])" (identifier "FUN_00033f20") (argument_list "(*unaff_retaddr,local_2c,local_28[0])" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (, ",") (identifier "local_2c") (, ",") (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";")) (expression_statement "puVar3 = auStack_34;" (assignment_expression "puVar3 = auStack_34" (identifier "puVar3") (= "=") (identifier "auStack_34")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar3 + 0x1c)" (* "*") (cast_expression "(int *)(puVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x1c)" (( "(") (binary_expression "puVar3 + 0x1c" (identifier "puVar3") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (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 iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "*(code **)(puVar3 + -4) = FUN_0004af20;" (assignment_expression "*(code **)(puVar3 + -4) = FUN_0004af20" (pointer_expression "*(code **)(puVar3 + -4)" (* "*") (cast_expression "(code **)(puVar3 + -4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + -4)" (( "(") (binary_expression "puVar3 + -4" (identifier "puVar3") (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "FUN_0004af20")) (; ";")) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *conn,type_3 *dophase_done)

{
  int var_9;
  type_4 now;
  type_1 var_3;
  int var_6;
  int var_1;
  type_5 local_24;
  int iStack_20;
  
  var_9 = *(int *)(var_1 + 0x14);
  var_3 = var_2(conn,dophase_done);
  if ((*dophase_done != true) && (var_3 == var_4)) {
    var_6 = var_5(conn);
    var_3 = CURLE_ABORTED_BY_CALLBACK;
    if (var_6 == 0) {
      var_7();
      now.tv_usec = iStack_20;
      now.tv_sec = local_24;
      var_3 = var_8(conn->data,now);
    }
  }
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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 (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) 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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

int MASKED(char *param_1)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  int in_GS_OFFSET;
  undefined4 *unaff_retaddr;
  undefined1 auStack_34 [4];
  undefined1 auStack_30 [4];
  undefined4 local_2c;
  undefined4 local_28 [5];
  undefined4 local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x4ae98;
  entry();
  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0004a730(unaff_retaddr,param_1);
  puVar3 = auStack_30;
  if ((*param_1 != '\x01') && (puVar3 = auStack_30, iVar1 == 0)) {
    iVar2 = FUN_0001cc10(unaff_retaddr);
    puVar3 = auStack_30;
    iVar1 = 0x2a;
    if (iVar2 == 0) {
      FUN_0001ab40(local_28);
      iVar1 = FUN_00033f20(*unaff_retaddr,local_2c,local_28[0]);
      puVar3 = auStack_34;
    }
  }
  if (*(int *)(puVar3 + 0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(code **)(puVar3 + -4) = FUN_0004af20;
  FUN_0007c1a0();
}

