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

void conf_set_int_int(Conf *conf,int primary,int secondary,int value)

{
  conf_entry *entry;
  
  entry = (conf_entry *)safemalloc(1,0xc);
  if (subkeytypes[primary] != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");
  }
  if (valuetypes[primary] == 1) {
    (entry->key).primary = primary;
    (entry->key).secondary.i = secondary;
    (entry->value).u.intval = value;
    conf_insert(conf,entry);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");
}



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

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

{
  int *piVar1;
  
  piVar1 = (int *)FUN_0001a9b0(1,0xc);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {
    *piVar1 = param_2;
    piVar1[1] = param_3;
    piVar1[2] = param_4;
    FUN_00017120();
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x92257
SUB ESP,0x24
MOV EAX,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x14],EAX
PUSH 0xc
PUSH 0x1
CALL 0x0001a9b0
ADD ESP,0x10
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6c30],0x1
JNZ 0x00017b90
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6950],0x1
JNZ 0x00017baf
MOV dword ptr [EAX],ESI
MOV EDX,EAX
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX + 0x8],EDI
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00017120
LEA EAX,[EBX + 0xfffc6850]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x192
PUSH EAX
LEA EAX,[EBX + 0xfffc6734]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffc6850]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x193
PUSH EAX
LEA EAX,[EBX + 0xfffc6714]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}\n\n" comment (function_definition "void FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" primitive_type (function_declarator "FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)FUN_0001a9b0(1,0xc);" (assignment_expression "piVar1 = (int *)FUN_0001a9b0(1,0xc)" identifier = (cast_expression "(int *)FUN_0001a9b0(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 1)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 1" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" identifier (argument_list "("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" ( (string_literal ""subkeytypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 1" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" { (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00017120();" (call_expression "FUN_00017120()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" identifier (argument_list "("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" ( (string_literal ""valuetypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " 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 conf_set_int_int(Conf *conf,int primary,int secondary,int value)\n\n{\n  conf_entry *entry;\n  \n  entry = (conf_entry *)safemalloc(1,0xc);\n  if (subkeytypes[primary] != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (valuetypes[primary] == 1) {\n    (entry->key).primary = primary;\n    (entry->key).secondary.i = secondary;\n    (entry->value).u.intval = value;\n    conf_insert(conf,entry);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}\n\n" comment comment (function_definition "void conf_set_int_int(Conf *conf,int primary,int secondary,int value)\n\n{\n  conf_entry *entry;\n  \n  entry = (conf_entry *)safemalloc(1,0xc);\n  if (subkeytypes[primary] != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (valuetypes[primary] == 1) {\n    (entry->key).primary = primary;\n    (entry->key).secondary.i = secondary;\n    (entry->value).u.intval = value;\n    conf_insert(conf,entry);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" primitive_type (function_declarator "conf_set_int_int(Conf *conf,int primary,int secondary,int value)" identifier (parameter_list "(Conf *conf,int primary,int secondary,int value)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "int primary" primitive_type identifier) , (parameter_declaration "int secondary" primitive_type identifier) , (parameter_declaration "int value" primitive_type identifier) ))) (compound_statement "{\n  conf_entry *entry;\n  \n  entry = (conf_entry *)safemalloc(1,0xc);\n  if (subkeytypes[primary] != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (valuetypes[primary] == 1) {\n    (entry->key).primary = primary;\n    (entry->key).secondary.i = secondary;\n    (entry->value).u.intval = value;\n    conf_insert(conf,entry);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" { (declaration "conf_entry *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (expression_statement "entry = (conf_entry *)safemalloc(1,0xc);" (assignment_expression "entry = (conf_entry *)safemalloc(1,0xc)" identifier = (cast_expression "(conf_entry *)safemalloc(1,0xc)" ( (type_descriptor "conf_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (if_statement "if (subkeytypes[primary] != 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" if (parenthesized_expression "(subkeytypes[primary] != 1)" ( (binary_expression "subkeytypes[primary] != 1" (subscript_expression "subkeytypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" identifier (argument_list "("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" ( (string_literal ""subkeytypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " string_content ") ))) ;) })) (if_statement "if (valuetypes[primary] == 1) {\n    (entry->key).primary = primary;\n    (entry->key).secondary.i = secondary;\n    (entry->value).u.intval = value;\n    conf_insert(conf,entry);\n    return;\n  }" if (parenthesized_expression "(valuetypes[primary] == 1)" ( (binary_expression "valuetypes[primary] == 1" (subscript_expression "valuetypes[primary]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    (entry->key).primary = primary;\n    (entry->key).secondary.i = secondary;\n    (entry->value).u.intval = value;\n    conf_insert(conf,entry);\n    return;\n  }" { (expression_statement "(entry->key).primary = primary;" (assignment_expression "(entry->key).primary = primary" (field_expression "(entry->key).primary" (parenthesized_expression "(entry->key)" ( (field_expression "entry->key" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(entry->key).secondary.i = secondary;" (assignment_expression "(entry->key).secondary.i = secondary" (field_expression "(entry->key).secondary.i" (field_expression "(entry->key).secondary" (parenthesized_expression "(entry->key)" ( (field_expression "entry->key" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(entry->value).u.intval = value;" (assignment_expression "(entry->value).u.intval = value" (field_expression "(entry->value).u.intval" (field_expression "(entry->value).u" (parenthesized_expression "(entry->value)" ( (field_expression "entry->value" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "conf_insert(conf,entry);" (call_expression "conf_insert(conf,entry)" identifier (argument_list "(conf,entry)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" identifier (argument_list "("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" ( (string_literal ""valuetypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}\n\n" (function_definition "void FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" primitive_type (function_declarator "FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)FUN_0001a9b0(1,0xc);" (assignment_expression "piVar1 = (int *)FUN_0001a9b0(1,0xc)" identifier = (cast_expression "(int *)FUN_0001a9b0(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 1)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 1" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" { (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" identifier (argument_list "("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" ( (string_literal ""subkeytypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 1" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" { (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00017120();" (call_expression "FUN_00017120()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" identifier (argument_list "("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" ( (string_literal ""valuetypes[primary] == TYPE_INT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_set_int_int"" " string_content ") ))) ;) })))
(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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" (primitive_type "void") (function_declarator "FUN_00017b30(undefined4 param_1,int param_2,int param_3,int param_4)" (identifier "FUN_00017b30") (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_0001a9b0(1,0xc);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)FUN_0001a9b0(1,0xc);" (assignment_expression "piVar1 = (int *)FUN_0001a9b0(1,0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0001a9b0(1,0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9b0(1,0xc)" (identifier "FUN_0001a9b0") (argument_list "(1,0xc)" (( "(") (number_literal "1") (, ",") (number_literal "0xc") () ")"))))) (; ";")) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 1)" (( "(") (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 1" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" (& "&") (identifier "DAT_000709c0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");\n  }" ({ "{") (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" (identifier "__assert_fail") (argument_list "("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int")" (( "(") (string_literal ""subkeytypes[primary] == TYPE_INT"" (" """) (string_content "subkeytypes[primary] == TYPE_INT") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x192") (, ",") (string_literal ""conf_set_int_int"" (" """) (string_content "conf_set_int_int") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 1)" (( "(") (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 1" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" (& "&") (identifier "DAT_000706e0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    FUN_00017120();\n    return;\n  }" ({ "{") (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_00017120();" (call_expression "FUN_00017120()" (identifier "FUN_00017120") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" (identifier "__assert_fail") (argument_list "("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int")" (( "(") (string_literal ""valuetypes[primary] == TYPE_INT"" (" """) (string_content "valuetypes[primary] == TYPE_INT") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x193") (, ",") (string_literal ""conf_set_int_int"" (" """) (string_content "conf_set_int_int") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *conf,int primary,int secondary,int value)

{
  type_2 *entry;
  
  entry = (type_2 *)var_1(1,0xc);
  if (subkeytypes[primary] != 1) {
                    /* WARNING: Subroutine does not return */
    var_2("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");
  }
  if (valuetypes[primary] == 1) {
    (entry->key).primary = primary;
    (entry->key).secondary.i = secondary;
    (entry->value).u.intval = value;
    var_3(conf,entry);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");
}


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

{
  int *piVar1;
  
  piVar1 = (int *)FUN_0001a9b0(1,0xc);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_INT","conf.c",0x192,"conf_set_int_int");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 1) {
    *piVar1 = param_2;
    piVar1[1] = param_3;
    piVar1[2] = param_4;
    FUN_00017120();
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_INT","conf.c",0x193,"conf_set_int_int");
}

