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

uint get_unsigned(char *arg,char *errmsg)

{
  char *ptr;
  
}



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

void __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)

{
  ulong uVar1;
  int in_GS_OFFSET;
  char *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = 0;
  if (*param_1 != '\0') {
    uVar1 = strtoul(param_1,&local_14,0);
    if (*local_14 == '\0') {
      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
        return;
      }
                    /* WARNING: Subroutine does not return */
      FUN_00017e20();
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
CALL 0x00017650
ADD EBX,0x8ec8d
MOV ESI,EAX
MOV EDI,EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
CMP byte ptr [ESI],0x0
JZ 0x0004cddc
PUSH EDX
PUSH 0x0
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH ESI
CALL 0x00016ac0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
CMP byte ptr [EDX],0x0
JNZ 0x0004cddc
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0004cdeb
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
PUSH EDI
PUSH ESI
LEA EAX,[EBX + 0xffff27b9]
PUSH EAX
CALL 0x000192f3
CALL 0x00017e20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}\n\n" comment (function_definition "void __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004cd88(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }\n  }" { (expression_statement "uVar1 = strtoul(param_1,&local_14,0);" (assignment_expression "uVar1 = strtoul(param_1,&local_14,0)" identifier = (call_expression "strtoul(param_1,&local_14,0)" identifier (argument_list "(param_1,&local_14,0)" ( identifier , (pointer_expression "&local_14" & identifier) , number_literal )))) ;) (if_statement "if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }" if (parenthesized_expression "(*local_14 == '\0')" ( (binary_expression "*local_14 == '\0'" (pointer_expression "*local_14" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_00017e20();\n    }" { (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_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })) })) comment (expression_statement "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);" (call_expression "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" identifier (argument_list "("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" ( (string_literal ""invalid argument \'%s\' to \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint get_unsigned(char *arg,char *errmsg)\n\n{\n  char *ptr;\n  \n}\n\n" comment (function_definition "uint get_unsigned(char *arg,char *errmsg)\n\n{\n  char *ptr;\n  \n}" type_identifier (function_declarator "get_unsigned(char *arg,char *errmsg)" identifier (parameter_list "(char *arg,char *errmsg)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "char *errmsg" primitive_type (pointer_declarator "*errmsg" * identifier)) ))) (compound_statement "{\n  char *ptr;\n  \n}" { (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) })))
(translation_unit "void __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }\n                    \n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}\n\n" (function_definition "void __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }\n                    \n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004cd88(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }\n                    \n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }" { (expression_statement "uVar1 = strtoul(param_1,&local_14,0);" (assignment_expression "uVar1 = strtoul(param_1,&local_14,0)" identifier = (call_expression "strtoul(param_1,&local_14,0)" identifier (argument_list "(param_1,&local_14,0)" ( identifier , (pointer_expression "&local_14" & identifier) , number_literal )))) ;) (if_statement "if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }" if (parenthesized_expression "(*local_14 == '\0')" ( (binary_expression "*local_14 == '\0'" (pointer_expression "*local_14" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }" { (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_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);" (call_expression "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" identifier (argument_list "("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" ( (string_literal ""invalid argument \'%s\' to \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , identifier , identifier ))) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE 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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (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 ( ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void __regparm3 FUN_0004cd88(char *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }\n                    \n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004cd88(char *param_1,undefined4 param_2)" (identifier "FUN_0004cd88") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  int in_GS_OFFSET;\n  char *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = 0;\n  if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }\n                    \n  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_14;" (primitive_type "char") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_1 != '\0') {\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar1 = strtoul(param_1,&local_14,0);\n    if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }\n  }" ({ "{") (expression_statement "uVar1 = strtoul(param_1,&local_14,0);" (assignment_expression "uVar1 = strtoul(param_1,&local_14,0)" (identifier "uVar1") (= "=") (call_expression "strtoul(param_1,&local_14,0)" (identifier "strtoul") (argument_list "(param_1,&local_14,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (*local_14 == '\0') {\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }" (if "if") (parenthesized_expression "(*local_14 == '\0')" (( "(") (binary_expression "*local_14 == '\0'" (pointer_expression "*local_14" (* "*") (identifier "local_14")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return;\n      }\n                    \n      FUN_00017e20();\n    }" ({ "{") (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_00017e20();" (call_expression "FUN_00017e20()" (identifier "FUN_00017e20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);" (call_expression "FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" (identifier "FUN_000192f3") (argument_list "("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1)" (( "(") (string_literal ""invalid argument \'%s\' to \'%s\'"" (" """) (string_content "invalid argument ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " to ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(char *arg,char *errmsg)

{
  char *ptr;
  
}


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

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

void __regparm3 MASKED(char *param_1,undefined4 param_2)

{
  ulong uVar1;
  int in_GS_OFFSET;
  char *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = 0;
  if (*param_1 != '\0') {
    uVar1 = strtoul(param_1,&local_14,0);
    if (*local_14 == '\0') {
      if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
        return;
      }
                    /* WARNING: Subroutine does not return */
      FUN_00017e20();
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_000192f3("invalid argument \'%s\' to \'%s\'",param_1,param_2,uVar1);
}

