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

_Bool __regparm3 name_allowed(hash_table *ht,char *b,char *e)

{
  int iVar1;
  void *pvVar2;
  undefined1 *puVar3;
  int iVar4;
  int in_GS_OFFSET;
  _Bool _Var5;
  int aiStack_50 [5];
  undefined1 auStack_3c [12];
  int local_30 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2c12d;
  puVar3 = auStack_3c;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  _Var5 = true;
  if (ht != (hash_table *)0x0) {
    iVar4 = (int)e - (int)b;
    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);
    puVar3 = auStack_3c + iVar1;
    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;
    *(char **)((int)aiStack_50 + iVar1 + 8) = b;
    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;
    local_30[0] = (int)local_30 + iVar1;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;
    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),
           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));
    *(undefined1 *)(local_30[0] + iVar4) = 0;
    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];
    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;
    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),
                            *(void **)((int)aiStack_50 + iVar1 + 8));
    _Var5 = pvVar2 != (void *)0x0;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return _Var5;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar3 + -4) = &UNK_0002c19c;
  __stack_chk_fail_local();
}



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

bool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)

{
  int iVar1;
  undefined1 *puVar2;
  int in_GS_OFFSET;
  bool bVar3;
  int aiStack_50 [5];
  undefined1 auStack_3c [12];
  int local_30 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2c12d;
  puVar2 = auStack_3c;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  bVar3 = true;
  if (param_1 != 0) {
    param_3 = param_3 - param_2;
    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);
    puVar2 = auStack_3c + iVar1;
    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;
    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;
    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;
    local_30[0] = (int)local_30 + iVar1;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;
    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),
           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));
    *(undefined1 *)(local_30[0] + param_3) = 0;
    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];
    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;
    iVar1 = FUN_00029830();
    bVar3 = iVar1 != 0;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar3;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;
  FUN_0006da50();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00019070
