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

control * ctrl_editbox(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,
                      handler_fn handler,intorptr context,intorptr context2)

{
  control *pcVar1;
  
  pcVar1 = ctrl_new(s,1,helpctx,handler,context);
  if (label != (char *)0x0) {
    label = dupstr(label);
  }
  (pcVar1->generic).label = label;
  (pcVar1->editbox).shortcut = shortcut;
  (pcVar1->editbox).password = 0;
  (pcVar1->editbox).percentwidth = percentage;
  (pcVar1->editbox).has_list = 0;
  (pcVar1->editbox).context2 = context2;
  return pcVar1;
}



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

int FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,
                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)

{
  int iVar1;
  
  iVar1 = FUN_00028d50(param_6,param_7);
  if (param_2 != 0) {
    param_2 = FUN_0002e890(param_2);
  }
  *(int *)(iVar1 + 4) = param_2;
  *(undefined1 *)(iVar1 + 0x1c) = param_3;
  *(undefined4 *)(iVar1 + 0x24) = 0;
  *(undefined4 *)(iVar1 + 0x20) = param_4;
  *(undefined4 *)(iVar1 + 0x28) = 0;
  *(undefined4 *)(iVar1 + 0x2c) = param_8;
  return iVar1;
}


PUSH EBP
MOV EDX,0x1
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xe7332
SUB ESP,0x14
MOV EDI,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x00028d50
ADD ESP,0x10
MOV ESI,EAX
TEST EDI,EDI
JZ 0x0002945b
SUB ESP,0xc
PUSH EDI
CALL 0x0002e890
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,EBP
MOV dword ptr [ESI + 0x4],EDI
MOV byte ptr [ESI + 0x1c],AL
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESI + 0x24],0x0
MOV dword ptr [ESI + 0x20],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESI + 0x28],0x0
MOV dword ptr [ESI + 0x2c],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00028d50(param_6,param_7);" (assignment_expression "iVar1 = FUN_00028d50(param_6,param_7)" identifier = (call_expression "FUN_00028d50(param_6,param_7)" identifier (argument_list "(param_6,param_7)" ( identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0002e890(param_2);\n  }" { (expression_statement "param_2 = FUN_0002e890(param_2);" (assignment_expression "param_2 = FUN_0002e890(param_2)" identifier = (call_expression "FUN_0002e890(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "*(int *)(iVar1 + 4) = param_2;" (assignment_expression "*(int *)(iVar1 + 4) = param_2" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar1 + 0x1c) = param_3;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1c) = param_3" (pointer_expression "*(undefined1 *)(iVar1 + 0x1c)" * (cast_expression "(undefined1 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x2c) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2c) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ncontrol * ctrl_editbox(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,\n                      handler_fn handler,intorptr context,intorptr context2)\n\n{\n  control *pcVar1;\n  \n  pcVar1 = ctrl_new(s,1,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->editbox).password = 0;\n  (pcVar1->editbox).percentwidth = percentage;\n  (pcVar1->editbox).has_list = 0;\n  (pcVar1->editbox).context2 = context2;\n  return pcVar1;\n}\n\n" comment (function_definition "control * ctrl_editbox(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,\n                      handler_fn handler,intorptr context,intorptr context2)\n\n{\n  control *pcVar1;\n  \n  pcVar1 = ctrl_new(s,1,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->editbox).password = 0;\n  (pcVar1->editbox).percentwidth = percentage;\n  (pcVar1->editbox).has_list = 0;\n  (pcVar1->editbox).context2 = context2;\n  return pcVar1;\n}" type_identifier (pointer_declarator "* ctrl_editbox(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,\n                      handler_fn handler,intorptr context,intorptr context2)" * (function_declarator "ctrl_editbox(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,\n                      handler_fn handler,intorptr context,intorptr context2)" identifier (parameter_list "(controlset *s,char *label,char shortcut,int percentage,intorptr helpctx,\n                      handler_fn handler,intorptr context,intorptr context2)" ( (parameter_declaration "controlset *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "char *label" primitive_type (pointer_declarator "*label" * identifier)) , (parameter_declaration "char shortcut" primitive_type identifier) , (parameter_declaration "int percentage" primitive_type identifier) , (parameter_declaration "intorptr helpctx" type_identifier identifier) , (parameter_declaration "handler_fn handler" type_identifier identifier) , (parameter_declaration "intorptr context" type_identifier identifier) , (parameter_declaration "intorptr context2" type_identifier identifier) )))) (compound_statement "{\n  control *pcVar1;\n  \n  pcVar1 = ctrl_new(s,1,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->editbox).password = 0;\n  (pcVar1->editbox).percentwidth = percentage;\n  (pcVar1->editbox).has_list = 0;\n  (pcVar1->editbox).context2 = context2;\n  return pcVar1;\n}" { (declaration "control *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = ctrl_new(s,1,helpctx,handler,context);" (assignment_expression "pcVar1 = ctrl_new(s,1,helpctx,handler,context)" identifier = (call_expression "ctrl_new(s,1,helpctx,handler,context)" identifier (argument_list "(s,1,helpctx,handler,context)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (label != (char *)0x0) {\n    label = dupstr(label);\n  }" if (parenthesized_expression "(label != (char *)0x0)" ( (binary_expression "label != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    label = dupstr(label);\n  }" { (expression_statement "label = dupstr(label);" (assignment_expression "label = dupstr(label)" identifier = (call_expression "dupstr(label)" identifier (argument_list "(label)" ( identifier )))) ;) })) (expression_statement "(pcVar1->generic).label = label;" (assignment_expression "(pcVar1->generic).label = label" (field_expression "(pcVar1->generic).label" (parenthesized_expression "(pcVar1->generic)" ( (field_expression "pcVar1->generic" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->editbox).shortcut = shortcut;" (assignment_expression "(pcVar1->editbox).shortcut = shortcut" (field_expression "(pcVar1->editbox).shortcut" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->editbox).password = 0;" (assignment_expression "(pcVar1->editbox).password = 0" (field_expression "(pcVar1->editbox).password" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(pcVar1->editbox).percentwidth = percentage;" (assignment_expression "(pcVar1->editbox).percentwidth = percentage" (field_expression "(pcVar1->editbox).percentwidth" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->editbox).has_list = 0;" (assignment_expression "(pcVar1->editbox).has_list = 0" (field_expression "(pcVar1->editbox).has_list" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(pcVar1->editbox).context2 = context2;" (assignment_expression "(pcVar1->editbox).context2 = context2" (field_expression "(pcVar1->editbox).context2" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "int FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}\n\n" (function_definition "int FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00028d50(param_6,param_7);" (assignment_expression "iVar1 = FUN_00028d50(param_6,param_7)" identifier = (call_expression "FUN_00028d50(param_6,param_7)" identifier (argument_list "(param_6,param_7)" ( identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0002e890(param_2);\n  }" { (expression_statement "param_2 = FUN_0002e890(param_2);" (assignment_expression "param_2 = FUN_0002e890(param_2)" identifier = (call_expression "FUN_0002e890(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "*(int *)(iVar1 + 4) = param_2;" (assignment_expression "*(int *)(iVar1 + 4) = param_2" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar1 + 0x1c) = param_3;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1c) = param_3" (pointer_expression "*(undefined1 *)(iVar1 + 0x1c)" * (cast_expression "(undefined1 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x2c) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2c) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00029410(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" (identifier "FUN_00029410") (parameter_list "(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00028d50(param_6,param_7);\n  if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }\n  *(int *)(iVar1 + 4) = param_2;\n  *(undefined1 *)(iVar1 + 0x1c) = param_3;\n  *(undefined4 *)(iVar1 + 0x24) = 0;\n  *(undefined4 *)(iVar1 + 0x20) = param_4;\n  *(undefined4 *)(iVar1 + 0x28) = 0;\n  *(undefined4 *)(iVar1 + 0x2c) = param_8;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00028d50(param_6,param_7);" (assignment_expression "iVar1 = FUN_00028d50(param_6,param_7)" (identifier "iVar1") (= "=") (call_expression "FUN_00028d50(param_6,param_7)" (identifier "FUN_00028d50") (argument_list "(param_6,param_7)" (( "(") (identifier "param_6") (, ",") (identifier "param_7") () ")")))) (; ";")) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0002e890(param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = FUN_0002e890(param_2);\n  }" ({ "{") (expression_statement "param_2 = FUN_0002e890(param_2);" (assignment_expression "param_2 = FUN_0002e890(param_2)" (identifier "param_2") (= "=") (call_expression "FUN_0002e890(param_2)" (identifier "FUN_0002e890") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar1 + 4) = param_2;" (assignment_expression "*(int *)(iVar1 + 4) = param_2" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 0x1c) = param_3;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1c) = param_3" (pointer_expression "*(undefined1 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x2c) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2c) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "param_8")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *s,char *var_2,char shortcut,int percentage,type_3 helpctx,
                      type_4 handler,type_3 context,type_3 context2)

{
  type_1 *pcVar1;
  
  pcVar1 = var_1(s,1,helpctx,handler,context);
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  (pcVar1->generic).var_2 = var_2;
  (pcVar1->editbox).shortcut = shortcut;
  (pcVar1->editbox).password = 0;
  (pcVar1->editbox).percentwidth = percentage;
  (pcVar1->editbox).has_list = 0;
  (pcVar1->editbox).context2 = context2;
  return pcVar1;
}


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

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

int MASKED(undefined4 param_1,int param_2,undefined1 param_3,undefined4 param_4,
                undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)

{
  int iVar1;
  
  iVar1 = FUN_00028d50(param_6,param_7);
  if (param_2 != 0) {
    param_2 = FUN_0002e890(param_2);
  }
  *(int *)(iVar1 + 4) = param_2;
  *(undefined1 *)(iVar1 + 0x1c) = param_3;
  *(undefined4 *)(iVar1 + 0x24) = 0;
  *(undefined4 *)(iVar1 + 0x20) = param_4;
  *(undefined4 *)(iVar1 + 0x28) = 0;
  *(undefined4 *)(iVar1 + 0x2c) = param_8;
  return iVar1;
}

