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

void res_register_specs(char *host,int port,robot_specs *specs)

{
  int iVar1;
  int iVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  size_t sStackY_60;
  int local_44;
  int local_40 [2];
  int local_38;
  robot_specs *local_34;
  char *local_30;
  robot_specs *old;
  char *hp_old;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4115b;
  local_34 = specs;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = host;
  sStackY_60 = 0x41182;
  sVar3 = strlen(host);
  local_44 = port;
  local_40[0] = port >> 0x1f;
  sStackY_60 = 0x4119b;
  iVar4 = numdigit((longlong)port);
  local_38 = sVar3 + 1;
  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);
  iVar4 = (int)local_40 + iVar1;
  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;
  *(char **)(&stack0xffffffa8 + iVar1) = local_30;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1;
  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),
         *(size_t *)(&stack0xffffffac + iVar1));
  iVar5 = local_44;
  *(undefined1 *)(iVar4 + sVar3) = 0x3a;
  *(int *)(&stack0xffffffac + iVar1) = local_40[0];
  iVar2 = local_38;
  *(int *)(&stack0xffffffa8 + iVar1) = iVar5;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;
  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc;
  number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1));
  if (registered_specs == (hash_table *)0x0) {
    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;
    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;
    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));
  }
  *(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old;
  *(char ***)(&stack0xffffffac + iVar1) = &hp_old;
  *(int *)(&stack0xffffffa8 + iVar1) = iVar4;
  *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;
  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8;
  iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),
                              *(void **)(&stack0xffffffa8 + iVar1),
                              *(void **)(&stack0xffffffac + iVar1),
                              *(void **)(&stack0xffffffb0 + iVar1));
  if (iVar5 == 0) {
    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;
    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));
    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;
    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;
    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;
    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;
    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),
                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));
  }
  else {
    if (old != (robot_specs *)0x0) {
      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;
      free_specs(old);
    }
    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;
    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;
    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;
    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;
    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),
                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;
  __stack_chk_fail_local();
}



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

