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

prompts_t * new_prompts(void *frontend)

{
  int iVar1;
  prompts_t *ppVar2;
  int in_GS_OFFSET;
  char str [200];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  ppVar2 = (prompts_t *)malloc(0x24);
  if (ppVar2 == (prompts_t *)0x0) {
    builtin_strncpy(str,"Out of memory!",0xf);
    modalfatalbox("%s",str);
  }
  ppVar2->prompts = (prompt_t **)0x0;
  ppVar2->n_prompts = 0;
  ppVar2->frontend = frontend;
  ppVar2->data = (void *)0x0;
  ppVar2->to_server = 1;
  ppVar2->instruction = (char *)0x0;
  ppVar2->name = (char *)0x0;
  ppVar2->instr_reqd = 0;
  ppVar2->name_reqd = 0;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return ppVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 * FUN_0001c580(undefined4 param_1)

{
  undefined4 *puVar1;
  int in_GS_OFFSET;
  undefined4 local_d8;
  undefined4 local_d4;
  undefined4 local_d0;
  undefined2 local_cc;
  undefined1 local_ca;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  puVar1 = (undefined4 *)malloc(0x24);
  if (puVar1 == (undefined4 *)0x0) {
    local_d8 = 0x2074754f;
    local_d4 = 0x6d20666f;
    local_d0 = 0x726f6d65;
    local_cc = 0x2179;
    local_ca = 0;
    FUN_00023f60("%s",&local_d8);
  }
  puVar1[6] = 0;
  puVar1[5] = 0;
  puVar1[7] = param_1;
  puVar1[8] = 0;
  *puVar1 = 1;
  puVar1[3] = 0;
  puVar1[1] = 0;
  puVar1[4] = 0;
  puVar1[2] = 0;
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008eb20();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xb3808
SUB ESP,0xdc
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xd8],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0xec]
PUSH 0x24
CALL 0x00014360
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0001c5f8
MOV EDX,0x2179
MOV dword ptr [ESP + 0x4],0x2074754f
LEA EAX,[ESP + 0x4]
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],0x6d20666f
MOV dword ptr [ESP + 0x14],0x726f6d65
MOV word ptr [ESP + 0x18],DX
MOV byte ptr [ESP + 0x1a],0x0
PUSH EAX
LEA EAX,[EBX + 0xfffd0bb3]
PUSH EAX
CALL 0x00023f60
ADD ESP,0x10
MOV dword ptr [ESI + 0x18],0x0
MOV EAX,ESI
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x1c],EDI
MOV dword ptr [ESI + 0x20],0x0
MOV dword ptr [ESI],0x1
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x8],0x0
MOV EDX,dword ptr [ESP + 0xcc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0001c64e
ADD ESP,0xd0
POP EBX
POP ESI
POP EDI
RET
CALL 0x0008eb20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0001c580(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}\n\n" comment (function_definition "undefined4 * FUN_0001c580(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}" type_identifier (pointer_declarator "* FUN_0001c580(undefined4 param_1)" * (function_declarator "FUN_0001c580(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_d8;" type_identifier identifier ;) (declaration "undefined4 local_d4;" type_identifier identifier ;) (declaration "undefined4 local_d0;" type_identifier identifier ;) (declaration "undefined2 local_cc;" type_identifier identifier ;) (declaration "undefined1 local_ca;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "puVar1 = (undefined4 *)malloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x24)" identifier = (cast_expression "(undefined4 *)malloc(0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" { (expression_statement "local_d8 = 0x2074754f;" (assignment_expression "local_d8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "local_d4 = 0x6d20666f;" (assignment_expression "local_d4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_d0 = 0x726f6d65;" (assignment_expression "local_d0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_cc = 0x2179;" (assignment_expression "local_cc = 0x2179" identifier = number_literal) ;) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" identifier = number_literal) ;) (expression_statement "FUN_00023f60("%s",&local_d8);" (call_expression "FUN_00023f60("%s",&local_d8)" identifier (argument_list "("%s",&local_d8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_d8" & identifier) ))) ;) })) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[7] = param_1;" (assignment_expression "puVar1[7] = param_1" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 1;" (assignment_expression "*puVar1 = 1" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) comment (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" 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\nprompts_t * new_prompts(void *frontend)\n\n{\n  int iVar1;\n  prompts_t *ppVar2;\n  int in_GS_OFFSET;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ppVar2 = (prompts_t *)malloc(0x24);\n  if (ppVar2 == (prompts_t *)0x0) {\n    builtin_strncpy(str,"Out of memory!",0xf);\n    modalfatalbox("%s",str);\n  }\n  ppVar2->prompts = (prompt_t **)0x0;\n  ppVar2->n_prompts = 0;\n  ppVar2->frontend = frontend;\n  ppVar2->data = (void *)0x0;\n  ppVar2->to_server = 1;\n  ppVar2->instruction = (char *)0x0;\n  ppVar2->name = (char *)0x0;\n  ppVar2->instr_reqd = 0;\n  ppVar2->name_reqd = 0;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ppVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "prompts_t * new_prompts(void *frontend)\n\n{\n  int iVar1;\n  prompts_t *ppVar2;\n  int in_GS_OFFSET;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ppVar2 = (prompts_t *)malloc(0x24);\n  if (ppVar2 == (prompts_t *)0x0) {\n    builtin_strncpy(str,"Out of memory!",0xf);\n    modalfatalbox("%s",str);\n  }\n  ppVar2->prompts = (prompt_t **)0x0;\n  ppVar2->n_prompts = 0;\n  ppVar2->frontend = frontend;\n  ppVar2->data = (void *)0x0;\n  ppVar2->to_server = 1;\n  ppVar2->instruction = (char *)0x0;\n  ppVar2->name = (char *)0x0;\n  ppVar2->instr_reqd = 0;\n  ppVar2->name_reqd = 0;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ppVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* new_prompts(void *frontend)" * (function_declarator "new_prompts(void *frontend)" identifier (parameter_list "(void *frontend)" ( (parameter_declaration "void *frontend" primitive_type (pointer_declarator "*frontend" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  prompts_t *ppVar2;\n  int in_GS_OFFSET;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ppVar2 = (prompts_t *)malloc(0x24);\n  if (ppVar2 == (prompts_t *)0x0) {\n    builtin_strncpy(str,"Out of memory!",0xf);\n    modalfatalbox("%s",str);\n  }\n  ppVar2->prompts = (prompt_t **)0x0;\n  ppVar2->n_prompts = 0;\n  ppVar2->frontend = frontend;\n  ppVar2->data = (void *)0x0;\n  ppVar2->to_server = 1;\n  ppVar2->instruction = (char *)0x0;\n  ppVar2->name = (char *)0x0;\n  ppVar2->instr_reqd = 0;\n  ppVar2->name_reqd = 0;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ppVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "prompts_t *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char str [200];" primitive_type (array_declarator "str [200]" 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 "ppVar2 = (prompts_t *)malloc(0x24);" (assignment_expression "ppVar2 = (prompts_t *)malloc(0x24)" identifier = (cast_expression "(prompts_t *)malloc(0x24)" ( (type_descriptor "prompts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (if_statement "if (ppVar2 == (prompts_t *)0x0) {\n    builtin_strncpy(str,"Out of memory!",0xf);\n    modalfatalbox("%s",str);\n  }" if (parenthesized_expression "(ppVar2 == (prompts_t *)0x0)" ( (binary_expression "ppVar2 == (prompts_t *)0x0" identifier == (cast_expression "(prompts_t *)0x0" ( (type_descriptor "prompts_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    builtin_strncpy(str,"Out of memory!",0xf);\n    modalfatalbox("%s",str);\n  }" { (expression_statement "builtin_strncpy(str,"Out of memory!",0xf);" (call_expression "builtin_strncpy(str,"Out of memory!",0xf)" identifier (argument_list "(str,"Out of memory!",0xf)" ( identifier , (string_literal ""Out of memory!"" " string_content ") , number_literal ))) ;) (expression_statement "modalfatalbox("%s",str);" (call_expression "modalfatalbox("%s",str)" identifier (argument_list "("%s",str)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "ppVar2->prompts = (prompt_t **)0x0;" (assignment_expression "ppVar2->prompts = (prompt_t **)0x0" (field_expression "ppVar2->prompts" identifier -> field_identifier) = (cast_expression "(prompt_t **)0x0" ( (type_descriptor "prompt_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "ppVar2->n_prompts = 0;" (assignment_expression "ppVar2->n_prompts = 0" (field_expression "ppVar2->n_prompts" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppVar2->frontend = frontend;" (assignment_expression "ppVar2->frontend = frontend" (field_expression "ppVar2->frontend" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar2->data = (void *)0x0;" (assignment_expression "ppVar2->data = (void *)0x0" (field_expression "ppVar2->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppVar2->to_server = 1;" (assignment_expression "ppVar2->to_server = 1" (field_expression "ppVar2->to_server" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppVar2->instruction = (char *)0x0;" (assignment_expression "ppVar2->instruction = (char *)0x0" (field_expression "ppVar2->instruction" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppVar2->name = (char *)0x0;" (assignment_expression "ppVar2->name = (char *)0x0" (field_expression "ppVar2->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppVar2->instr_reqd = 0;" (assignment_expression "ppVar2->instr_reqd = 0" (field_expression "ppVar2->instr_reqd" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppVar2->name_reqd = 0;" (assignment_expression "ppVar2->name_reqd = 0" (field_expression "ppVar2->name_reqd" identifier -> field_identifier) = number_literal) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ppVar2;\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 ppVar2;\n  }" { (return_statement "return ppVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 * FUN_0001c580(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0008eb20();\n}\n\n" (function_definition "undefined4 * FUN_0001c580(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0008eb20();\n}" type_identifier (pointer_declarator "* FUN_0001c580(undefined4 param_1)" * (function_declarator "FUN_0001c580(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0008eb20();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_d8;" type_identifier identifier ;) (declaration "undefined4 local_d4;" type_identifier identifier ;) (declaration "undefined4 local_d0;" type_identifier identifier ;) (declaration "undefined2 local_cc;" type_identifier identifier ;) (declaration "undefined1 local_ca;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "puVar1 = (undefined4 *)malloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x24)" identifier = (cast_expression "(undefined4 *)malloc(0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" { (expression_statement "local_d8 = 0x2074754f;" (assignment_expression "local_d8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "local_d4 = 0x6d20666f;" (assignment_expression "local_d4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_d0 = 0x726f6d65;" (assignment_expression "local_d0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_cc = 0x2179;" (assignment_expression "local_cc = 0x2179" identifier = number_literal) ;) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" identifier = number_literal) ;) (expression_statement "FUN_00023f60("%s",&local_d8);" (call_expression "FUN_00023f60("%s",&local_d8)" identifier (argument_list "("%s",&local_d8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_d8" & identifier) ))) ;) })) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[7] = param_1;" (assignment_expression "puVar1[7] = param_1" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 1;" (assignment_expression "*puVar1 = 1" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 puVar1;\n  }" { (return_statement "return puVar1;" return identifier ;) })) (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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_0001c580(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0008eb20();\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0001c580(undefined4 param_1)" (* "*") (function_declarator "FUN_0001c580(undefined4 param_1)" (identifier "FUN_0001c580") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int in_GS_OFFSET;\n  undefined4 local_d8;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined2 local_cc;\n  undefined1 local_ca;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)malloc(0x24);\n  if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }\n  puVar1[6] = 0;\n  puVar1[5] = 0;\n  puVar1[7] = param_1;\n  puVar1[8] = 0;\n  *puVar1 = 1;\n  puVar1[3] = 0;\n  puVar1[1] = 0;\n  puVar1[4] = 0;\n  puVar1[2] = 0;\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }\n                    \n  FUN_0008eb20();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_d8;" (type_identifier "undefined4") (identifier "local_d8") (; ";")) (declaration "undefined4 local_d4;" (type_identifier "undefined4") (identifier "local_d4") (; ";")) (declaration "undefined4 local_d0;" (type_identifier "undefined4") (identifier "local_d0") (; ";")) (declaration "undefined2 local_cc;" (type_identifier "undefined2") (identifier "local_cc") (; ";")) (declaration "undefined1 local_ca;" (type_identifier "undefined1") (identifier "local_ca") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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 "puVar1 = (undefined4 *)malloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x24)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)malloc(0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x24)" (identifier "malloc") (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_d8 = 0x2074754f;\n    local_d4 = 0x6d20666f;\n    local_d0 = 0x726f6d65;\n    local_cc = 0x2179;\n    local_ca = 0;\n    FUN_00023f60("%s",&local_d8);\n  }" ({ "{") (expression_statement "local_d8 = 0x2074754f;" (assignment_expression "local_d8 = 0x2074754f" (identifier "local_d8") (= "=") (number_literal "0x2074754f")) (; ";")) (expression_statement "local_d4 = 0x6d20666f;" (assignment_expression "local_d4 = 0x6d20666f" (identifier "local_d4") (= "=") (number_literal "0x6d20666f")) (; ";")) (expression_statement "local_d0 = 0x726f6d65;" (assignment_expression "local_d0 = 0x726f6d65" (identifier "local_d0") (= "=") (number_literal "0x726f6d65")) (; ";")) (expression_statement "local_cc = 0x2179;" (assignment_expression "local_cc = 0x2179" (identifier "local_cc") (= "=") (number_literal "0x2179")) (; ";")) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" (identifier "local_ca") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00023f60("%s",&local_d8);" (call_expression "FUN_00023f60("%s",&local_d8)" (identifier "FUN_00023f60") (argument_list "("%s",&local_d8)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (pointer_expression "&local_d8" (& "&") (identifier "local_d8")) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[7] = param_1;" (assignment_expression "puVar1[7] = param_1" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = 1;" (assignment_expression "*puVar1 = 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar1;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 puVar1;\n  }" ({ "{") (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" (identifier "FUN_0008eb20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(void *frontend)

{
  int var_6;
  type_1 *var_3;
  int var_1;
  char str [200];
  
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = (type_1 *)var_2(0x24);
  if (var_3 == (type_1 *)0x0) {
    var_4(str,"Out of memory!",0xf);
    var_5("%s",str);
  }
  var_3->prompts = (type_2 **)0x0;
  var_3->n_prompts = 0;
  var_3->frontend = frontend;
  var_3->data = (void *)0x0;
  var_3->to_server = 1;
  var_3->instruction = (char *)0x0;
  var_3->name = (char *)0x0;
  var_3->instr_reqd = 0;
  var_3->name_reqd = 0;
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

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

undefined4 * MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  int in_GS_OFFSET;
  undefined4 local_d8;
  undefined4 local_d4;
  undefined4 local_d0;
  undefined2 local_cc;
  undefined1 local_ca;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  puVar1 = (undefined4 *)malloc(0x24);
  if (puVar1 == (undefined4 *)0x0) {
    local_d8 = 0x2074754f;
    local_d4 = 0x6d20666f;
    local_d0 = 0x726f6d65;
    local_cc = 0x2179;
    local_ca = 0;
    FUN_00023f60("%s",&local_d8);
  }
  puVar1[6] = 0;
  puVar1[5] = 0;
  puVar1[7] = param_1;
  puVar1[8] = 0;
  *puVar1 = 1;
  puVar1[3] = 0;
  puVar1[1] = 0;
  puVar1[4] = 0;
  puVar1[2] = 0;
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008eb20();
}

