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

void __regparm3 free_entry(conf_entry *entry)

{
  int iVar1;
  
  iVar1 = (entry->key).primary;
  if (subkeytypes[iVar1] == 2) {
    safefree((entry->key).secondary.s);
    iVar1 = valuetypes[(entry->key).primary];
  }
  else {
    iVar1 = valuetypes[iVar1];
  }
  if (iVar1 == 2) {
    safefree((entry->value).u.stringval);
    safefree(entry);
    return;
  }
  if (iVar1 == 3) {
    filename_free((entry->value).u.fileval);
    safefree(entry);
    return;
  }
  if (iVar1 == 4) {
    fontspec_free((entry->value).u.fontval);
    safefree(entry);
    return;
  }
  safefree(entry);
  return;
}



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

void __regparm3 FUN_00017970(int *param_1)

{
  int iVar1;
  
  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {
    FUN_0001a110(param_1[1]);
    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);
  }
  else {
    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);
  }
  if (iVar1 == 2) {
    FUN_0001a110(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  if (iVar1 == 3) {
    FUN_00041820(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  if (iVar1 == 4) {
    FUN_00041ce0(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  FUN_0001a110(param_1);
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000152d0
ADD EBX,0x5736f
SUB ESP,0x4
MOV EAX,dword ptr [EAX]
CMP dword ptr [EBX + EAX*0x4 + 0xfffdccd8],0x2
JZ 0x000179b8
MOV EAX,dword ptr [EBX + EAX*0x4 + 0xfffdc9f8]
CMP EAX,0x2
JZ 0x000179d4
CMP EAX,0x3
JZ 0x000179f8
CMP EAX,0x4
JZ 0x00017a18
SUB ESP,0xc
PUSH ESI
CALL 0x0001a110
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x0001a110
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
MOV EAX,dword ptr [EBX + EAX*0x4 + 0xfffdc9f8]
CMP EAX,0x2
JNZ 0x0001799a
SUB ESP,0xc
PUSH dword ptr [ESI + 0x8]
CALL 0x0001a110
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0001a110
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0x8]
CALL 0x00041820
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0001a110
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0x8]
CALL 0x00041ce0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0001a110
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00017970(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00017970(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017970(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b9c0 + *param_1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" { (expression_statement "FUN_0001a110(param_1[1]);" (call_expression "FUN_0001a110(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" else (compound_statement "{\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" { (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) }))) (if_statement "if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_0001a110(param_1[2]);" (call_expression "FUN_0001a110(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_00041820(param_1[2]);" (call_expression "FUN_00041820(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_00041ce0(param_1[2]);" (call_expression "FUN_00041ce0(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 free_entry(conf_entry *entry)\n\n{\n  int iVar1;\n  \n  iVar1 = (entry->key).primary;\n  if (subkeytypes[iVar1] == 2) {\n    safefree((entry->key).secondary.s);\n    iVar1 = valuetypes[(entry->key).primary];\n  }\n  else {\n    iVar1 = valuetypes[iVar1];\n  }\n  if (iVar1 == 2) {\n    safefree((entry->value).u.stringval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 3) {\n    filename_free((entry->value).u.fileval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 4) {\n    fontspec_free((entry->value).u.fontval);\n    safefree(entry);\n    return;\n  }\n  safefree(entry);\n  return;\n}\n\n" comment (function_definition "void __regparm3 free_entry(conf_entry *entry)\n\n{\n  int iVar1;\n  \n  iVar1 = (entry->key).primary;\n  if (subkeytypes[iVar1] == 2) {\n    safefree((entry->key).secondary.s);\n    iVar1 = valuetypes[(entry->key).primary];\n  }\n  else {\n    iVar1 = valuetypes[iVar1];\n  }\n  if (iVar1 == 2) {\n    safefree((entry->value).u.stringval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 3) {\n    filename_free((entry->value).u.fileval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 4) {\n    fontspec_free((entry->value).u.fontval);\n    safefree(entry);\n    return;\n  }\n  safefree(entry);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "free_entry(conf_entry *entry)" identifier (parameter_list "(conf_entry *entry)" ( (parameter_declaration "conf_entry *entry" type_identifier (pointer_declarator "*entry" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (entry->key).primary;\n  if (subkeytypes[iVar1] == 2) {\n    safefree((entry->key).secondary.s);\n    iVar1 = valuetypes[(entry->key).primary];\n  }\n  else {\n    iVar1 = valuetypes[iVar1];\n  }\n  if (iVar1 == 2) {\n    safefree((entry->value).u.stringval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 3) {\n    filename_free((entry->value).u.fileval);\n    safefree(entry);\n    return;\n  }\n  if (iVar1 == 4) {\n    fontspec_free((entry->value).u.fontval);\n    safefree(entry);\n    return;\n  }\n  safefree(entry);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (entry->key).primary;" (assignment_expression "iVar1 = (entry->key).primary" identifier = (field_expression "(entry->key).primary" (parenthesized_expression "(entry->key)" ( (field_expression "entry->key" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (subkeytypes[iVar1] == 2) {\n    safefree((entry->key).secondary.s);\n    iVar1 = valuetypes[(entry->key).primary];\n  }\n  else {\n    iVar1 = valuetypes[iVar1];\n  }" if (parenthesized_expression "(subkeytypes[iVar1] == 2)" ( (binary_expression "subkeytypes[iVar1] == 2" (subscript_expression "subkeytypes[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    safefree((entry->key).secondary.s);\n    iVar1 = valuetypes[(entry->key).primary];\n  }" { (expression_statement "safefree((entry->key).secondary.s);" (call_expression "safefree((entry->key).secondary.s)" identifier (argument_list "((entry->key).secondary.s)" ( (field_expression "(entry->key).secondary.s" (field_expression "(entry->key).secondary" (parenthesized_expression "(entry->key)" ( (field_expression "entry->key" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "iVar1 = valuetypes[(entry->key).primary];" (assignment_expression "iVar1 = valuetypes[(entry->key).primary]" identifier = (subscript_expression "valuetypes[(entry->key).primary]" identifier [ (field_expression "(entry->key).primary" (parenthesized_expression "(entry->key)" ( (field_expression "entry->key" identifier -> field_identifier) )) . field_identifier) ])) ;) }) (else_clause "else {\n    iVar1 = valuetypes[iVar1];\n  }" else (compound_statement "{\n    iVar1 = valuetypes[iVar1];\n  }" { (expression_statement "iVar1 = valuetypes[iVar1];" (assignment_expression "iVar1 = valuetypes[iVar1]" identifier = (subscript_expression "valuetypes[iVar1]" identifier [ identifier ])) ;) }))) (if_statement "if (iVar1 == 2) {\n    safefree((entry->value).u.stringval);\n    safefree(entry);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    safefree((entry->value).u.stringval);\n    safefree(entry);\n    return;\n  }" { (expression_statement "safefree((entry->value).u.stringval);" (call_expression "safefree((entry->value).u.stringval)" identifier (argument_list "((entry->value).u.stringval)" ( (field_expression "(entry->value).u.stringval" (field_expression "(entry->value).u" (parenthesized_expression "(entry->value)" ( (field_expression "entry->value" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "safefree(entry);" (call_expression "safefree(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 3) {\n    filename_free((entry->value).u.fileval);\n    safefree(entry);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    filename_free((entry->value).u.fileval);\n    safefree(entry);\n    return;\n  }" { (expression_statement "filename_free((entry->value).u.fileval);" (call_expression "filename_free((entry->value).u.fileval)" identifier (argument_list "((entry->value).u.fileval)" ( (field_expression "(entry->value).u.fileval" (field_expression "(entry->value).u" (parenthesized_expression "(entry->value)" ( (field_expression "entry->value" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "safefree(entry);" (call_expression "safefree(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 4) {\n    fontspec_free((entry->value).u.fontval);\n    safefree(entry);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n    fontspec_free((entry->value).u.fontval);\n    safefree(entry);\n    return;\n  }" { (expression_statement "fontspec_free((entry->value).u.fontval);" (call_expression "fontspec_free((entry->value).u.fontval)" identifier (argument_list "((entry->value).u.fontval)" ( (field_expression "(entry->value).u.fontval" (field_expression "(entry->value).u" (parenthesized_expression "(entry->value)" ( (field_expression "entry->value" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "safefree(entry);" (call_expression "safefree(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "safefree(entry);" (call_expression "safefree(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00017970(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00017970(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017970(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b9c0 + *param_1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" { (expression_statement "FUN_0001a110(param_1[1]);" (call_expression "FUN_0001a110(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" else (compound_statement "{\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" { (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" * (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" ( (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" & identifier) + (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal)) ))))) ;) }))) (if_statement "if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_0001a110(param_1[2]);" (call_expression "FUN_0001a110(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_00041820(param_1[2]);" (call_expression "FUN_00041820(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" { (expression_statement "FUN_00041ce0(param_1[2]);" (call_expression "FUN_00041ce0(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (pointer_expression * IDENT) * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (pointer_expression * IDENT) * LIT)) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (pointer_expression * IDENT) * LIT)) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00017970(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00017970(int *param_1)" (identifier "FUN_00017970") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }\n  FUN_0001a110(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }\n  else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2)" (( "(") (binary_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + *param_1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0004b9c0 + *param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004b9c0 + *param_1 * 4)" (( "(") (binary_expression "&DAT_0004b9c0 + *param_1 * 4" (pointer_expression "&DAT_0004b9c0" (& "&") (identifier "DAT_0004b9c0")) (+ "+") (binary_expression "*param_1 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    FUN_0001a110(param_1[1]);\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" ({ "{") (expression_statement "FUN_0001a110(param_1[1]);" (call_expression "FUN_0001a110(param_1[1])" (identifier "FUN_0001a110") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" (( "(") (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" (& "&") (identifier "DAT_0004b6e0")) (+ "+") (binary_expression "*param_1 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(&DAT_0004b6e0 + *param_1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0004b6e0 + *param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004b6e0 + *param_1 * 4)" (( "(") (binary_expression "&DAT_0004b6e0 + *param_1 * 4" (pointer_expression "&DAT_0004b6e0" (& "&") (identifier "DAT_0004b6e0")) (+ "+") (binary_expression "*param_1 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 2) {\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    FUN_0001a110(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" ({ "{") (expression_statement "FUN_0001a110(param_1[2]);" (call_expression "FUN_0001a110(param_1[2])" (identifier "FUN_0001a110") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" (identifier "FUN_0001a110") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar1 == 3) {\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 3)" (( "(") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    FUN_00041820(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" ({ "{") (expression_statement "FUN_00041820(param_1[2]);" (call_expression "FUN_00041820(param_1[2])" (identifier "FUN_00041820") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" (identifier "FUN_0001a110") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar1 == 4) {\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 4)" (( "(") (binary_expression "iVar1 == 4" (identifier "iVar1") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    FUN_00041ce0(param_1[2]);\n    FUN_0001a110(param_1);\n    return;\n  }" ({ "{") (expression_statement "FUN_00041ce0(param_1[2]);" (call_expression "FUN_00041ce0(param_1[2])" (identifier "FUN_00041ce0") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" (identifier "FUN_0001a110") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0001a110(param_1);" (call_expression "FUN_0001a110(param_1)" (identifier "FUN_0001a110") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *entry)

{
  int var_2;
  
  var_2 = (entry->key).primary;
  if (subkeytypes[var_2] == 2) {
    var_1((entry->key).secondary.s);
    var_2 = valuetypes[(entry->key).primary];
  }
  else {
    var_2 = valuetypes[var_2];
  }
  if (var_2 == 2) {
    var_1((entry->value).u.stringval);
    var_1(entry);
    return;
  }
  if (var_2 == 3) {
    var_3((entry->value).u.fileval);
    var_1(entry);
    return;
  }
  if (var_2 == 4) {
    var_4((entry->value).u.fontval);
    var_1(entry);
    return;
  }
  var_1(entry);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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: (pointer_expression argument: (identifier)) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (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 __regparm3 MASKED(int *param_1)

{
  int iVar1;
  
  if (*(int *)(&DAT_0004b9c0 + *param_1 * 4) == 2) {
    FUN_0001a110(param_1[1]);
    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);
  }
  else {
    iVar1 = *(int *)(&DAT_0004b6e0 + *param_1 * 4);
  }
  if (iVar1 == 2) {
    FUN_0001a110(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  if (iVar1 == 3) {
    FUN_00041820(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  if (iVar1 == 4) {
    FUN_00041ce0(param_1[2]);
    FUN_0001a110(param_1);
    return;
  }
  FUN_0001a110(param_1);
  return;
}

