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

void conf_fontsel_handler(control *ctrl,void *dlg,void *data,int event)

{
  int primary;
  FontSpec *pFVar1;
  
  primary = (ctrl->generic).context.i;
  if (event == 0) {
    pFVar1 = conf_get_fontspec((Conf *)data,primary);
    dlg_fontsel_set(ctrl,dlg,pFVar1);
    return;
  }
  if (event != 2) {
    return;
  }
  pFVar1 = dlg_fontsel_get(ctrl,dlg);
  conf_set_fontspec((Conf *)data,primary,pFVar1);
  fontspec_free(pFVar1);
  return;
}



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

void FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar3 = 0x1ff9c;
  uVar1 = *(undefined4 *)(param_1 + 0x14);
  if (param_4 == 0) {
    uVar1 = FUN_0001f0c0(param_3,uVar1);
    FUN_0004c690(param_1,param_2,uVar1);
    return;
  }
  if (param_4 != 2) {
    return;
  }
  uVar2 = FUN_0004c760(param_1,param_2);
  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);
  FUN_0005f340(uVar2);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001b410
ADD EBX,0x90808
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDI,dword ptr [ESI + 0x14]
TEST EAX,EAX
JZ 0x0001ffc0
CMP EAX,0x2
JZ 0x0001ffe8
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x24]
CALL 0x0001f0c0
ADD ESP,0xc
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x0004c690
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x0004c760
ADD ESP,0xc
PUSH EAX
MOV ESI,EAX
PUSH EDI
PUSH dword ptr [ESP + 0x24]
CALL 0x0001f5c0
MOV dword ptr [ESP],ESI
CALL 0x0005f340
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}\n\n" comment (function_definition "void FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0x1ff9c;" (assignment_expression "uVar3 = 0x1ff9c" identifier = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" { (expression_statement "uVar1 = FUN_0001f0c0(param_3,uVar1);" (assignment_expression "uVar1 = FUN_0001f0c0(param_3,uVar1)" identifier = (call_expression "FUN_0001f0c0(param_3,uVar1)" identifier (argument_list "(param_3,uVar1)" ( identifier , identifier )))) ;) (expression_statement "FUN_0004c690(param_1,param_2,uVar1);" (call_expression "FUN_0004c690(param_1,param_2,uVar1)" identifier (argument_list "(param_1,param_2,uVar1)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_4 != 2) {\n    return;\n  }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0004c760(param_1,param_2);" (assignment_expression "uVar2 = FUN_0004c760(param_1,param_2)" identifier = (call_expression "FUN_0004c760(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);" (call_expression "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3)" identifier (argument_list "(param_3,uVar1,uVar2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005f340(uVar2);" (call_expression "FUN_0005f340(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid conf_fontsel_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int primary;\n  FontSpec *pFVar1;\n  \n  primary = (ctrl->generic).context.i;\n  if (event == 0) {\n    pFVar1 = conf_get_fontspec((Conf *)data,primary);\n    dlg_fontsel_set(ctrl,dlg,pFVar1);\n    return;\n  }\n  if (event != 2) {\n    return;\n  }\n  pFVar1 = dlg_fontsel_get(ctrl,dlg);\n  conf_set_fontspec((Conf *)data,primary,pFVar1);\n  fontspec_free(pFVar1);\n  return;\n}\n\n" comment (function_definition "void conf_fontsel_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int primary;\n  FontSpec *pFVar1;\n  \n  primary = (ctrl->generic).context.i;\n  if (event == 0) {\n    pFVar1 = conf_get_fontspec((Conf *)data,primary);\n    dlg_fontsel_set(ctrl,dlg,pFVar1);\n    return;\n  }\n  if (event != 2) {\n    return;\n  }\n  pFVar1 = dlg_fontsel_get(ctrl,dlg);\n  conf_set_fontspec((Conf *)data,primary,pFVar1);\n  fontspec_free(pFVar1);\n  return;\n}" primitive_type (function_declarator "conf_fontsel_handler(control *ctrl,void *dlg,void *data,int event)" identifier (parameter_list "(control *ctrl,void *dlg,void *data,int event)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  int primary;\n  FontSpec *pFVar1;\n  \n  primary = (ctrl->generic).context.i;\n  if (event == 0) {\n    pFVar1 = conf_get_fontspec((Conf *)data,primary);\n    dlg_fontsel_set(ctrl,dlg,pFVar1);\n    return;\n  }\n  if (event != 2) {\n    return;\n  }\n  pFVar1 = dlg_fontsel_get(ctrl,dlg);\n  conf_set_fontspec((Conf *)data,primary,pFVar1);\n  fontspec_free(pFVar1);\n  return;\n}" { (declaration "int primary;" primitive_type identifier ;) (declaration "FontSpec *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "primary = (ctrl->generic).context.i;" (assignment_expression "primary = (ctrl->generic).context.i" identifier = (field_expression "(ctrl->generic).context.i" (field_expression "(ctrl->generic).context" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (event == 0) {\n    pFVar1 = conf_get_fontspec((Conf *)data,primary);\n    dlg_fontsel_set(ctrl,dlg,pFVar1);\n    return;\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n    pFVar1 = conf_get_fontspec((Conf *)data,primary);\n    dlg_fontsel_set(ctrl,dlg,pFVar1);\n    return;\n  }" { (expression_statement "pFVar1 = conf_get_fontspec((Conf *)data,primary);" (assignment_expression "pFVar1 = conf_get_fontspec((Conf *)data,primary)" identifier = (call_expression "conf_get_fontspec((Conf *)data,primary)" identifier (argument_list "((Conf *)data,primary)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "dlg_fontsel_set(ctrl,dlg,pFVar1);" (call_expression "dlg_fontsel_set(ctrl,dlg,pFVar1)" identifier (argument_list "(ctrl,dlg,pFVar1)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (event != 2) {\n    return;\n  }" if (parenthesized_expression "(event != 2)" ( (binary_expression "event != 2" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pFVar1 = dlg_fontsel_get(ctrl,dlg);" (assignment_expression "pFVar1 = dlg_fontsel_get(ctrl,dlg)" identifier = (call_expression "dlg_fontsel_get(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier )))) ;) (expression_statement "conf_set_fontspec((Conf *)data,primary,pFVar1);" (call_expression "conf_set_fontspec((Conf *)data,primary,pFVar1)" identifier (argument_list "((Conf *)data,primary,pFVar1)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "fontspec_free(pFVar1);" (call_expression "fontspec_free(pFVar1)" identifier (argument_list "(pFVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}\n\n" (function_definition "void FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0x1ff9c;" (assignment_expression "uVar3 = 0x1ff9c" identifier = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" { (expression_statement "uVar1 = FUN_0001f0c0(param_3,uVar1);" (assignment_expression "uVar1 = FUN_0001f0c0(param_3,uVar1)" identifier = (call_expression "FUN_0001f0c0(param_3,uVar1)" identifier (argument_list "(param_3,uVar1)" ( identifier , identifier )))) ;) (expression_statement "FUN_0004c690(param_1,param_2,uVar1);" (call_expression "FUN_0004c690(param_1,param_2,uVar1)" identifier (argument_list "(param_1,param_2,uVar1)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_4 != 2) {\n    return;\n  }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0004c760(param_1,param_2);" (assignment_expression "uVar2 = FUN_0004c760(param_1,param_2)" identifier = (call_expression "FUN_0004c760(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);" (call_expression "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3)" identifier (argument_list "(param_3,uVar1,uVar2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005f340(uVar2);" (call_expression "FUN_0005f340(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001ff90(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_0001ff90") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = 0x1ff9c;\n  uVar1 = *(undefined4 *)(param_1 + 0x14);\n  if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }\n  if (param_4 != 2) {\n    return;\n  }\n  uVar2 = FUN_0004c760(param_1,param_2);\n  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);\n  FUN_0005f340(uVar2);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = 0x1ff9c;" (assignment_expression "uVar3 = 0x1ff9c" (identifier "uVar3") (= "=") (number_literal "0x1ff9c")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_4 == 0) {\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_0001f0c0(param_3,uVar1);\n    FUN_0004c690(param_1,param_2,uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = FUN_0001f0c0(param_3,uVar1);" (assignment_expression "uVar1 = FUN_0001f0c0(param_3,uVar1)" (identifier "uVar1") (= "=") (call_expression "FUN_0001f0c0(param_3,uVar1)" (identifier "FUN_0001f0c0") (argument_list "(param_3,uVar1)" (( "(") (identifier "param_3") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_0004c690(param_1,param_2,uVar1);" (call_expression "FUN_0004c690(param_1,param_2,uVar1)" (identifier "FUN_0004c690") (argument_list "(param_1,param_2,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_4 != 2) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != 2)" (( "(") (binary_expression "param_4 != 2" (identifier "param_4") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0004c760(param_1,param_2);" (assignment_expression "uVar2 = FUN_0004c760(param_1,param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_0004c760(param_1,param_2)" (identifier "FUN_0004c760") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);" (call_expression "FUN_0001f5c0(param_3,uVar1,uVar2,uVar3)" (identifier "FUN_0001f5c0") (argument_list "(param_3,uVar1,uVar2,uVar3)" (( "(") (identifier "param_3") (, ",") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0005f340(uVar2);" (call_expression "FUN_0005f340(uVar2)" (identifier "FUN_0005f340") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg,void *data,int var_1)

{
  int primary;
  type_2 *pFVar1;
  
  primary = (ctrl->generic).context.i;
  if (var_1 == 0) {
    pFVar1 = var_2((type_3 *)data,primary);
    var_3(ctrl,dlg,pFVar1);
    return;
  }
  if (var_1 != 2) {
    return;
  }
  pFVar1 = var_4(ctrl,dlg);
  var_5((type_3 *)data,primary,pFVar1);
  var_6(pFVar1);
  return;
}


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

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar3 = 0x1ff9c;
  uVar1 = *(undefined4 *)(param_1 + 0x14);
  if (param_4 == 0) {
    uVar1 = FUN_0001f0c0(param_3,uVar1);
    FUN_0004c690(param_1,param_2,uVar1);
    return;
  }
  if (param_4 != 2) {
    return;
  }
  uVar2 = FUN_0004c760(param_1,param_2);
  FUN_0001f5c0(param_3,uVar1,uVar2,uVar3);
  FUN_0005f340(uVar2);
  return;
}

