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

void dlg_listbox_clear(control *ctrl,void *dlg)

{
  code *pcVar1;
  undefined4 *puVar2;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {
    if (puVar2[8] != 0) {
      gtk_list_store_clear(puVar2[8]);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",
                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");
}



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

void FUN_000445d0(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  undefined4 *puVar2;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);
  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {
    if (puVar2[8] != 0) {
      gtk_list_store_clear(puVar2[8]);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",
                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");
}


PUSH EBX
CALL 0x0001a360
ADD EBX,0x5d20e
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001a030
SUB ESP,0x4
LEA EDX,[EBX + 0xfffa187c]
PUSH EDX
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x000406a0
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EDX,dword ptr [EDX]
AND EDX,0xfffffffb
CMP EDX,0x1
JNZ 0x00044625
MOV EAX,dword ptr [EAX + 0x20]
TEST EAX,EAX
JZ 0x00044644
SUB ESP,0xc
PUSH EAX
CALL 0x00019db0
ADD ESP,0x18
POP EBX
RET
LEA EAX,[EBX + 0xfffd7478]
PUSH EAX
LEA EAX,[EBX + 0xfffd607d]
PUSH 0x176
PUSH EAX
LEA EAX,[EBX + 0xfffd63c8]
PUSH EAX
CALL 0x00019e90
LEA EAX,[EBX + 0xfffd7478]
PUSH EAX
LEA EAX,[EBX + 0xfffd607d]
PUSH 0x18a
PUSH EAX
LEA EAX,[EBX + 0xfffd60b8]
PUSH EAX
CALL 0x00019e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000445d0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}\n\n" comment (function_definition "void FUN_000445d0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" primitive_type (function_declarator "FUN_000445d0(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);" (assignment_expression "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" identifier = (cast_expression "(undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000406a0(*param_2,param_1,FUN_00043060)" identifier (argument_list "(*param_2,param_1,FUN_00043060)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) == 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) == 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" { (if_statement "if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" if (parenthesized_expression "(puVar2[8] != 0)" ( (binary_expression "puVar2[8] != 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" { (expression_statement "gtk_list_store_clear(puVar2[8]);" (call_expression "gtk_list_store_clear(puVar2[8])" identifier (argument_list "(puVar2[8])" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid dlg_listbox_clear(control *ctrl,void *dlg)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}\n\n" comment comment (function_definition "void dlg_listbox_clear(control *ctrl,void *dlg)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" primitive_type (function_declarator "dlg_listbox_clear(control *ctrl,void *dlg)" identifier (parameter_list "(control *ctrl,void *dlg)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) comment (if_statement "if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*dlg == (tree234 *)0x0)" ( (binary_expression "*dlg == (tree234 *)0x0" (pointer_expression "*dlg" * identifier) == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier = (cast_expression "(undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier (argument_list "(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (pointer_expression "*dlg" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) == 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) == 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" { (if_statement "if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" if (parenthesized_expression "(puVar2[8] != 0)" ( (binary_expression "puVar2[8] != 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" { (expression_statement "gtk_list_store_clear(puVar2[8]);" (call_expression "gtk_list_store_clear(puVar2[8])" identifier (argument_list "(puVar2[8])" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })))
(translation_unit "void FUN_000445d0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}\n\n" (function_definition "void FUN_000445d0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" primitive_type (function_declarator "FUN_000445d0(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);" (assignment_expression "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" identifier = (cast_expression "(undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000406a0(*param_2,param_1,FUN_00043060)" identifier (argument_list "(*param_2,param_1,FUN_00043060)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" if (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) == 1)" ( (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) == 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" ( (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" * (cast_expression "(uint *)*puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" { (if_statement "if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" if (parenthesized_expression "(puVar2[8] != 0)" ( (binary_expression "puVar2[8] != 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" { (expression_statement "gtk_list_store_clear(puVar2[8]);" (call_expression "gtk_list_store_clear(puVar2[8])" identifier (argument_list "(puVar2[8])" ( (subscript_expression "puVar2[8]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" identifier (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" ( (string_literal ""!\"We shouldn\'t get here\""" " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_listbox_clear"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_000445d0(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" (primitive_type "void") (function_declarator "FUN_000445d0(undefined4 param_1,int *param_2)" (identifier "FUN_000445d0") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);\n  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" ({ "{") (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" (identifier "pcVar1") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);" (assignment_expression "puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000406a0(*param_2,param_1,FUN_00043060)" (identifier "FUN_000406a0") (argument_list "(*param_2,param_1,FUN_00043060)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_00043060") () ")"))))) (; ";")) (if_statement "if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" (if "if") (parenthesized_expression "((*(uint *)*puVar2 & 0xfffffffb) == 1)" (( "(") (binary_expression "(*(uint *)*puVar2 & 0xfffffffb) == 1" (parenthesized_expression "(*(uint *)*puVar2 & 0xfffffffb)" (( "(") (binary_expression "*(uint *)*puVar2 & 0xfffffffb" (pointer_expression "*(uint *)*puVar2" (* "*") (cast_expression "(uint *)*puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (& "&") (number_literal "0xfffffffb")) () ")")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }\n                    \n    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");\n  }" ({ "{") (if_statement "if (puVar2[8] != 0) {\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2[8] != 0)" (( "(") (binary_expression "puVar2[8] != 0" (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      gtk_list_store_clear(puVar2[8]);\n      return;\n    }" ({ "{") (expression_statement "gtk_list_store_clear(puVar2[8]);" (call_expression "gtk_list_store_clear(puVar2[8])" (identifier "gtk_list_store_clear") (argument_list "(puVar2[8])" (( "(") (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");" (call_expression "__assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" (identifier "__assert_fail") (argument_list "("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear")" (( "(") (string_literal ""!\"We shouldn\'t get here\""" (" """) (string_content "!") (escape_sequence "\"") (string_content "We shouldn") (escape_sequence "\'") (string_content "t get here") (escape_sequence "\"") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x18a") (, ",") (string_literal ""dlg_listbox_clear"" (" """) (string_content "dlg_listbox_clear") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",\n                "unix/gtkdlg.c",0x176,"dlg_listbox_clear")" (( "(") (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX"" (" """) (string_content "uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x176") (, ",") (string_literal ""dlg_listbox_clear"" (" """) (string_content "dlg_listbox_clear") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg)

{
  type_2 *pcVar1;
  type_3 *puVar2;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_4 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (type_2 *)var_1();
    (*pcVar1)();
  }
  puVar2 = (type_3 *)var_2(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if ((*(type_5 *)*puVar2 & 0xfffffffb) == 1) {
    if (puVar2[8] != 0) {
      var_3(puVar2[8]);
      return;
    }
                    /* WARNING: Subroutine does not return */
    var_4("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
  }
                    /* WARNING: Subroutine does not return */
  var_4("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",
                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");
}


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

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

void MASKED(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  undefined4 *puVar2;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_000406a0(*param_2,param_1,FUN_00043060);
  if ((*(uint *)*puVar2 & 0xfffffffb) == 1) {
    if (puVar2[8] != 0) {
      gtk_list_store_clear(puVar2[8]);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("!\"We shouldn\'t get here\"","unix/gtkdlg.c",0x18a,"dlg_listbox_clear");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX || uc->ctrl->generic.type == CTRL_LISTBOX",
                "unix/gtkdlg.c",0x176,"dlg_listbox_clear");
}