void FUN_00041150(char *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  int in_GS_OFFSET;
  int iStackY_60;
  int iStack_58;
  int local_44;
  int local_40 [2];
  int local_38;
  undefined4 local_34;
  char *local_30;
  int local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4115b;
  local_34 = param_3;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = param_1;
  iStackY_60 = 0x41182;
  sVar3 = strlen(param_1);
  local_44 = param_2;
  iStack_58 = param_2 >> 0x1f;
  iStackY_60 = 0x4119b;
  local_40[0] = iStack_58;
  iVar4 = FUN_0004afc0();
  local_38 = sVar3 + 1;
  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);
  iVar4 = (int)local_40 + iVar1;
  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;
  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;
  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),
         *(size_t *)(&stack0xffffffac + iVar1));
  iVar5 = local_44;
  *(undefined1 *)(iVar4 + sVar3) = 0x3a;
  *(int *)(&stack0xffffffac + iVar1) = local_40[0];
  iVar2 = local_38;
  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;
  FUN_0004b020();
  if (DAT_000a84f4 == 0) {
    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;
    DAT_000a84f4 = FUN_00029e90();
  }
  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;
  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;
  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;
  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;
  iVar5 = FUN_000298a0();
  if (iVar5 == 0) {
    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;
    uVar6 = FUN_0005af70();
    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;
    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;
    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;
    FUN_000299b0();
  }
  else {
    if (local_28 != 0) {
      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;
      FUN_000406d0();
    }
    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;
    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;
    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;
    FUN_000299b0();
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;
  FUN_0006da50();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019070
ADD EBX,0x5fa75
SUB ESP,0x48
MOV EDI,dword ptr [EBP + 0x10]
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x30],EDI
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [EBP + -0x1c],ESI
XOR ESI,ESI
PUSH EAX
MOV dword ptr [EBP + -0x2c],EAX
CALL 0x000168c0
POP EDX
POP ECX
MOV EDI,EAX
MOV EAX,dword ptr [EBP + 0xc]
MOV ECX,EAX
MOV dword ptr [EBP + -0x40],EAX
SAR ECX,0x1f
PUSH ECX
PUSH EAX
MOV dword ptr [EBP + -0x3c],ECX
CALL 0x0004afc0
LEA ECX,[EDI + 0x1]
ADD ESP,0x10
LEA EAX,[EAX + ECX*0x1 + 0x1c]
MOV dword ptr [EBP + -0x34],ECX
AND EAX,0xfffffff0
SUB ESP,EAX
LEA ESI,[ESP + 0xf]
SUB ESP,0x4
AND ESI,0xfffffff0
PUSH EDI
PUSH dword ptr [EBP + -0x2c]
PUSH ESI
CALL 0x000168a0
MOV ECX,dword ptr [EBP + -0x3c]
ADD ESP,0xc
MOV byte ptr [ESI + EDI*0x1],0x3a
MOV EDX,dword ptr [EBP + -0x40]
PUSH ECX
MOV ECX,dword ptr [EBP + -0x34]
PUSH EDX
LEA EDI,[ESI + ECX*0x1]
PUSH EDI
CALL 0x0004b020
MOV EAX,dword ptr [EBX + 0x7924]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00041260
LEA EDX,[EBP + -0x24]
PUSH EDX
LEA EDX,[EBP + -0x20]
PUSH EDX
PUSH ESI
PUSH EAX
CALL 0x000298a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00041240
MOV EAX,dword ptr [EBP + -0x24]
TEST EAX,EAX
JZ 0x0004120b
CALL 0x000406d0
SUB ESP,0x4
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + -0x20]
PUSH dword ptr [EBX + 0x7924]
CALL 0x000299b0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00041278
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x0005af70
ADD ESP,0xc
PUSH dword ptr [EBP + -0x30]
PUSH EAX
PUSH dword ptr [EBX + 0x7924]
CALL 0x000299b0
ADD ESP,0x10
JMP 0x00041222
SUB ESP,0xc
PUSH 0x0
CALL 0x00029e90
ADD ESP,0x10
MOV dword ptr [EBX + 0x7924],EAX
JMP 0x000411e9
CALL 0x0006da50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00041150(char *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}\n\n" comment (function_definition "void FUN_00041150(char *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_00041150(char *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(char *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iStackY_60;" primitive_type identifier ;) (declaration "int iStack_58;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40 [2];" primitive_type (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4115b;" (assignment_expression "uStack_14 = 0x4115b" identifier = number_literal) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" 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 "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (expression_statement "iStackY_60 = 0x41182;" (assignment_expression "iStackY_60 = 0x41182" identifier = number_literal) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_44 = param_2;" (assignment_expression "local_44 = param_2" identifier = identifier) ;) (expression_statement "iStack_58 = param_2 >> 0x1f;" (assignment_expression "iStack_58 = param_2 >> 0x1f" identifier = (binary_expression "param_2 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "iStackY_60 = 0x4119b;" (assignment_expression "iStackY_60 = 0x4119b" identifier = number_literal) ;) (expression_statement "local_40[0] = iStack_58;" (assignment_expression "local_40[0] = iStack_58" (subscript_expression "local_40[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = FUN_0004afc0();" (assignment_expression "iVar4 = FUN_0004afc0()" identifier = (call_expression "FUN_0004afc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_38 = sVar3 + 1;" (assignment_expression "local_38 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);" (assignment_expression "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" identifier = (unary_expression "-(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" - (parenthesized_expression "(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" ( (binary_expression "iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0" (binary_expression "iVar4 + 0x1c + sVar3 + 1" (binary_expression "iVar4 + 0x1c + sVar3" (binary_expression "iVar4 + 0x1c" identifier + number_literal) + identifier) + number_literal) & number_literal) )))) ;) (expression_statement "iVar4 = (int)local_40 + iVar1;" (assignment_expression "iVar4 = (int)local_40 + iVar1" identifier = (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(size_t *)(&stack0xffffffac + iVar1) = sVar3;" (assignment_expression "*(size_t *)(&stack0xffffffac + iVar1) = sVar3" (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30;" (assignment_expression "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30" (pointer_expression "*(char **)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(char **)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));" (call_expression "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" identifier (argument_list "(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" ( (pointer_expression "*(void **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(void **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) , (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) ))) ;) (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + sVar3) = 0x3a;" (assignment_expression "*(undefined1 *)(iVar4 + sVar3) = 0x3a" (pointer_expression "*(undefined1 *)(iVar4 + sVar3)" * (cast_expression "(undefined1 *)(iVar4 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + sVar3)" ( (binary_expression "iVar4 + sVar3" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(&stack0xffffffac + iVar1) = local_40[0];" (assignment_expression "*(int *)(&stack0xffffffac + iVar1) = local_40[0]" (pointer_expression "*(int *)(&stack0xffffffac + iVar1)" * (cast_expression "(int *)(&stack0xffffffac + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = local_38;" (assignment_expression "iVar2 = local_38" identifier = identifier) ;) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_0004b020();" (call_expression "FUN_0004b020()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" if (parenthesized_expression "(DAT_000a84f4 == 0)" ( (binary_expression "DAT_000a84f4 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" { (expression_statement "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(undefined4 *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "DAT_000a84f4 = FUN_00029e90();" (assignment_expression "DAT_000a84f4 = FUN_00029e90()" identifier = (call_expression "FUN_00029e90()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*(int **)(&stack0xffffffb0 + iVar1) = &local_28;" (assignment_expression "*(int **)(&stack0xffffffb0 + iVar1) = &local_28" (pointer_expression "*(int **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(int **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;" (assignment_expression "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24" (pointer_expression "*(undefined4 **)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 **)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = FUN_000298a0();" (assignment_expression "iVar5 = FUN_000298a0()" identifier = (call_expression "FUN_000298a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }" { (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "uVar6 = FUN_0005af70();" (assignment_expression "uVar6 = FUN_0005af70()" identifier = (call_expression "FUN_0005af70()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" else (compound_statement "{\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" { (if_statement "if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" { (expression_statement "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;" (assignment_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b" (pointer_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000406d0();" (call_expression "FUN_000406d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;" (assignment_expression "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d" (pointer_expression "*(undefined **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&UNK_0004127d" & 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/* WARNING: Unknown calling convention */\n\nvoid res_register_specs(char *host,int port,robot_specs *specs)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  size_t sStackY_60;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  robot_specs *local_34;\n  char *local_30;\n  robot_specs *old;\n  char *hp_old;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = specs;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = host;\n  sStackY_60 = 0x41182;\n  sVar3 = strlen(host);\n  local_44 = port;\n  local_40[0] = port >> 0x1f;\n  sStackY_60 = 0x4119b;\n  iVar4 = numdigit((longlong)port);\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)(&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc;\n  number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1));\n  if (registered_specs == (hash_table *)0x0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;\n    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));\n  }\n  *(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old;\n  *(char ***)(&stack0xffffffac + iVar1) = &hp_old;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar4;\n  *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8;\n  iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1));\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;\n    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  else {\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void res_register_specs(char *host,int port,robot_specs *specs)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  size_t sStackY_60;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  robot_specs *local_34;\n  char *local_30;\n  robot_specs *old;\n  char *hp_old;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = specs;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = host;\n  sStackY_60 = 0x41182;\n  sVar3 = strlen(host);\n  local_44 = port;\n  local_40[0] = port >> 0x1f;\n  sStackY_60 = 0x4119b;\n  iVar4 = numdigit((longlong)port);\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)(&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc;\n  number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1));\n  if (registered_specs == (hash_table *)0x0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;\n    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));\n  }\n  *(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old;\n  *(char ***)(&stack0xffffffac + iVar1) = &hp_old;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar4;\n  *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8;\n  iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1));\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;\n    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  else {\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "res_register_specs(char *host,int port,robot_specs *specs)" identifier (parameter_list "(char *host,int port,robot_specs *specs)" ( (parameter_declaration "char *host" primitive_type (pointer_declarator "*host" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "robot_specs *specs" type_identifier (pointer_declarator "*specs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  size_t sStackY_60;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  robot_specs *local_34;\n  char *local_30;\n  robot_specs *old;\n  char *hp_old;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = specs;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = host;\n  sStackY_60 = 0x41182;\n  sVar3 = strlen(host);\n  local_44 = port;\n  local_40[0] = port >> 0x1f;\n  sStackY_60 = 0x4119b;\n  iVar4 = numdigit((longlong)port);\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)(&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc;\n  number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1));\n  if (registered_specs == (hash_table *)0x0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;\n    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));\n  }\n  *(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old;\n  *(char ***)(&stack0xffffffac + iVar1) = &hp_old;\n  *(int *)(&stack0xffffffa8 + iVar1) = iVar4;\n  *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n  *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8;\n  iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1));\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;\n    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  else {\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t sStackY_60;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40 [2];" primitive_type (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "robot_specs *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "robot_specs *old;" type_identifier (pointer_declarator "*old" * identifier) ;) (declaration "char *hp_old;" primitive_type (pointer_declarator "*hp_old" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4115b;" (assignment_expression "uStack_14 = 0x4115b" identifier = number_literal) ;) (expression_statement "local_34 = specs;" (assignment_expression "local_34 = specs" 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 "local_30 = host;" (assignment_expression "local_30 = host" identifier = identifier) ;) (expression_statement "sStackY_60 = 0x41182;" (assignment_expression "sStackY_60 = 0x41182" identifier = number_literal) ;) (expression_statement "sVar3 = strlen(host);" (assignment_expression "sVar3 = strlen(host)" identifier = (call_expression "strlen(host)" identifier (argument_list "(host)" ( identifier )))) ;) (expression_statement "local_44 = port;" (assignment_expression "local_44 = port" identifier = identifier) ;) (expression_statement "local_40[0] = port >> 0x1f;" (assignment_expression "local_40[0] = port >> 0x1f" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (binary_expression "port >> 0x1f" identifier >> number_literal)) ;) (expression_statement "sStackY_60 = 0x4119b;" (assignment_expression "sStackY_60 = 0x4119b" identifier = number_literal) ;) (expression_statement "iVar4 = numdigit((longlong)port);" (assignment_expression "iVar4 = numdigit((longlong)port)" identifier = (call_expression "numdigit((longlong)port)" identifier (argument_list "((longlong)port)" ( (cast_expression "(longlong)port" ( (type_descriptor "longlong" type_identifier) ) identifier) )))) ;) (expression_statement "local_38 = sVar3 + 1;" (assignment_expression "local_38 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);" (assignment_expression "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" identifier = (unary_expression "-(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" - (parenthesized_expression "(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" ( (binary_expression "iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0" (binary_expression "iVar4 + 0x1c + sVar3 + 1" (binary_expression "iVar4 + 0x1c + sVar3" (binary_expression "iVar4 + 0x1c" identifier + number_literal) + identifier) + number_literal) & number_literal) )))) ;) (expression_statement "iVar4 = (int)local_40 + iVar1;" (assignment_expression "iVar4 = (int)local_40 + iVar1" identifier = (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(size_t *)(&stack0xffffffac + iVar1) = sVar3;" (assignment_expression "*(size_t *)(&stack0xffffffac + iVar1) = sVar3" (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(char **)(&stack0xffffffa8 + iVar1) = local_30;" (assignment_expression "*(char **)(&stack0xffffffa8 + iVar1) = local_30" (pointer_expression "*(char **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(char **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411c1" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));" (call_expression "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" identifier (argument_list "(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)(&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" ( (pointer_expression "*(void **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(void **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) , (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) ))) ;) (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + sVar3) = 0x3a;" (assignment_expression "*(undefined1 *)(iVar4 + sVar3) = 0x3a" (pointer_expression "*(undefined1 *)(iVar4 + sVar3)" * (cast_expression "(undefined1 *)(iVar4 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + sVar3)" ( (binary_expression "iVar4 + sVar3" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(&stack0xffffffac + iVar1) = local_40[0];" (assignment_expression "*(int *)(&stack0xffffffac + iVar1) = local_40[0]" (pointer_expression "*(int *)(&stack0xffffffac + iVar1)" * (cast_expression "(int *)(&stack0xffffffac + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = local_38;" (assignment_expression "iVar2 = local_38" identifier = identifier) ;) (expression_statement "*(int *)(&stack0xffffffa8 + iVar1) = iVar5;" (assignment_expression "*(int *)(&stack0xffffffa8 + iVar1) = iVar5" (pointer_expression "*(int *)(&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411dc" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1));" (call_expression "number_to_string(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1))" identifier (argument_list "(*(char **)((int)local_40 + iVar1 + -0x1c),*(wgint *)(&stack0xffffffa8 + iVar1))" ( (pointer_expression "*(char **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(char **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(wgint *)(&stack0xffffffa8 + iVar1)" * (cast_expression "(wgint *)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "wgint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) ))) ;) (if_statement "if (registered_specs == (hash_table *)0x0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;\n    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));\n  }" if (parenthesized_expression "(registered_specs == (hash_table *)0x0)" ( (binary_expression "registered_specs == (hash_table *)0x0" identifier == (cast_expression "(hash_table *)0x0" ( (type_descriptor "hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;\n    registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));\n  }" { (expression_statement "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(undefined4 *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4126a" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c));" (assignment_expression "registered_specs = make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c))" identifier = (call_expression "make_nocase_string_hash_table(*(int *)((int)local_40 + iVar1 + -0x1c))" identifier (argument_list "(*(int *)((int)local_40 + iVar1 + -0x1c))" ( (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) })) (expression_statement "*(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old;" (assignment_expression "*(robot_specs ***)(&stack0xffffffb0 + iVar1) = &old" (pointer_expression "*(robot_specs ***)(&stack0xffffffb0 + iVar1)" * (cast_expression "(robot_specs ***)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "robot_specs ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&old" & identifier)) ;) (expression_statement "*(char ***)(&stack0xffffffac + iVar1) = &hp_old;" (assignment_expression "*(char ***)(&stack0xffffffac + iVar1) = &hp_old" (pointer_expression "*(char ***)(&stack0xffffffac + iVar1)" * (cast_expression "(char ***)(&stack0xffffffac + iVar1)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (pointer_expression "&hp_old" & identifier)) ;) (expression_statement "*(int *)(&stack0xffffffa8 + iVar1) = iVar4;" (assignment_expression "*(int *)(&stack0xffffffa8 + iVar1) = iVar4" (pointer_expression "*(int *)(&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;" (assignment_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs" (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x411f8" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1));" (assignment_expression "iVar5 = hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1))" identifier = (call_expression "hash_table_get_pair(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1))" identifier (argument_list "(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                              *(void **)(&stack0xffffffa8 + iVar1),\n                              *(void **)(&stack0xffffffac + iVar1),\n                              *(void **)(&stack0xffffffb0 + iVar1))" ( (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) , (pointer_expression "*(void **)(&stack0xffffffac + iVar1)" * (cast_expression "(void **)(&stack0xffffffac + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) , (pointer_expression "*(void **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(void **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) )))) ;) (if_statement "if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;\n    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }\n  else {\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;\n    pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = pcVar6;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }" { (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x41249" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c));" (assignment_expression "pcVar6 = xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c))" identifier = (call_expression "xstrdup(*(char **)((int)local_40 + iVar1 + -0x1c))" identifier (argument_list "(*(char **)((int)local_40 + iVar1 + -0x1c))" ( (pointer_expression "*(char **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(char **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "*(robot_specs **)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(robot_specs **)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(robot_specs **)(&stack0xffffffac + iVar1)" * (cast_expression "(robot_specs **)(&stack0xffffffac + iVar1)" ( (type_descriptor "robot_specs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(char **)(&stack0xffffffa8 + iVar1) = pcVar6;" (assignment_expression "*(char **)(&stack0xffffffa8 + iVar1) = pcVar6" (pointer_expression "*(char **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(char **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;" (assignment_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs" (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4125b" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));" (call_expression "hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1))" identifier (argument_list "(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1))" ( (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) , (pointer_expression "*(void **)(&stack0xffffffac + iVar1)" * (cast_expression "(void **)(&stack0xffffffac + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) ))) ;) }) (else_clause "else {\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }" else (compound_statement "{\n    if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }\n    *(robot_specs **)(&stack0xffffffac + iVar1) = local_34;\n    *(char **)(&stack0xffffffa8 + iVar1) = hp_old;\n    *(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;\n    *(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;\n    hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));\n  }" { (if_statement "if (old != (robot_specs *)0x0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }" if (parenthesized_expression "(old != (robot_specs *)0x0)" ( (binary_expression "old != (robot_specs *)0x0" identifier != (cast_expression "(robot_specs *)0x0" ( (type_descriptor "robot_specs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      free_specs(old);\n    }" { (expression_statement "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;" (assignment_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b" (pointer_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = number_literal) ;) (expression_statement "free_specs(old);" (call_expression "free_specs(old)" identifier (argument_list "(old)" ( identifier ))) ;) })) (expression_statement "*(robot_specs **)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(robot_specs **)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(robot_specs **)(&stack0xffffffac + iVar1)" * (cast_expression "(robot_specs **)(&stack0xffffffac + iVar1)" ( (type_descriptor "robot_specs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(char **)(&stack0xffffffa8 + iVar1) = hp_old;" (assignment_expression "*(char **)(&stack0xffffffa8 + iVar1) = hp_old" (pointer_expression "*(char **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(char **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs;" (assignment_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c) = registered_specs" (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f;" (assignment_expression "*(undefined4 *)((int)&sStackY_60 + iVar1) = 0x4121f" (pointer_expression "*(undefined4 *)((int)&sStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&sStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&sStackY_60 + iVar1)" ( (binary_expression "(int)&sStackY_60 + iVar1" (cast_expression "(int)&sStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&sStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1));" (call_expression "hash_table_put(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1))" identifier (argument_list "(*(hash_table **)((int)local_40 + iVar1 + -0x1c),\n                   *(void **)(&stack0xffffffa8 + iVar1),*(void **)(&stack0xffffffac + iVar1))" ( (pointer_expression "*(hash_table **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(hash_table **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)(&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)(&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffa8 + iVar1)" ( (binary_expression "&stack0xffffffa8 + iVar1" (pointer_expression "&stack0xffffffa8" & identifier) + identifier) )))) , (pointer_expression "*(void **)(&stack0xffffffac + iVar1)" * (cast_expression "(void **)(&stack0xffffffac + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;" (assignment_expression "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d" (pointer_expression "*(undefined **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&UNK_0004127d" & identifier)) ;) (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00041150(char *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}\n\n" (function_definition "void FUN_00041150(char *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_00041150(char *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(char *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iStackY_60;" primitive_type identifier ;) (declaration "int iStack_58;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40 [2];" primitive_type (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4115b;" (assignment_expression "uStack_14 = 0x4115b" identifier = number_literal) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" 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 "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (expression_statement "iStackY_60 = 0x41182;" (assignment_expression "iStackY_60 = 0x41182" identifier = number_literal) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_44 = param_2;" (assignment_expression "local_44 = param_2" identifier = identifier) ;) (expression_statement "iStack_58 = param_2 >> 0x1f;" (assignment_expression "iStack_58 = param_2 >> 0x1f" identifier = (binary_expression "param_2 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "iStackY_60 = 0x4119b;" (assignment_expression "iStackY_60 = 0x4119b" identifier = number_literal) ;) (expression_statement "local_40[0] = iStack_58;" (assignment_expression "local_40[0] = iStack_58" (subscript_expression "local_40[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = FUN_0004afc0();" (assignment_expression "iVar4 = FUN_0004afc0()" identifier = (call_expression "FUN_0004afc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_38 = sVar3 + 1;" (assignment_expression "local_38 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);" (assignment_expression "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" identifier = (unary_expression "-(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" - (parenthesized_expression "(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" ( (binary_expression "iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0" (binary_expression "iVar4 + 0x1c + sVar3 + 1" (binary_expression "iVar4 + 0x1c + sVar3" (binary_expression "iVar4 + 0x1c" identifier + number_literal) + identifier) + number_literal) & number_literal) )))) ;) (expression_statement "iVar4 = (int)local_40 + iVar1;" (assignment_expression "iVar4 = (int)local_40 + iVar1" identifier = (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "*(size_t *)(&stack0xffffffac + iVar1) = sVar3;" (assignment_expression "*(size_t *)(&stack0xffffffac + iVar1) = sVar3" (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30;" (assignment_expression "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30" (pointer_expression "*(char **)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(char **)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));" (call_expression "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" identifier (argument_list "(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" ( (pointer_expression "*(void **)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(void **)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(void **)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(void **)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) , (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" * (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) ))) ;) (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + sVar3) = 0x3a;" (assignment_expression "*(undefined1 *)(iVar4 + sVar3) = 0x3a" (pointer_expression "*(undefined1 *)(iVar4 + sVar3)" * (cast_expression "(undefined1 *)(iVar4 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + sVar3)" ( (binary_expression "iVar4 + sVar3" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(&stack0xffffffac + iVar1) = local_40[0];" (assignment_expression "*(int *)(&stack0xffffffac + iVar1) = local_40[0]" (pointer_expression "*(int *)(&stack0xffffffac + iVar1)" * (cast_expression "(int *)(&stack0xffffffac + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = local_38;" (assignment_expression "iVar2 = local_38" identifier = identifier) ;) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_0004b020();" (call_expression "FUN_0004b020()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" if (parenthesized_expression "(DAT_000a84f4 == 0)" ( (binary_expression "DAT_000a84f4 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" { (expression_statement "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(undefined4 *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "DAT_000a84f4 = FUN_00029e90();" (assignment_expression "DAT_000a84f4 = FUN_00029e90()" identifier = (call_expression "FUN_00029e90()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*(int **)(&stack0xffffffb0 + iVar1) = &local_28;" (assignment_expression "*(int **)(&stack0xffffffb0 + iVar1) = &local_28" (pointer_expression "*(int **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(int **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;" (assignment_expression "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24" (pointer_expression "*(undefined4 **)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 **)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = FUN_000298a0();" (assignment_expression "iVar5 = FUN_000298a0()" identifier = (call_expression "FUN_000298a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }" { (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "uVar6 = FUN_0005af70();" (assignment_expression "uVar6 = FUN_0005af70()" identifier = (call_expression "FUN_0005af70()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" else (compound_statement "{\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" { (if_statement "if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" { (expression_statement "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;" (assignment_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b" (pointer_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000406d0();" (call_expression "FUN_000406d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" * (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&stack0xffffffac + iVar1)" ( (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" & identifier) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" * (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" ( (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&stack0xffffffa8" & identifier)) + identifier) )))) = identifier) ;) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" * (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" ( (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" * (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&iStackY_60 + iVar1)" ( (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iStackY_60" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;" (assignment_expression "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d" (pointer_expression "*(undefined **)(&stack0xffffffb0 + iVar1)" * (cast_expression "(undefined **)(&stack0xffffffb0 + iVar1)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&stack0xffffffb0 + iVar1)" ( (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" & identifier) + identifier) )))) = (pointer_expression "&UNK_0004127d" & identifier)) ;) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT + LIT) + IDENT) + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (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 (pointer_expression & IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + 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 (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & 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 (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression 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) ) (pointer_expression & IDENT)) + 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) )))) = (binary_expression 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) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + 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 (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + 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) ) (pointer_expression & IDENT)) + 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 (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + 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) ) (pointer_expression & IDENT)) + 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 (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00041150(char *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" (primitive_type "void") (function_declarator "FUN_00041150(char *param_1,int param_2,undefined4 param_3)" (identifier "FUN_00041150") (parameter_list "(char *param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  int iStackY_60;\n  int iStack_58;\n  int local_44;\n  int local_40 [2];\n  int local_38;\n  undefined4 local_34;\n  char *local_30;\n  int local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4115b;\n  local_34 = param_3;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = param_1;\n  iStackY_60 = 0x41182;\n  sVar3 = strlen(param_1);\n  local_44 = param_2;\n  iStack_58 = param_2 >> 0x1f;\n  iStackY_60 = 0x4119b;\n  local_40[0] = iStack_58;\n  iVar4 = FUN_0004afc0();\n  local_38 = sVar3 + 1;\n  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);\n  iVar4 = (int)local_40 + iVar1;\n  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;\n  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;\n  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));\n  iVar5 = local_44;\n  *(undefined1 *)(iVar4 + sVar3) = 0x3a;\n  *(int *)(&stack0xffffffac + iVar1) = local_40[0];\n  iVar2 = local_38;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;\n  FUN_0004b020();\n  if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }\n  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;\n  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;\n  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;\n  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;\n  iVar5 = FUN_000298a0();\n  if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;\n  FUN_0006da50();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int iStackY_60;" (primitive_type "int") (identifier "iStackY_60") (; ";")) (declaration "int iStack_58;" (primitive_type "int") (identifier "iStack_58") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40 [2];" (primitive_type "int") (array_declarator "local_40 [2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "char *local_30;" (primitive_type "char") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x4115b;" (assignment_expression "uStack_14 = 0x4115b" (identifier "uStack_14") (= "=") (number_literal "0x4115b")) (; ";")) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" (identifier "local_34") (= "=") (identifier "param_3")) (; ";")) (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 "local_30 = param_1;" (assignment_expression "local_30 = param_1" (identifier "local_30") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iStackY_60 = 0x41182;" (assignment_expression "iStackY_60 = 0x41182" (identifier "iStackY_60") (= "=") (number_literal "0x41182")) (; ";")) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_44 = param_2;" (assignment_expression "local_44 = param_2" (identifier "local_44") (= "=") (identifier "param_2")) (; ";")) (expression_statement "iStack_58 = param_2 >> 0x1f;" (assignment_expression "iStack_58 = param_2 >> 0x1f" (identifier "iStack_58") (= "=") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iStackY_60 = 0x4119b;" (assignment_expression "iStackY_60 = 0x4119b" (identifier "iStackY_60") (= "=") (number_literal "0x4119b")) (; ";")) (expression_statement "local_40[0] = iStack_58;" (assignment_expression "local_40[0] = iStack_58" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "iStack_58")) (; ";")) (expression_statement "iVar4 = FUN_0004afc0();" (assignment_expression "iVar4 = FUN_0004afc0()" (identifier "iVar4") (= "=") (call_expression "FUN_0004afc0()" (identifier "FUN_0004afc0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_38 = sVar3 + 1;" (assignment_expression "local_38 = sVar3 + 1" (identifier "local_38") (= "=") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);" (assignment_expression "iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" (identifier "iVar1") (= "=") (unary_expression "-(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" (- "-") (parenthesized_expression "(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0)" (( "(") (binary_expression "iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0" (binary_expression "iVar4 + 0x1c + sVar3 + 1" (binary_expression "iVar4 + 0x1c + sVar3" (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) (+ "+") (identifier "sVar3")) (+ "+") (number_literal "1")) (& "&") (number_literal "0xfffffff0")) () ")")))) (; ";")) (expression_statement "iVar4 = (int)local_40 + iVar1;" (assignment_expression "iVar4 = (int)local_40 + iVar1" (identifier "iVar4") (= "=") (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(size_t *)(&stack0xffffffac + iVar1) = sVar3;" (assignment_expression "*(size_t *)(&stack0xffffffac + iVar1) = sVar3" (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "sVar3")) (; ";")) (expression_statement "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30;" (assignment_expression "*(char **)((int)&stack0xffffffa8 + iVar1) = local_30" (pointer_expression "*(char **)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(char **)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x411c1")) (; ";")) (expression_statement "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1));" (call_expression "memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" (identifier "memcpy") (argument_list "(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),\n         *(size_t *)(&stack0xffffffac + iVar1))" (( "(") (pointer_expression "*(void **)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(void **)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (, ",") (pointer_expression "*(void **)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(void **)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (, ",") (pointer_expression "*(size_t *)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(size_t *)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" (identifier "iVar5") (= "=") (identifier "local_44")) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + sVar3) = 0x3a;" (assignment_expression "*(undefined1 *)(iVar4 + sVar3) = 0x3a" (pointer_expression "*(undefined1 *)(iVar4 + sVar3)" (* "*") (cast_expression "(undefined1 *)(iVar4 + sVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + sVar3)" (( "(") (binary_expression "iVar4 + sVar3" (identifier "iVar4") (+ "+") (identifier "sVar3")) () ")")))) (= "=") (number_literal "0x3a")) (; ";")) (expression_statement "*(int *)(&stack0xffffffac + iVar1) = local_40[0];" (assignment_expression "*(int *)(&stack0xffffffac + iVar1) = local_40[0]" (pointer_expression "*(int *)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(int *)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "iVar2 = local_38;" (assignment_expression "iVar2 = local_38" (identifier "iVar2") (= "=") (identifier "local_38")) (; ";")) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar5" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (binary_expression "iVar4 + iVar2" (identifier "iVar4") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x411dc")) (; ";")) (expression_statement "FUN_0004b020();" (call_expression "FUN_0004b020()" (identifier "FUN_0004b020") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (DAT_000a84f4 == 0) {\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" (if "if") (parenthesized_expression "(DAT_000a84f4 == 0)" (( "(") (binary_expression "DAT_000a84f4 == 0" (identifier "DAT_000a84f4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;\n    DAT_000a84f4 = FUN_00029e90();\n  }" ({ "{") (expression_statement "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(undefined4 *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x4126a")) (; ";")) (expression_statement "DAT_000a84f4 = FUN_00029e90();" (assignment_expression "DAT_000a84f4 = FUN_00029e90()" (identifier "DAT_000a84f4") (= "=") (call_expression "FUN_00029e90()" (identifier "FUN_00029e90") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "*(int **)(&stack0xffffffb0 + iVar1) = &local_28;" (assignment_expression "*(int **)(&stack0xffffffb0 + iVar1) = &local_28" (pointer_expression "*(int **)(&stack0xffffffb0 + iVar1)" (* "*") (cast_expression "(int **)(&stack0xffffffb0 + iVar1)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&stack0xffffffb0 + iVar1)" (( "(") (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" (& "&") (identifier "stack0xffffffb0")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (expression_statement "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;" (assignment_expression "*(undefined4 **)(&stack0xffffffac + iVar1) = &local_24" (pointer_expression "*(undefined4 **)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(undefined4 **)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (; ";")) (expression_statement "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;" (assignment_expression "*(int *)((int)&stack0xffffffa8 + iVar1) = iVar4" (pointer_expression "*(int *)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(int *)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "DAT_000a84f4")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x411f8")) (; ";")) (expression_statement "iVar5 = FUN_000298a0();" (assignment_expression "iVar5 = FUN_000298a0()" (identifier "iVar5") (= "=") (call_expression "FUN_000298a0()" (identifier "FUN_000298a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }\n  else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;\n    uVar6 = FUN_0005af70();\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;\n    FUN_000299b0();\n  }" ({ "{") (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = iVar4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x41249")) (; ";")) (expression_statement "uVar6 = FUN_0005af70();" (assignment_expression "uVar6 = FUN_0005af70()" (identifier "uVar6") (= "=") (call_expression "FUN_0005af70()" (identifier "FUN_0005af70") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "DAT_000a84f4")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x4125b")) (; ";")) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" (identifier "FUN_000299b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" (else "else") (compound_statement "{\n    if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }\n    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;\n    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;\n    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;\n    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;\n    FUN_000299b0();\n  }" ({ "{") (if_statement "if (local_28 != 0) {\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;\n      FUN_000406d0();\n    }" ({ "{") (expression_statement "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;" (assignment_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b" (pointer_expression "*(undefined4 *)(&stack0xffffffb0 + iVar1)" (* "*") (cast_expression "(undefined4 *)(&stack0xffffffb0 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffb0 + iVar1)" (( "(") (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" (& "&") (identifier "stack0xffffffb0")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x4120b")) (; ";")) (expression_statement "FUN_000406d0();" (call_expression "FUN_000406d0()" (identifier "FUN_000406d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34;" (assignment_expression "*(undefined4 *)(&stack0xffffffac + iVar1) = local_34" (pointer_expression "*(undefined4 *)(&stack0xffffffac + iVar1)" (* "*") (cast_expression "(undefined4 *)(&stack0xffffffac + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&stack0xffffffac + iVar1)" (( "(") (binary_expression "&stack0xffffffac + iVar1" (pointer_expression "&stack0xffffffac" (& "&") (identifier "stack0xffffffac")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (expression_statement "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;" (assignment_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24" (pointer_expression "*(undefined4 *)((int)&stack0xffffffa8 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&stack0xffffffa8 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&stack0xffffffa8 + iVar1)" (( "(") (binary_expression "(int)&stack0xffffffa8 + iVar1" (cast_expression "(int)&stack0xffffffa8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&stack0xffffffa8" (& "&") (identifier "stack0xffffffa8"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;" (assignment_expression "*(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4" (pointer_expression "*(int *)((int)local_40 + iVar1 + -0x1c)" (* "*") (cast_expression "(int *)((int)local_40 + iVar1 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + iVar1 + -0x1c)" (( "(") (binary_expression "(int)local_40 + iVar1 + -0x1c" (binary_expression "(int)local_40 + iVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "DAT_000a84f4")) (; ";")) (expression_statement "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;" (assignment_expression "*(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f" (pointer_expression "*(undefined4 *)((int)&iStackY_60 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)&iStackY_60 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&iStackY_60 + iVar1)" (( "(") (binary_expression "(int)&iStackY_60 + iVar1" (cast_expression "(int)&iStackY_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&iStackY_60" (& "&") (identifier "iStackY_60"))) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x4121f")) (; ";")) (expression_statement "FUN_000299b0();" (call_expression "FUN_000299b0()" (identifier "FUN_000299b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;" (assignment_expression "*(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d" (pointer_expression "*(undefined **)(&stack0xffffffb0 + iVar1)" (* "*") (cast_expression "(undefined **)(&stack0xffffffb0 + iVar1)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&stack0xffffffb0 + iVar1)" (( "(") (binary_expression "&stack0xffffffb0 + iVar1" (pointer_expression "&stack0xffffffb0" (& "&") (identifier "stack0xffffffb0")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (pointer_expression "&UNK_0004127d" (& "&") (identifier "UNK_0004127d"))) (; ";")) (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 */
/* WARNING: Unknown calling convention */

void function_1(char *host,int var_3,type_1 *specs)

{
  int var_7;
  int var_9;
  size_t var_5;
  int var_6;
  int var_14;
  char *pcVar6;
  int var_1;
  size_t sStackY_60;
  int local_44;
  int local_40 [2];
  int local_38;
  type_1 *local_34;
  char *local_30;
  type_1 *var_17;
  char *hp_old;
  int var_19;
  type_2 uStack_14;
  
  uStack_14 = 0x4115b;
  local_34 = specs;
  var_19 = *(int *)(var_1 + 0x14);
  local_30 = host;
  sStackY_60 = 0x41182;
  var_5 = var_2(host);
  local_44 = var_3;
  local_40[0] = var_3 >> 0x1f;
  sStackY_60 = 0x4119b;
  var_6 = var_4((type_3)var_3);
  local_38 = var_5 + 1;
  var_7 = -(var_6 + 0x1c + var_5 + 1 & 0xfffffff0);
  var_6 = (int)local_40 + var_7;
  *(size_t *)(&stack0xffffffac + var_7) = var_5;
  *(char **)(&stack0xffffffa8 + var_7) = local_30;
  *(int *)((int)local_40 + var_7 + -0x1c) = var_6;
  *(type_2 *)((int)&sStackY_60 + var_7) = 0x411c1;
  var_8(*(void **)((int)local_40 + var_7 + -0x1c),*(void **)(&stack0xffffffa8 + var_7),
         *(size_t *)(&stack0xffffffac + var_7));
  var_14 = local_44;
  *(type_4 *)(var_6 + var_5) = 0x3a;
  *(int *)(&stack0xffffffac + var_7) = local_40[0];
  var_9 = local_38;
  *(int *)(&stack0xffffffa8 + var_7) = var_14;
  *(int *)((int)local_40 + var_7 + -0x1c) = var_6 + var_9;
  *(type_2 *)((int)&sStackY_60 + var_7) = 0x411dc;
  var_10(*(char **)((int)local_40 + var_7 + -0x1c),*(type_5 *)(&stack0xffffffa8 + var_7));
  if (var_11 == (type_6 *)0x0) {
    *(type_2 *)((int)local_40 + var_7 + -0x1c) = 0;
    *(type_2 *)((int)&sStackY_60 + var_7) = 0x4126a;
    var_11 = var_12(*(int *)((int)local_40 + var_7 + -0x1c));
  }
  *(type_1 ***)(&stack0xffffffb0 + var_7) = &var_17;
  *(char ***)(&stack0xffffffac + var_7) = &hp_old;
  *(int *)(&stack0xffffffa8 + var_7) = var_6;
  *(type_6 **)((int)local_40 + var_7 + -0x1c) = var_11;
  *(type_2 *)((int)&sStackY_60 + var_7) = 0x411f8;
  var_14 = var_13(*(type_6 **)((int)local_40 + var_7 + -0x1c),
                              *(void **)(&stack0xffffffa8 + var_7),
                              *(void **)(&stack0xffffffac + var_7),
                              *(void **)(&stack0xffffffb0 + var_7));
  if (var_14 == 0) {
    *(int *)((int)local_40 + var_7 + -0x1c) = var_6;
    *(type_2 *)((int)&sStackY_60 + var_7) = 0x41249;
    pcVar6 = var_15(*(char **)((int)local_40 + var_7 + -0x1c));
    *(type_1 **)(&stack0xffffffac + var_7) = local_34;
    *(char **)(&stack0xffffffa8 + var_7) = pcVar6;
    *(type_6 **)((int)local_40 + var_7 + -0x1c) = var_11;
    *(type_2 *)((int)&sStackY_60 + var_7) = 0x4125b;
    var_16(*(type_6 **)((int)local_40 + var_7 + -0x1c),
                   *(void **)(&stack0xffffffa8 + var_7),*(void **)(&stack0xffffffac + var_7));
  }
  else {
    if (var_17 != (type_1 *)0x0) {
      *(type_2 *)(&stack0xffffffb0 + var_7) = 0x4120b;
      var_18(var_17);
    }
    *(type_1 **)(&stack0xffffffac + var_7) = local_34;
    *(char **)(&stack0xffffffa8 + var_7) = hp_old;
    *(type_6 **)((int)local_40 + var_7 + -0x1c) = var_11;
    *(type_2 *)((int)&sStackY_60 + var_7) = 0x4121f;
    var_16(*(type_6 **)((int)local_40 + var_7 + -0x1c),
                   *(void **)(&stack0xffffffa8 + var_7),*(void **)(&stack0xffffffac + var_7));
  }
  if (var_19 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(type_7 **)(&stack0xffffffb0 + var_7) = &UNK_0004127d;
  var_20();
}


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

void MASKED(char *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  int in_GS_OFFSET;
  int iStackY_60;
  int iStack_58;
  int local_44;
  int local_40 [2];
  int local_38;
  undefined4 local_34;
  char *local_30;
  int local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4115b;
  local_34 = param_3;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = param_1;
  iStackY_60 = 0x41182;
  sVar3 = strlen(param_1);
  local_44 = param_2;
  iStack_58 = param_2 >> 0x1f;
  iStackY_60 = 0x4119b;
  local_40[0] = iStack_58;
  iVar4 = FUN_0004afc0();
  local_38 = sVar3 + 1;
  iVar1 = -(iVar4 + 0x1c + sVar3 + 1 & 0xfffffff0);
  iVar4 = (int)local_40 + iVar1;
  *(size_t *)(&stack0xffffffac + iVar1) = sVar3;
  *(char **)((int)&stack0xffffffa8 + iVar1) = local_30;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411c1;
  memcpy(*(void **)((int)local_40 + iVar1 + -0x1c),*(void **)((int)&stack0xffffffa8 + iVar1),
         *(size_t *)(&stack0xffffffac + iVar1));
  iVar5 = local_44;
  *(undefined1 *)(iVar4 + sVar3) = 0x3a;
  *(int *)(&stack0xffffffac + iVar1) = local_40[0];
  iVar2 = local_38;
  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar5;
  *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4 + iVar2;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411dc;
  FUN_0004b020();
  if (DAT_000a84f4 == 0) {
    *(undefined4 *)((int)local_40 + iVar1 + -0x1c) = 0;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4126a;
    DAT_000a84f4 = FUN_00029e90();
  }
  *(int **)(&stack0xffffffb0 + iVar1) = &local_28;
  *(undefined4 **)(&stack0xffffffac + iVar1) = &local_24;
  *(int *)((int)&stack0xffffffa8 + iVar1) = iVar4;
  *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
  *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x411f8;
  iVar5 = FUN_000298a0();
  if (iVar5 == 0) {
    *(int *)((int)local_40 + iVar1 + -0x1c) = iVar4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x41249;
    uVar6 = FUN_0005af70();
    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;
    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = uVar6;
    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4125b;
    FUN_000299b0();
  }
  else {
    if (local_28 != 0) {
      *(undefined4 *)(&stack0xffffffb0 + iVar1) = 0x4120b;
      FUN_000406d0();
    }
    *(undefined4 *)(&stack0xffffffac + iVar1) = local_34;
    *(undefined4 *)((int)&stack0xffffffa8 + iVar1) = local_24;
    *(int *)((int)local_40 + iVar1 + -0x1c) = DAT_000a84f4;
    *(undefined4 *)((int)&iStackY_60 + iVar1) = 0x4121f;
    FUN_000299b0();
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(&stack0xffffffb0 + iVar1) = &UNK_0004127d;
  FUN_0006da50();
}