ADD EBX,0x74aa3
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [EBP + -0x1c],EAX
XOR EAX,EAX
MOV EAX,0x1
TEST EDI,EDI
JZ 0x0002c183
MOV ESI,ECX
SUB ESI,EDX
LEA EAX,[ESI + 0x1c]
AND EAX,0xfffffff0
SUB ESP,EAX
LEA ECX,[ESP + 0xf]
SUB ESP,0x4
AND ECX,0xfffffff0
PUSH ESI
PUSH EDX
PUSH ECX
MOV dword ptr [EBP + -0x2c],ECX
CALL 0x000168a0
MOV ECX,dword ptr [EBP + -0x2c]
MOV byte ptr [ECX + ESI*0x1],0x0
POP EAX
POP EDX
PUSH ECX
PUSH EDI
CALL 0x00029830
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
MOV EDI,dword ptr [EBP + -0x1c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0002c197
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0006da50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}\n\n" comment (function_definition "bool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c120(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int aiStack_50 [5];" primitive_type (array_declarator "aiStack_50 [5]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_3c [12];" type_identifier (array_declarator "auStack_3c [12]" identifier [ number_literal ]) ;) (declaration "int local_30 [4];" primitive_type (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2c12d;" (assignment_expression "uStack_14 = 0x2c12d" identifier = number_literal) ;) (expression_statement "puVar2 = auStack_3c;" (assignment_expression "puVar2 = auStack_3c" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (if_statement "if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" { (expression_statement "param_3 = param_3 - param_2;" (assignment_expression "param_3 = param_3 - param_2" identifier = (binary_expression "param_3 - param_2" identifier - identifier)) ;) (expression_statement "iVar1 = -(param_3 + 0x1cU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_3 + 0x1cU & 0xfffffff0)" identifier = (unary_expression "-(param_3 + 0x1cU & 0xfffffff0)" - (parenthesized_expression "(param_3 + 0x1cU & 0xfffffff0)" ( (binary_expression "param_3 + 0x1cU & 0xfffffff0" (binary_expression "param_3 + 0x1cU" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar2 = auStack_3c + iVar1;" (assignment_expression "puVar2 = auStack_3c + iVar1" identifier = (binary_expression "auStack_3c + iVar1" identifier + identifier)) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "local_30[0] = (int)local_30 + iVar1;" (assignment_expression "local_30[0] = (int)local_30 + iVar1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));" (call_expression "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" identifier (argument_list "(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" ( (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined1 *)(local_30[0] + param_3) = 0;" (assignment_expression "*(undefined1 *)(local_30[0] + param_3) = 0" (pointer_expression "*(undefined1 *)(local_30[0] + param_3)" * (cast_expression "(undefined1 *)(local_30[0] + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30[0] + param_3)" ( (binary_expression "local_30[0] + param_3" (subscript_expression "local_30[0]" identifier [ number_literal ]) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0]" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_00029830();" (assignment_expression "iVar1 = FUN_00029830()" identifier = (call_expression "FUN_00029830()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 bVar3;\n  }" { (return_statement "return bVar3;" return identifier ;) })) comment (expression_statement "*(undefined **)(puVar2 + -4) = &UNK_0002c19c;" (assignment_expression "*(undefined **)(puVar2 + -4) = &UNK_0002c19c" (pointer_expression "*(undefined **)(puVar2 + -4)" * (cast_expression "(undefined **)(puVar2 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -4)" ( (binary_expression "puVar2 + -4" identifier + number_literal) )))) = (pointer_expression "&UNK_0002c19c" & identifier)) ;) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3 name_allowed(hash_table *ht,char *b,char *e)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  _Bool _Var5;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar3 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var5 = true;\n  if (ht != (hash_table *)0x0) {\n    iVar4 = (int)e - (int)b;\n    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);\n    puVar3 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;\n    *(char **)((int)aiStack_50 + iVar1 + 8) = b;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + iVar4) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));\n    _Var5 = pvVar2 != (void *)0x0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var5;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar3 + -4) = &UNK_0002c19c;\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "_Bool __regparm3 name_allowed(hash_table *ht,char *b,char *e)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  _Bool _Var5;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar3 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var5 = true;\n  if (ht != (hash_table *)0x0) {\n    iVar4 = (int)e - (int)b;\n    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);\n    puVar3 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;\n    *(char **)((int)aiStack_50 + iVar1 + 8) = b;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + iVar4) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));\n    _Var5 = pvVar2 != (void *)0x0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var5;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar3 + -4) = &UNK_0002c19c;\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "name_allowed(hash_table *ht,char *b,char *e)" identifier (parameter_list "(hash_table *ht,char *b,char *e)" ( (parameter_declaration "hash_table *ht" type_identifier (pointer_declarator "*ht" * identifier)) , (parameter_declaration "char *b" primitive_type (pointer_declarator "*b" * identifier)) , (parameter_declaration "char *e" primitive_type (pointer_declarator "*e" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  _Bool _Var5;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar3 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var5 = true;\n  if (ht != (hash_table *)0x0) {\n    iVar4 = (int)e - (int)b;\n    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);\n    puVar3 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;\n    *(char **)((int)aiStack_50 + iVar1 + 8) = b;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + iVar4) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));\n    _Var5 = pvVar2 != (void *)0x0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var5;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar3 + -4) = &UNK_0002c19c;\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "_Bool _Var5;" type_identifier identifier ;) (declaration "int aiStack_50 [5];" primitive_type (array_declarator "aiStack_50 [5]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_3c [12];" type_identifier (array_declarator "auStack_3c [12]" identifier [ number_literal ]) ;) (declaration "int local_30 [4];" primitive_type (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2c12d;" (assignment_expression "uStack_14 = 0x2c12d" identifier = number_literal) ;) (expression_statement "puVar3 = auStack_3c;" (assignment_expression "puVar3 = auStack_3c" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "_Var5 = true;" (assignment_expression "_Var5 = true" identifier = true) ;) (if_statement "if (ht != (hash_table *)0x0) {\n    iVar4 = (int)e - (int)b;\n    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);\n    puVar3 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;\n    *(char **)((int)aiStack_50 + iVar1 + 8) = b;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + iVar4) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));\n    _Var5 = pvVar2 != (void *)0x0;\n  }" if (parenthesized_expression "(ht != (hash_table *)0x0)" ( (binary_expression "ht != (hash_table *)0x0" identifier != (cast_expression "(hash_table *)0x0" ( (type_descriptor "hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = (int)e - (int)b;\n    iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);\n    puVar3 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;\n    *(char **)((int)aiStack_50 + iVar1 + 8) = b;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + iVar4) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));\n    _Var5 = pvVar2 != (void *)0x0;\n  }" { (expression_statement "iVar4 = (int)e - (int)b;" (assignment_expression "iVar4 = (int)e - (int)b" identifier = (binary_expression "(int)e - (int)b" (cast_expression "(int)e" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar1 = -(iVar4 + 0x1cU & 0xfffffff0);" (assignment_expression "iVar1 = -(iVar4 + 0x1cU & 0xfffffff0)" identifier = (unary_expression "-(iVar4 + 0x1cU & 0xfffffff0)" - (parenthesized_expression "(iVar4 + 0x1cU & 0xfffffff0)" ( (binary_expression "iVar4 + 0x1cU & 0xfffffff0" (binary_expression "iVar4 + 0x1cU" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar3 = auStack_3c + iVar1;" (assignment_expression "puVar3 = auStack_3c + iVar1" identifier = (binary_expression "auStack_3c + iVar1" identifier + identifier)) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc) = iVar4" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(char **)((int)aiStack_50 + iVar1 + 8) = b;" (assignment_expression "*(char **)((int)aiStack_50 + iVar1 + 8) = b" (pointer_expression "*(char **)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(char **)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "local_30[0] = (int)local_30 + iVar1;" (assignment_expression "local_30[0] = (int)local_30 + iVar1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));" (call_expression "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" identifier (argument_list "(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" ( (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined1 *)(local_30[0] + iVar4) = 0;" (assignment_expression "*(undefined1 *)(local_30[0] + iVar4) = 0" (pointer_expression "*(undefined1 *)(local_30[0] + iVar4)" * (cast_expression "(undefined1 *)(local_30[0] + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30[0] + iVar4)" ( (binary_expression "local_30[0] + iVar4" (subscript_expression "local_30[0]" identifier [ number_literal ]) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0]" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) (expression_statement "*(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht;" (assignment_expression "*(hash_table **)((int)aiStack_50 + iVar1 + 4) = ht" (pointer_expression "*(hash_table **)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(hash_table **)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8));" (assignment_expression "pvVar2 = hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8))" identifier = (call_expression "hash_table_get(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8))" identifier (argument_list "(*(hash_table **)((int)aiStack_50 + iVar1 + 4),\n                            *(void **)((int)aiStack_50 + iVar1 + 8))" ( (pointer_expression "*(hash_table **)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(hash_table **)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "_Var5 = pvVar2 != (void *)0x0;" (assignment_expression "_Var5 = pvVar2 != (void *)0x0" identifier = (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 _Var5;\n  }" { (return_statement "return _Var5;" return identifier ;) })) comment (expression_statement "*(undefined **)(puVar3 + -4) = &UNK_0002c19c;" (assignment_expression "*(undefined **)(puVar3 + -4) = &UNK_0002c19c" (pointer_expression "*(undefined **)(puVar3 + -4)" * (cast_expression "(undefined **)(puVar3 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) )))) = (pointer_expression "&UNK_0002c19c" & identifier)) ;) (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    \n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}\n\n" (function_definition "bool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    \n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c120(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    \n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int aiStack_50 [5];" primitive_type (array_declarator "aiStack_50 [5]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_3c [12];" type_identifier (array_declarator "auStack_3c [12]" identifier [ number_literal ]) ;) (declaration "int local_30 [4];" primitive_type (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2c12d;" (assignment_expression "uStack_14 = 0x2c12d" identifier = number_literal) ;) (expression_statement "puVar2 = auStack_3c;" (assignment_expression "puVar2 = auStack_3c" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (if_statement "if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" { (expression_statement "param_3 = param_3 - param_2;" (assignment_expression "param_3 = param_3 - param_2" identifier = (binary_expression "param_3 - param_2" identifier - identifier)) ;) (expression_statement "iVar1 = -(param_3 + 0x1cU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_3 + 0x1cU & 0xfffffff0)" identifier = (unary_expression "-(param_3 + 0x1cU & 0xfffffff0)" - (parenthesized_expression "(param_3 + 0x1cU & 0xfffffff0)" ( (binary_expression "param_3 + 0x1cU & 0xfffffff0" (binary_expression "param_3 + 0x1cU" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar2 = auStack_3c + iVar1;" (assignment_expression "puVar2 = auStack_3c + iVar1" identifier = (binary_expression "auStack_3c + iVar1" identifier + identifier)) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "local_30[0] = (int)local_30 + iVar1;" (assignment_expression "local_30[0] = (int)local_30 + iVar1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));" (call_expression "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" identifier (argument_list "(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" ( (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(void **)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_50 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_50 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined1 *)(local_30[0] + param_3) = 0;" (assignment_expression "*(undefined1 *)(local_30[0] + param_3) = 0" (pointer_expression "*(undefined1 *)(local_30[0] + param_3)" * (cast_expression "(undefined1 *)(local_30[0] + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30[0] + param_3)" ( (binary_expression "local_30[0] + param_3" (subscript_expression "local_30[0]" identifier [ number_literal ]) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0]" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" ( (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" ( (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_50 + iVar1)" ( (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_00029830();" (assignment_expression "iVar1 = FUN_00029830()" identifier = (call_expression "FUN_00029830()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 bVar3;\n  }" { (return_statement "return bVar3;" return identifier ;) })) (expression_statement "*(undefined **)(puVar2 + -4) = &UNK_0002c19c;" (assignment_expression "*(undefined **)(puVar2 + -4) = &UNK_0002c19c" (pointer_expression "*(undefined **)(puVar2 + -4)" * (cast_expression "(undefined **)(puVar2 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -4)" ( (binary_expression "puVar2 + -4" identifier + number_literal) )))) = (pointer_expression "&UNK_0002c19c" & identifier)) ;) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) (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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool __regparm3 FUN_0002c120(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    \n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002c120(int param_1,int param_2,int param_3)" (identifier "FUN_0002c120") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int in_GS_OFFSET;\n  bool bVar3;\n  int aiStack_50 [5];\n  undefined1 auStack_3c [12];\n  int local_30 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c12d;\n  puVar2 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar3 = true;\n  if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }\n                    \n  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;\n  FUN_0006da50();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "int aiStack_50 [5];" (primitive_type "int") (array_declarator "aiStack_50 [5]" (identifier "aiStack_50") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "undefined1 auStack_3c [12];" (type_identifier "undefined1") (array_declarator "auStack_3c [12]" (identifier "auStack_3c") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "int local_30 [4];" (primitive_type "int") (array_declarator "local_30 [4]" (identifier "local_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2c12d;" (assignment_expression "uStack_14 = 0x2c12d" (identifier "uStack_14") (= "=") (number_literal "0x2c12d")) (; ";")) (expression_statement "puVar2 = auStack_3c;" (assignment_expression "puVar2 = auStack_3c" (identifier "puVar2") (= "=") (identifier "auStack_3c")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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 "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (if_statement "if (param_1 != 0) {\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = param_3 - param_2;\n    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);\n    puVar2 = auStack_3c + iVar1;\n    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;\n    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;\n    local_30[0] = (int)local_30 + iVar1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;\n    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));\n    *(undefined1 *)(local_30[0] + param_3) = 0;\n    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];\n    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;\n    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;\n    iVar1 = FUN_00029830();\n    bVar3 = iVar1 != 0;\n  }" ({ "{") (expression_statement "param_3 = param_3 - param_2;" (assignment_expression "param_3 = param_3 - param_2" (identifier "param_3") (= "=") (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2"))) (; ";")) (expression_statement "iVar1 = -(param_3 + 0x1cU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_3 + 0x1cU & 0xfffffff0)" (identifier "iVar1") (= "=") (unary_expression "-(param_3 + 0x1cU & 0xfffffff0)" (- "-") (parenthesized_expression "(param_3 + 0x1cU & 0xfffffff0)" (( "(") (binary_expression "param_3 + 0x1cU & 0xfffffff0" (binary_expression "param_3 + 0x1cU" (identifier "param_3") (+ "+") (number_literal "0x1cU")) (& "&") (number_literal "0xfffffff0")) () ")")))) (; ";")) (expression_statement "puVar2 = auStack_3c + iVar1;" (assignment_expression "puVar2 = auStack_3c + iVar1" (identifier "puVar2") (= "=") (binary_expression "auStack_3c + iVar1" (identifier "auStack_3c") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 0xc)" (* "*") (cast_expression "(int *)((int)aiStack_50 + iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = param_2" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" (* "*") (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" (* "*") (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "local_30[0] = (int)local_30 + iVar1;" (assignment_expression "local_30[0] = (int)local_30 + iVar1" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1)" (( "(") (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x2c16b")) (; ";")) (expression_statement "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));" (call_expression "memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" (identifier "memcpy") (argument_list "(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),\n           *(size_t *)((int)aiStack_50 + iVar1 + 0xc))" (( "(") (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 4)" (* "*") (cast_expression "(void **)((int)aiStack_50 + iVar1 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(void **)((int)aiStack_50 + iVar1 + 8)" (* "*") (cast_expression "(void **)((int)aiStack_50 + iVar1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(size_t *)((int)aiStack_50 + iVar1 + 0xc)" (* "*") (cast_expression "(size_t *)((int)aiStack_50 + iVar1 + 0xc)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 0xc)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 0xc" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined1 *)(local_30[0] + param_3) = 0;" (assignment_expression "*(undefined1 *)(local_30[0] + param_3) = 0" (pointer_expression "*(undefined1 *)(local_30[0] + param_3)" (* "*") (cast_expression "(undefined1 *)(local_30[0] + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_30[0] + param_3)" (( "(") (binary_expression "local_30[0] + param_3" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0]" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 8)" (* "*") (cast_expression "(int *)((int)aiStack_50 + iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 8)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 8" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1;" (assignment_expression "*(int *)((int)aiStack_50 + iVar1 + 4) = param_1" (pointer_expression "*(int *)((int)aiStack_50 + iVar1 + 4)" (* "*") (cast_expression "(int *)((int)aiStack_50 + iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1 + 4)" (( "(") (binary_expression "(int)aiStack_50 + iVar1 + 4" (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;" (assignment_expression "*(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b" (pointer_expression "*(undefined4 *)((int)aiStack_50 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_50 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_50 + iVar1)" (( "(") (binary_expression "(int)aiStack_50 + iVar1" (cast_expression "(int)aiStack_50" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_50")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x2c17b")) (; ";")) (expression_statement "iVar1 = FUN_00029830();" (assignment_expression "iVar1 = FUN_00029830()" (identifier "iVar1") (= "=") (call_expression "FUN_00029830()" (identifier "FUN_00029830") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" (identifier "bVar3") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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 bVar3;\n  }" ({ "{") (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}"))) (expression_statement "*(undefined **)(puVar2 + -4) = &UNK_0002c19c;" (assignment_expression "*(undefined **)(puVar2 + -4) = &UNK_0002c19c" (pointer_expression "*(undefined **)(puVar2 + -4)" (* "*") (cast_expression "(undefined **)(puVar2 + -4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + -4)" (( "(") (binary_expression "puVar2 + -4" (identifier "puVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (pointer_expression "&UNK_0002c19c" (& "&") (identifier "UNK_0002c19c"))) (; ";")) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" (identifier "FUN_0006da50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *var_2,char *b,char *e)

{
  int var_5;
  void *var_8;
  type_3 *var_10;
  int var_3;
  int var_1;
  type_1 _Var5;
  int aiStack_50 [5];
  type_3 var_4 [12];
  int local_30 [4];
  int var_9;
  type_4 uStack_14;
  
  uStack_14 = 0x2c12d;
  var_10 = var_4;
  var_9 = *(int *)(var_1 + 0x14);
  _Var5 = true;
  if (var_2 != (type_2 *)0x0) {
    var_3 = (int)e - (int)b;
    var_5 = -(var_3 + 0x1cU & 0xfffffff0);
    var_10 = var_4 + var_5;
    *(int *)((int)aiStack_50 + var_5 + 0xc) = var_3;
    *(char **)((int)aiStack_50 + var_5 + 8) = b;
    *(int *)((int)aiStack_50 + var_5 + 4) = (int)local_30 + var_5;
    local_30[0] = (int)local_30 + var_5;
    *(type_4 *)((int)aiStack_50 + var_5) = 0x2c16b;
    var_6(*(void **)((int)aiStack_50 + var_5 + 4),*(void **)((int)aiStack_50 + var_5 + 8),
           *(size_t *)((int)aiStack_50 + var_5 + 0xc));
    *(type_3 *)(local_30[0] + var_3) = 0;
    *(int *)((int)aiStack_50 + var_5 + 8) = local_30[0];
    *(type_2 **)((int)aiStack_50 + var_5 + 4) = var_2;
    *(type_4 *)((int)aiStack_50 + var_5) = 0x2c17b;
    var_8 = var_7(*(type_2 **)((int)aiStack_50 + var_5 + 4),
                            *(void **)((int)aiStack_50 + var_5 + 8));
    _Var5 = var_8 != (void *)0x0;
  }
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return _Var5;
  }
                    /* WARNING: Subroutine does not return */
  *(type_5 **)(var_10 + -4) = &UNK_0002c19c;
  var_11();
}


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

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

bool __regparm3 MASKED(int param_1,int param_2,int param_3)

{
  int iVar1;
  undefined1 *puVar2;
  int in_GS_OFFSET;
  bool bVar3;
  int aiStack_50 [5];
  undefined1 auStack_3c [12];
  int local_30 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2c12d;
  puVar2 = auStack_3c;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  bVar3 = true;
  if (param_1 != 0) {
    param_3 = param_3 - param_2;
    iVar1 = -(param_3 + 0x1cU & 0xfffffff0);
    puVar2 = auStack_3c + iVar1;
    *(int *)((int)aiStack_50 + iVar1 + 0xc) = param_3;
    *(int *)((int)aiStack_50 + iVar1 + 8) = param_2;
    *(int *)((int)aiStack_50 + iVar1 + 4) = (int)local_30 + iVar1;
    local_30[0] = (int)local_30 + iVar1;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c16b;
    memcpy(*(void **)((int)aiStack_50 + iVar1 + 4),*(void **)((int)aiStack_50 + iVar1 + 8),
           *(size_t *)((int)aiStack_50 + iVar1 + 0xc));
    *(undefined1 *)(local_30[0] + param_3) = 0;
    *(int *)((int)aiStack_50 + iVar1 + 8) = local_30[0];
    *(int *)((int)aiStack_50 + iVar1 + 4) = param_1;
    *(undefined4 *)((int)aiStack_50 + iVar1) = 0x2c17b;
    iVar1 = FUN_00029830();
    bVar3 = iVar1 != 0;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar3;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar2 + -4) = &UNK_0002c19c;
  FUN_0006da50();
}

