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

void * hash_insert(Hash_table *table,void *entry)

{
  int iVar1;
  int in_GS_OFFSET;
  void *matched_ent;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x188b7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = hash_insert_if_absent(table,entry,&matched_ent);
  if (iVar1 == -1) {
    entry = (void *)0x0;
  }
  else if (iVar1 == 0) {
    entry = matched_ent;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return entry;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x188b7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_000186a0(param_1,param_2,&local_14);
  if (iVar1 == -1) {
    param_2 = 0;
  }
  else if (iVar1 == 0) {
    param_2 = local_14;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001dfa0();
}


PUSH ESI
PUSH EBX
CALL 0x000154c0
ADD EBX,0xd749
SUB ESP,0x18
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x10],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x28]
LEA EAX,[ESP + 0xc]
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x2c]
CALL 0x000186a0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00018908
TEST EAX,EAX
MOV EAX,ESI
CMOVZ EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0001890c
ADD ESP,0x14
POP EBX
POP ESI
RET
XOR EAX,EAX
JMP 0x000188f0
CALL 0x0001dfa0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001dfa0();\n}\n\n" comment (function_definition "undefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001dfa0();\n}" type_identifier (function_declarator "FUN_000188b0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001dfa0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x188b7;" (assignment_expression "uStack_c = 0x188b7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000186a0(param_1,param_2,&local_14);" (assignment_expression "iVar1 = FUN_000186a0(param_1,param_2,&local_14)" identifier = (call_expression "FUN_000186a0(param_1,param_2,&local_14)" identifier (argument_list "(param_1,param_2,&local_14)" ( identifier , identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_2 = 0;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) }) (else_clause "else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" else (if_statement "if (iVar1 == 0) {\n    param_2 = local_14;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = local_14;\n  }" { (expression_statement "param_2 = local_14;" (assignment_expression "param_2 = local_14" identifier = identifier) ;) })))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) })) comment (expression_statement "FUN_0001dfa0();" (call_expression "FUN_0001dfa0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * hash_insert(Hash_table *table,void *entry)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  void *matched_ent;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = hash_insert_if_absent(table,entry,&matched_ent);\n  if (iVar1 == -1) {\n    entry = (void *)0x0;\n  }\n  else if (iVar1 == 0) {\n    entry = matched_ent;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return entry;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void * hash_insert(Hash_table *table,void *entry)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  void *matched_ent;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = hash_insert_if_absent(table,entry,&matched_ent);\n  if (iVar1 == -1) {\n    entry = (void *)0x0;\n  }\n  else if (iVar1 == 0) {\n    entry = matched_ent;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return entry;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* hash_insert(Hash_table *table,void *entry)" * (function_declarator "hash_insert(Hash_table *table,void *entry)" identifier (parameter_list "(Hash_table *table,void *entry)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "void *entry" primitive_type (pointer_declarator "*entry" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  void *matched_ent;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = hash_insert_if_absent(table,entry,&matched_ent);\n  if (iVar1 == -1) {\n    entry = (void *)0x0;\n  }\n  else if (iVar1 == 0) {\n    entry = matched_ent;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return entry;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "void *matched_ent;" primitive_type (pointer_declarator "*matched_ent" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x188b7;" (assignment_expression "uStack_c = 0x188b7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = hash_insert_if_absent(table,entry,&matched_ent);" (assignment_expression "iVar1 = hash_insert_if_absent(table,entry,&matched_ent)" identifier = (call_expression "hash_insert_if_absent(table,entry,&matched_ent)" identifier (argument_list "(table,entry,&matched_ent)" ( identifier , identifier , (pointer_expression "&matched_ent" & identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    entry = (void *)0x0;\n  }\n  else if (iVar1 == 0) {\n    entry = matched_ent;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    entry = (void *)0x0;\n  }" { (expression_statement "entry = (void *)0x0;" (assignment_expression "entry = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (iVar1 == 0) {\n    entry = matched_ent;\n  }" else (if_statement "if (iVar1 == 0) {\n    entry = matched_ent;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    entry = matched_ent;\n  }" { (expression_statement "entry = matched_ent;" (assignment_expression "entry = matched_ent" identifier = identifier) ;) })))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return entry;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return entry;\n  }" { (return_statement "return entry;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_0001dfa0();\n}\n\n" (function_definition "undefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_0001dfa0();\n}" type_identifier (function_declarator "FUN_000188b0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_0001dfa0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x188b7;" (assignment_expression "uStack_c = 0x188b7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000186a0(param_1,param_2,&local_14);" (assignment_expression "iVar1 = FUN_000186a0(param_1,param_2,&local_14)" identifier = (call_expression "FUN_000186a0(param_1,param_2,&local_14)" identifier (argument_list "(param_1,param_2,&local_14)" ( identifier , identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_2 = 0;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) }) (else_clause "else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" else (if_statement "if (iVar1 == 0) {\n    param_2 = local_14;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = local_14;\n  }" { (expression_statement "param_2 = local_14;" (assignment_expression "param_2 = local_14" identifier = identifier) ;) })))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "FUN_0001dfa0();" (call_expression "FUN_0001dfa0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_000188b0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_0001dfa0();\n}" (type_identifier "undefined4") (function_declarator "FUN_000188b0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_000188b0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x188b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000186a0(param_1,param_2,&local_14);\n  if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_0001dfa0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x188b7;" (assignment_expression "uStack_c = 0x188b7" (identifier "uStack_c") (= "=") (number_literal "0x188b7")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_000186a0(param_1,param_2,&local_14);" (assignment_expression "iVar1 = FUN_000186a0(param_1,param_2,&local_14)" (identifier "iVar1") (= "=") (call_expression "FUN_000186a0(param_1,param_2,&local_14)" (identifier "FUN_000186a0") (argument_list "(param_1,param_2,&local_14)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n    param_2 = 0;\n  }\n  else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    param_2 = 0;\n  }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (iVar1 == 0) {\n    param_2 = local_14;\n  }" (else "else") (if_statement "if (iVar1 == 0) {\n    param_2 = local_14;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = local_14;\n  }" ({ "{") (expression_statement "param_2 = local_14;" (assignment_expression "param_2 = local_14" (identifier "param_2") (= "=") (identifier "local_14")) (; ";")) (} "}"))))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return param_2;\n  }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "FUN_0001dfa0();" (call_expression "FUN_0001dfa0()" (identifier "FUN_0001dfa0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void * function_1(type_1 *table,void *entry)

{
  int var_3;
  int var_1;
  void *matched_ent;
  int var_4;
  type_2 uStack_c;
  
  uStack_c = 0x188b7;
  var_4 = *(int *)(var_1 + 0x14);
  var_3 = var_2(table,entry,&matched_ent);
  if (var_3 == -1) {
    entry = (void *)0x0;
  }
  else if (var_3 == 0) {
    entry = matched_ent;
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return entry;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x188b7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_000186a0(param_1,param_2,&local_14);
  if (iVar1 == -1) {
    param_2 = 0;
  }
  else if (iVar1 == 0) {
    param_2 = local_14;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001dfa0();
}

