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

void __regparm3 intfield(uint8_t *pageaddr,int nbytes,char *text)

{
  uint64_t *puVar1;
  int iVar2;
  int in_GS_OFFSET;
  char reason [128];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (x_interface == '\0') {
    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);
  }
  else if (replace == '\0') {
    __printf_chk(1,&DAT_0001f07b,*pageaddr);
  }
  else {
    puVar1 = replacement_values + next_parameter;
    if (is_hex[next_parameter] != '\0') {
      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",
                     next_parameter,(int)*puVar1,
                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));
                    /* WARNING: Subroutine does not return */
      usage(reason);
    }
    next_parameter = next_parameter + 1;
    *pageaddr = (uint8_t)(int)*puVar1;
  }
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_90 [128];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x14e57;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0005076b == '\0') {
    __printf_chk(1,"%-35s%d\n",param_2,*param_1);
  }
  else if (DAT_0005076d == '\0') {
    __printf_chk(1,&DAT_0001f07b,*param_1);
  }
  else {
    iVar1 = DAT_00050764 * 8;
    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {
      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"
                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),
                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));
                    /* WARNING: Subroutine does not return */
      FUN_00012bd0();
    }
    DAT_00050764 = DAT_00050764 + 1;
    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001ee20();
}


PUSH ESI
PUSH EBX
CALL 0x000129c0
ADD EBX,0x130e1
SUB ESP,0x94
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x8c],ECX
XOR ECX,ECX
CMP byte ptr [EBX + 0x28833],0x0
JNZ 0x00014eb0
MOVZX EAX,byte ptr [EAX]
PUSH EAX
LEA EAX,[EBX + 0xffff713a]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x000111c0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00014f03
ADD ESP,0x94
POP EBX
POP ESI
RET
CMP byte ptr [EBX + 0x28835],0x0
JNZ 0x00014ed8
MOVZX EAX,byte ptr [EAX]
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff7143]
PUSH EAX
PUSH 0x1
CALL 0x000111c0
ADD ESP,0x10
JMP 0x00014e92
MOV ESI,dword ptr [EBX + 0x2882c]
CMP byte ptr [EBX + ESI*0x1 + 0x285e8],0x0
MOV EDX,dword ptr [EBX + ESI*0x8 + 0x28628]
MOV ECX,dword ptr [EBX + ESI*0x8 + 0x2862c]
JNZ 0x00014f08
ADD ESI,0x1
MOV byte ptr [EAX],DL
MOV dword ptr [EBX + 0x2882c],ESI
JMP 0x00014e92
CALL 0x0001ee20
LEA EAX,[EBX + 0xffff9478]
PUSH ECX
PUSH EDX
PUSH ESI
PUSH EAX
PUSH 0x80
PUSH 0x1
PUSH 0x80
LEA ESI,[ESP + 0x28]
PUSH ESI
CALL 0x00011050
ADD ESP,0x20
MOV EAX,ESI
CALL 0x00012bd0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001ee20();\n}\n\n" comment (function_definition "void __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001ee20();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014e50(undefined1 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001ee20();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_90 [128];" type_identifier (array_declarator "local_90 [128]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x14e57;" (assignment_expression "uStack_c = 0x14e57" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" if (parenthesized_expression "(DAT_0005076b == '\0')" ( (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }" { (expression_statement "__printf_chk(1,"%-35s%d\n",param_2,*param_1);" (call_expression "__printf_chk(1,"%-35s%d\n",param_2,*param_1)" identifier (argument_list "(1,"%-35s%d\n",param_2,*param_1)" ( number_literal , (string_literal ""%-35s%d\n"" " string_content escape_sequence ") , identifier , (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" else (if_statement "if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" if (parenthesized_expression "(DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001f07b,*param_1);" (call_expression "__printf_chk(1,&DAT_0001f07b,*param_1)" identifier (argument_list "(1,&DAT_0001f07b,*param_1)" ( number_literal , (pointer_expression "&DAT_0001f07b" & identifier) , (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" else (compound_statement "{\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" { (expression_statement "iVar1 = DAT_00050764 * 8;" (assignment_expression "iVar1 = DAT_00050764 * 8" identifier = (binary_expression "DAT_00050764 * 8" identifier * number_literal)) ;) (if_statement "if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }" if (parenthesized_expression "(*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0')" ( (binary_expression "*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0'" (pointer_expression "*(char *)((int)&DAT_00050520 + DAT_00050764)" * (cast_expression "(char *)((int)&DAT_00050520 + DAT_00050764)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_00050520 + DAT_00050764)" ( (binary_expression "(int)&DAT_00050520 + DAT_00050764" (cast_expression "(int)&DAT_00050520" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_00050520" & identifier)) + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    /* WARNING: Subroutine does not return */\n      FUN_00012bd0();\n    }" { (expression_statement "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));" (call_expression "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" identifier (argument_list "(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" ( identifier , number_literal , number_literal , number_literal , (string_literal ""@ hexdatafield (pos %i) instead of a simple number: %llu"" " string_content ") , identifier , (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" * (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050560 + iVar1)" ( (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" & identifier) + identifier) )))) , (pointer_expression "*(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" * (cast_expression "(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050564 + DAT_00050764 * 8)" ( (binary_expression "&DAT_00050564 + DAT_00050764 * 8" (pointer_expression "&DAT_00050564" & identifier) + (binary_expression "DAT_00050764 * 8" identifier * number_literal)) )))) ))) ;) comment (expression_statement "FUN_00012bd0();" (call_expression "FUN_00012bd0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_00050764 = DAT_00050764 + 1;" (assignment_expression "DAT_00050764 = DAT_00050764 + 1" identifier = (binary_expression "DAT_00050764 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);" (assignment_expression "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)*(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" * (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050560 + iVar1)" ( (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" & identifier) + identifier) )))))) ;) }))))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 intfield(uint8_t *pageaddr,int nbytes,char *text)\n\n{\n  uint64_t *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  char reason [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (x_interface == '\0') {\n    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);\n  }\n  else if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void __regparm3 intfield(uint8_t *pageaddr,int nbytes,char *text)\n\n{\n  uint64_t *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  char reason [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (x_interface == '\0') {\n    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);\n  }\n  else if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "intfield(uint8_t *pageaddr,int nbytes,char *text)" identifier (parameter_list "(uint8_t *pageaddr,int nbytes,char *text)" ( (parameter_declaration "uint8_t *pageaddr" primitive_type (pointer_declarator "*pageaddr" * identifier)) , (parameter_declaration "int nbytes" primitive_type identifier) , (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) ))) (compound_statement "{\n  uint64_t *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  char reason [128];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (x_interface == '\0') {\n    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);\n  }\n  else if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uint64_t *puVar1;" primitive_type (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char reason [128];" primitive_type (array_declarator "reason [128]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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) ))))) ;) (if_statement "if (x_interface == '\0') {\n    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);\n  }\n  else if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }" if (parenthesized_expression "(x_interface == '\0')" ( (binary_expression "x_interface == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);\n  }" { (expression_statement "__printf_chk(1,"%-35s%d\n",nbytes,*pageaddr);" (call_expression "__printf_chk(1,"%-35s%d\n",nbytes,*pageaddr)" identifier (argument_list "(1,"%-35s%d\n",nbytes,*pageaddr)" ( number_literal , (string_literal ""%-35s%d\n"" " string_content escape_sequence ") , identifier , (pointer_expression "*pageaddr" * identifier) ))) ;) }) (else_clause "else if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }" else (if_statement "if (replace == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }\n  else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }" if (parenthesized_expression "(replace == '\0')" ( (binary_expression "replace == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001f07b,*pageaddr);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001f07b,*pageaddr);" (call_expression "__printf_chk(1,&DAT_0001f07b,*pageaddr)" identifier (argument_list "(1,&DAT_0001f07b,*pageaddr)" ( number_literal , (pointer_expression "&DAT_0001f07b" & identifier) , (pointer_expression "*pageaddr" * identifier) ))) ;) }) (else_clause "else {\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }" else (compound_statement "{\n    puVar1 = replacement_values + next_parameter;\n    if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }\n    next_parameter = next_parameter + 1;\n    *pageaddr = (uint8_t)(int)*puVar1;\n  }" { (expression_statement "puVar1 = replacement_values + next_parameter;" (assignment_expression "puVar1 = replacement_values + next_parameter" identifier = (binary_expression "replacement_values + next_parameter" identifier + identifier)) ;) (if_statement "if (is_hex[next_parameter] != '\0') {\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }" if (parenthesized_expression "(is_hex[next_parameter] != '\0')" ( (binary_expression "is_hex[next_parameter] != '\0'" (subscript_expression "is_hex[next_parameter]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      __snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));\n                    /* WARNING: Subroutine does not return */\n      usage(reason);\n    }" { (expression_statement "__snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4));" (call_expression "__snprintf_chk(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4))" identifier (argument_list "(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",\n                     next_parameter,(int)*puVar1,\n                     *(undefined4 *)((int)replacement_values + next_parameter * 8 + 4))" ( identifier , number_literal , number_literal , number_literal , (string_literal ""@ hexdatafield (pos %i) instead of a simple number: %llu"" " string_content ") , identifier , (cast_expression "(int)*puVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*puVar1" * identifier)) , (pointer_expression "*(undefined4 *)((int)replacement_values + next_parameter * 8 + 4)" * (cast_expression "(undefined4 *)((int)replacement_values + next_parameter * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)replacement_values + next_parameter * 8 + 4)" ( (binary_expression "(int)replacement_values + next_parameter * 8 + 4" (binary_expression "(int)replacement_values + next_parameter * 8" (cast_expression "(int)replacement_values" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "next_parameter * 8" identifier * number_literal)) + number_literal) )))) ))) ;) comment (expression_statement "usage(reason);" (call_expression "usage(reason)" identifier (argument_list "(reason)" ( identifier ))) ;) })) (expression_statement "next_parameter = next_parameter + 1;" (assignment_expression "next_parameter = next_parameter + 1" identifier = (binary_expression "next_parameter + 1" identifier + number_literal)) ;) (expression_statement "*pageaddr = (uint8_t)(int)*puVar1;" (assignment_expression "*pageaddr = (uint8_t)(int)*puVar1" (pointer_expression "*pageaddr" * identifier) = (cast_expression "(uint8_t)(int)*puVar1" ( (type_descriptor "uint8_t" primitive_type) ) (cast_expression "(int)*puVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*puVar1" * identifier)))) ;) }))))) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(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 "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0001ee20();\n}\n\n" (function_definition "void __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0001ee20();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014e50(undefined1 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0001ee20();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_90 [128];" type_identifier (array_declarator "local_90 [128]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x14e57;" (assignment_expression "uStack_c = 0x14e57" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" if (parenthesized_expression "(DAT_0005076b == '\0')" ( (binary_expression "DAT_0005076b == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }" { (expression_statement "__printf_chk(1,"%-35s%d\n",param_2,*param_1);" (call_expression "__printf_chk(1,"%-35s%d\n",param_2,*param_1)" identifier (argument_list "(1,"%-35s%d\n",param_2,*param_1)" ( number_literal , (string_literal ""%-35s%d\n"" " string_content escape_sequence ") , identifier , (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" else (if_statement "if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" if (parenthesized_expression "(DAT_0005076d == '\0')" ( (binary_expression "DAT_0005076d == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001f07b,*param_1);" (call_expression "__printf_chk(1,&DAT_0001f07b,*param_1)" identifier (argument_list "(1,&DAT_0001f07b,*param_1)" ( number_literal , (pointer_expression "&DAT_0001f07b" & identifier) , (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" else (compound_statement "{\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" { (expression_statement "iVar1 = DAT_00050764 * 8;" (assignment_expression "iVar1 = DAT_00050764 * 8" identifier = (binary_expression "DAT_00050764 * 8" identifier * number_literal)) ;) (if_statement "if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }" if (parenthesized_expression "(*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0')" ( (binary_expression "*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0'" (pointer_expression "*(char *)((int)&DAT_00050520 + DAT_00050764)" * (cast_expression "(char *)((int)&DAT_00050520 + DAT_00050764)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_00050520 + DAT_00050764)" ( (binary_expression "(int)&DAT_00050520 + DAT_00050764" (cast_expression "(int)&DAT_00050520" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_00050520" & identifier)) + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }" { (expression_statement "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));" (call_expression "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" identifier (argument_list "(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" ( identifier , number_literal , number_literal , number_literal , (string_literal ""@ hexdatafield (pos %i) instead of a simple number: %llu"" " string_content ") , identifier , (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" * (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050560 + iVar1)" ( (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" & identifier) + identifier) )))) , (pointer_expression "*(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" * (cast_expression "(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050564 + DAT_00050764 * 8)" ( (binary_expression "&DAT_00050564 + DAT_00050764 * 8" (pointer_expression "&DAT_00050564" & identifier) + (binary_expression "DAT_00050764 * 8" identifier * number_literal)) )))) ))) ;) (expression_statement "FUN_00012bd0();" (call_expression "FUN_00012bd0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_00050764 = DAT_00050764 + 1;" (assignment_expression "DAT_00050764 = DAT_00050764 + 1" identifier = (binary_expression "DAT_00050764 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);" (assignment_expression "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)*(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" * (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00050560 + iVar1)" ( (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" & identifier) + identifier) )))))) ;) }))))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , (pointer_expression * IDENT) ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , (pointer_expression * IDENT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , (string_literal " string_content ") , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))))) ;) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_00014e50(undefined1 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0001ee20();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014e50(undefined1 *param_1,undefined4 param_2)" (identifier "FUN_00014e50") (parameter_list "(undefined1 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_90 [128];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x14e57;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0001ee20();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_90 [128];" (type_identifier "undefined1") (array_declarator "local_90 [128]" (identifier "local_90") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x14e57;" (assignment_expression "uStack_c = 0x14e57" (identifier "uStack_c") (= "=") (number_literal "0x14e57")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (DAT_0005076b == '\0') {\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }\n  else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" (if "if") (parenthesized_expression "(DAT_0005076b == '\0')" (( "(") (binary_expression "DAT_0005076b == '\0'" (identifier "DAT_0005076b") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    __printf_chk(1,"%-35s%d\n",param_2,*param_1);\n  }" ({ "{") (expression_statement "__printf_chk(1,"%-35s%d\n",param_2,*param_1);" (call_expression "__printf_chk(1,"%-35s%d\n",param_2,*param_1)" (identifier "__printf_chk") (argument_list "(1,"%-35s%d\n",param_2,*param_1)" (( "(") (number_literal "1") (, ",") (string_literal ""%-35s%d\n"" (" """) (string_content "%-35s%d") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")) (else_clause "else if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" (else "else") (if_statement "if (DAT_0005076d == '\0') {\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }\n  else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" (if "if") (parenthesized_expression "(DAT_0005076d == '\0')" (( "(") (binary_expression "DAT_0005076d == '\0'" (identifier "DAT_0005076d") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    __printf_chk(1,&DAT_0001f07b,*param_1);\n  }" ({ "{") (expression_statement "__printf_chk(1,&DAT_0001f07b,*param_1);" (call_expression "__printf_chk(1,&DAT_0001f07b,*param_1)" (identifier "__printf_chk") (argument_list "(1,&DAT_0001f07b,*param_1)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0001f07b" (& "&") (identifier "DAT_0001f07b")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" (else "else") (compound_statement "{\n    iVar1 = DAT_00050764 * 8;\n    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }\n    DAT_00050764 = DAT_00050764 + 1;\n    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);\n  }" ({ "{") (expression_statement "iVar1 = DAT_00050764 * 8;" (assignment_expression "iVar1 = DAT_00050764 * 8" (identifier "iVar1") (= "=") (binary_expression "DAT_00050764 * 8" (identifier "DAT_00050764") (* "*") (number_literal "8"))) (; ";")) (if_statement "if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }" (if "if") (parenthesized_expression "(*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0')" (( "(") (binary_expression "*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0'" (pointer_expression "*(char *)((int)&DAT_00050520 + DAT_00050764)" (* "*") (cast_expression "(char *)((int)&DAT_00050520 + DAT_00050764)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_00050520 + DAT_00050764)" (( "(") (binary_expression "(int)&DAT_00050520 + DAT_00050764" (cast_expression "(int)&DAT_00050520" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_00050520" (& "&") (identifier "DAT_00050520"))) (+ "+") (identifier "DAT_00050764")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));\n                    \n      FUN_00012bd0();\n    }" ({ "{") (expression_statement "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));" (call_expression "__snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" (identifier "__snprintf_chk") (argument_list "(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"\n                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),\n                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8))" (( "(") (identifier "local_90") (, ",") (number_literal "0x80") (, ",") (number_literal "1") (, ",") (number_literal "0x80") (, ",") (string_literal ""@ hexdatafield (pos %i) instead of a simple number: %llu"" (" """) (string_content "@ hexdatafield (pos %i) instead of a simple number: %llu") (" """)) (, ",") (identifier "DAT_00050764") (, ",") (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" (* "*") (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00050560 + iVar1)" (( "(") (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" (& "&") (identifier "DAT_00050560")) (+ "+") (identifier "iVar1")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" (* "*") (cast_expression "(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00050564 + DAT_00050764 * 8)" (( "(") (binary_expression "&DAT_00050564 + DAT_00050764 * 8" (pointer_expression "&DAT_00050564" (& "&") (identifier "DAT_00050564")) (+ "+") (binary_expression "DAT_00050764 * 8" (identifier "DAT_00050764") (* "*") (number_literal "8"))) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00012bd0();" (call_expression "FUN_00012bd0()" (identifier "FUN_00012bd0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00050764 = DAT_00050764 + 1;" (assignment_expression "DAT_00050764 = DAT_00050764 + 1" (identifier "DAT_00050764") (= "=") (binary_expression "DAT_00050764 + 1" (identifier "DAT_00050764") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);" (assignment_expression "*param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(char)*(undefined4 *)(&DAT_00050560 + iVar1)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(undefined4 *)(&DAT_00050560 + iVar1)" (* "*") (cast_expression "(undefined4 *)(&DAT_00050560 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00050560 + iVar1)" (( "(") (binary_expression "&DAT_00050560 + iVar1" (pointer_expression "&DAT_00050560" (& "&") (identifier "DAT_00050560")) (+ "+") (identifier "iVar1")) () ")")))))) (; ";")) (} "}")))))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0001ee20();" (call_expression "FUN_0001ee20()" (identifier "FUN_0001ee20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(uint8_t *pageaddr,int nbytes,char *text)

{
  uint64_t *puVar1;
  int var_9;
  int var_1;
  char reason [128];
  
  var_9 = *(int *)(var_1 + 0x14);
  if (var_2 == '\0') {
    var_3(1,"%-35s%d\n",nbytes,*pageaddr);
  }
  else if (var_4 == '\0') {
    var_3(1,&DAT_0001f07b,*pageaddr);
  }
  else {
    puVar1 = var_5 + var_6;
    if (is_hex[var_6] != '\0') {
      var_7(reason,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu",
                     var_6,(int)*puVar1,
                     *(type_1 *)((int)var_5 + var_6 * 8 + 4));
                    /* WARNING: Subroutine does not return */
      var_8(reason);
    }
    var_6 = var_6 + 1;
    *pageaddr = (uint8_t)(int)*puVar1;
  }
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

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

void __regparm3 MASKED(undefined1 *param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_90 [128];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x14e57;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0005076b == '\0') {
    __printf_chk(1,"%-35s%d\n",param_2,*param_1);
  }
  else if (DAT_0005076d == '\0') {
    __printf_chk(1,&DAT_0001f07b,*param_1);
  }
  else {
    iVar1 = DAT_00050764 * 8;
    if (*(char *)((int)&DAT_00050520 + DAT_00050764) != '\0') {
      __snprintf_chk(local_90,0x80,1,0x80,"@ hexdatafield (pos %i) instead of a simple number: %llu"
                     ,DAT_00050764,*(undefined4 *)(&DAT_00050560 + iVar1),
                     *(undefined4 *)(&DAT_00050564 + DAT_00050764 * 8));
                    /* WARNING: Subroutine does not return */
      FUN_00012bd0();
    }
    DAT_00050764 = DAT_00050764 + 1;
    *param_1 = (char)*(undefined4 *)(&DAT_00050560 + iVar1);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001ee20();
}

