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

char * get_setting(char *key)

{
  int iVar1;
  void *pvVar2;
  char *pcVar3;
  int in_GS_OFFSET;
  skeyval tmp;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  tmp.key = key;
  if (xrmtree != (tree234 *)0x0) {
    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);
    if (pvVar2 != (void *)0x0) {
      pcVar3 = *(char **)((int)pvVar2 + 4);
      goto LAB_0006c33c;
    }
  }
  pcVar3 = x_get_default(key);
LAB_0006c33c:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar3;
  }
                    /* 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_0006c2e0(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined4 local_18 [2];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x6c2e7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_18[0] = param_1;
  if (DAT_000aab14 != 0) {
    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);
    if (iVar1 != 0) {
      uVar2 = *(undefined4 *)(iVar1 + 4);
      goto LAB_0006c33c;
    }
  }
  uVar2 = FUN_0006a1f0(param_1);
LAB_0006c33c:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x3daa9
SUB ESP,0x14
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x20]
MOV dword ptr [ESP + 0x4],ESI
MOV EAX,dword ptr [EBX + 0xd84]
TEST EAX,EAX
JZ 0x0006c330
SUB ESP,0x4
PUSH 0x0
LEA EDX,[ESP + 0xc]
PUSH EDX
PUSH EAX
CALL 0x00063f80
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006c330
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x0006c33c
SUB ESP,0xc
PUSH ESI
CALL 0x0006a1f0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0006c34f
ADD ESP,0x14
POP EBX
POP ESI
RET
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0006c2e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "undefined4 FUN_0006c2e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_0006c2e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x6c2e7;" (assignment_expression "uStack_c = 0x6c2e7" 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 "local_18[0] = param_1;" (assignment_expression "local_18[0] = param_1" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" if (parenthesized_expression "(DAT_000aab14 != 0)" ( (binary_expression "DAT_000aab14 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" { (expression_statement "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);" (assignment_expression "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0)" identifier = (call_expression "FUN_00063f80(DAT_000aab14,local_18,0)" identifier (argument_list "(DAT_000aab14,local_18,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0006c33c;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = FUN_0006a1f0(param_1);" (assignment_expression "uVar2 = FUN_0006a1f0(param_1)" identifier = (call_expression "FUN_0006a1f0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "LAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" 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\nchar * get_setting(char *key)\n\n{\n  int iVar1;\n  void *pvVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if (xrmtree != (tree234 *)0x0) {\n    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);\n    if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  pcVar3 = x_get_default(key);\nLAB_0006c33c:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "char * get_setting(char *key)\n\n{\n  int iVar1;\n  void *pvVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if (xrmtree != (tree234 *)0x0) {\n    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);\n    if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  pcVar3 = x_get_default(key);\nLAB_0006c33c:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* get_setting(char *key)" * (function_declarator "get_setting(char *key)" identifier (parameter_list "(char *key)" ( (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if (xrmtree != (tree234 *)0x0) {\n    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);\n    if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  pcVar3 = x_get_default(key);\nLAB_0006c33c:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "skeyval tmp;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "tmp.key = key;" (assignment_expression "tmp.key = key" (field_expression "tmp.key" identifier . field_identifier) = identifier) ;) (if_statement "if (xrmtree != (tree234 *)0x0) {\n    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);\n    if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }\n  }" if (parenthesized_expression "(xrmtree != (tree234 *)0x0)" ( (binary_expression "xrmtree != (tree234 *)0x0" identifier != (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);\n    if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }\n  }" { (expression_statement "pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0);" (assignment_expression "pvVar2 = find234(xrmtree,&tmp,(cmpfn234)0x0)" identifier = (call_expression "find234(xrmtree,&tmp,(cmpfn234)0x0)" identifier (argument_list "(xrmtree,&tmp,(cmpfn234)0x0)" ( identifier , (pointer_expression "&tmp" & identifier) , (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = *(char **)((int)pvVar2 + 4);\n      goto LAB_0006c33c;\n    }" { (expression_statement "pcVar3 = *(char **)((int)pvVar2 + 4);" (assignment_expression "pcVar3 = *(char **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(char **)((int)pvVar2 + 4)" * (cast_expression "(char **)((int)pvVar2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_0006c33c;" goto statement_identifier ;) })) })) (expression_statement "pcVar3 = x_get_default(key);" (assignment_expression "pcVar3 = x_get_default(key)" identifier = (call_expression "x_get_default(key)" identifier (argument_list "(key)" ( identifier )))) ;) (labeled_statement "LAB_0006c33c:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_0006c2e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "undefined4 FUN_0006c2e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_0006c2e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x6c2e7;" (assignment_expression "uStack_c = 0x6c2e7" 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 "local_18[0] = param_1;" (assignment_expression "local_18[0] = param_1" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" if (parenthesized_expression "(DAT_000aab14 != 0)" ( (binary_expression "DAT_000aab14 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" { (expression_statement "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);" (assignment_expression "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0)" identifier = (call_expression "FUN_00063f80(DAT_000aab14,local_18,0)" identifier (argument_list "(DAT_000aab14,local_18,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0006c33c;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = FUN_0006a1f0(param_1);" (assignment_expression "uVar2 = FUN_0006a1f0(param_1)" identifier = (call_expression "FUN_0006a1f0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "LAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (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_0006c2e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" (type_identifier "undefined4") (function_declarator "FUN_0006c2e0(undefined4 param_1)" (identifier "FUN_0006c2e0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6c2e7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18[0] = param_1;\n  if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }\n  uVar2 = FUN_0006a1f0(param_1);\nLAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_18 [2];" (type_identifier "undefined4") (array_declarator "local_18 [2]" (identifier "local_18") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x6c2e7;" (assignment_expression "uStack_c = 0x6c2e7" (identifier "uStack_c") (= "=") (number_literal "0x6c2e7")) (; ";")) (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 "local_18[0] = param_1;" (assignment_expression "local_18[0] = param_1" (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (DAT_000aab14 != 0) {\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000aab14 != 0)" (( "(") (binary_expression "DAT_000aab14 != 0" (identifier "DAT_000aab14") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);\n    if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);" (assignment_expression "iVar1 = FUN_00063f80(DAT_000aab14,local_18,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00063f80(DAT_000aab14,local_18,0)" (identifier "FUN_00063f80") (argument_list "(DAT_000aab14,local_18,0)" (( "(") (identifier "DAT_000aab14") (, ",") (identifier "local_18") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = *(undefined4 *)(iVar1 + 4);\n      goto LAB_0006c33c;\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (goto_statement "goto LAB_0006c33c;" (goto "goto") (statement_identifier "LAB_0006c33c") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar2 = FUN_0006a1f0(param_1);" (assignment_expression "uVar2 = FUN_0006a1f0(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0006a1f0(param_1)" (identifier "FUN_0006a1f0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (labeled_statement "LAB_0006c33c:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (statement_identifier "LAB_0006c33c") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\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 uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(char *key)

{
  int var_6;
  void *var_4;
  char *pcVar3;
  int var_1;
  type_1 tmp;
  
  var_6 = *(int *)(var_1 + 0x14);
  tmp.key = key;
  if (var_2 != (type_2 *)0x0) {
    var_4 = var_3(var_2,&tmp,(type_3)0x0);
    if (var_4 != (void *)0x0) {
      pcVar3 = *(char **)((int)var_4 + 4);
      goto LAB_0006c33c;
    }
  }
  pcVar3 = var_5(key);
LAB_0006c33c:
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return pcVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (labeled_statement label: (statement_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)

{
  int iVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined4 local_18 [2];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x6c2e7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_18[0] = param_1;
  if (DAT_000aab14 != 0) {
    iVar1 = FUN_00063f80(DAT_000aab14,local_18,0);
    if (iVar1 != 0) {
      uVar2 = *(undefined4 *)(iVar1 + 4);
      goto LAB_0006c33c;
    }
  }
  uVar2 = FUN_0006a1f0(param_1);
LAB_0006c33c:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

