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

int do_arg(work_stuff *work,char **mangled,string *result)

{
}



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

undefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = *(int *)(param_1 + 0x50);
  while( true ) {
    param_3[2] = 0;
    param_3[1] = 0;
    *param_3 = 0;
    if (0 < iVar2) {
      *(int *)(param_1 + 0x50) = iVar2 + -1;
      if (*(int *)(param_1 + 0x4c) == 0) {
        return 0;
      }
      FUN_0022f7f0();
      return 1;
    }
    if (*(char *)*param_2 != 'n') break;
    *param_2 = (char *)*param_2 + 1;
    iVar2 = FUN_0022f250();
    *(int *)(param_1 + 0x50) = iVar2;
    if (iVar2 < 1) {
      return 0;
    }
    if (9 < iVar2) {
      if (*(char *)*param_2 != '_') {
        return 0;
      }
      *param_2 = (char *)*param_2 + 1;
    }
  }
  puVar1 = *(undefined4 **)(param_1 + 0x4c);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = FUN_00246130(0xc);
    *(undefined4 *)(param_1 + 0x4c) = uVar3;
  }
  else if ((void *)*puVar1 != (void *)0x0) {
    free((void *)*puVar1);
    puVar1[1] = 0;
    puVar1[2] = 0;
    *puVar1 = 0;
  }
  iVar2 = FUN_00230c20();
  if (iVar2 == 0) {
    return 0;
  }
  FUN_0022f7f0();
  FUN_0022fb30();
  return 1;
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1e0b73
SUB ESP,0x1c
MOV EBP,dword ptr [EDX]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [EAX + 0x50]
NOP
MOV dword ptr [EDI + 0x8],0x0
MOV dword ptr [EDI + 0x4],0x0
MOV dword ptr [EDI],0x0
TEST EAX,EAX
JG 0x00233528
MOV EAX,dword ptr [ESI]
CMP byte ptr [EAX],0x6e
JNZ 0x00233550
ADD EAX,0x1
MOV dword ptr [ESI],EAX
MOV EAX,ESI
CALL 0x0022f250
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX + 0x50],EAX
TEST EAX,EAX
JLE 0x00233519
MOV EBP,dword ptr [ESI]
CMP EAX,0x9
JLE 0x002334a0
CMP byte ptr [EBP],0x5f
JNZ 0x00233519
ADD EBP,0x1
MOV dword ptr [ESI],EBP
JMP 0x002334a0
SUB ESP,0xc
PUSH 0xc
CALL 0x00246130
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EAX + 0x4c],ECX
LEA ESI,[ESI]
MOV EBX,dword ptr [ESP + 0x8]
MOV EDX,ESI
MOV EAX,EBX
CALL 0x00230c20
TEST EAX,EAX
JNZ 0x00233598
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESP + 0x8]
SUB EAX,0x1
MOV EDX,dword ptr [EBX + 0x4c]
MOV dword ptr [EBX + 0x50],EAX
TEST EDX,EDX
JZ 0x00233519
MOV ECX,dword ptr [EDX + 0x4]
MOV EAX,EDI
CALL 0x0022f7f0
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EAX + 0x4c]
TEST ECX,ECX
JZ 0x002334ee
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JZ 0x00233508
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EAX
CALL 0x0002c700
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [ECX + 0x4],0x0
MOV dword ptr [ECX + 0x8],0x0
MOV dword ptr [ECX],0x0
MOV ECX,dword ptr [EAX + 0x4c]
JMP 0x00233508
MOV EDX,dword ptr [EBX + 0x4c]
MOV EAX,EDI
MOV ECX,dword ptr [EDX + 0x4]
CALL 0x0022f7f0
MOV ECX,dword ptr [ESI]
MOV EAX,EBX
MOV EDX,EBP
SUB ECX,EBP
CALL 0x0022fb30
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" { (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" { (expression_statement "*(int *)(param_1 + 0x50) = iVar2 + -1;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2 + -1" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(char *)*param_2 != 'n') break;" if (parenthesized_expression "(*(char *)*param_2 != 'n')" ( (binary_expression "*(char *)*param_2 != 'n'" (pointer_expression "*(char *)*param_2" * (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) != (char_literal "'n'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) + number_literal)) ;) (expression_statement "iVar2 = FUN_0022f250();" (assignment_expression "iVar2 = FUN_0022f250()" identifier = (call_expression "FUN_0022f250()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x50) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 < 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" if (parenthesized_expression "(9 < iVar2)" ( (binary_expression "9 < iVar2" number_literal < identifier) )) (compound_statement "{\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" { (if_statement "if (*(char *)*param_2 != '_') {\n        return 0;\n      }" if (parenthesized_expression "(*(char *)*param_2 != '_')" ( (binary_expression "*(char *)*param_2 != '_'" (pointer_expression "*(char *)*param_2" * (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) + number_literal)) ;) })) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }" { (expression_statement "uVar3 = FUN_00246130(0xc);" (assignment_expression "uVar3 = FUN_00246130(0xc)" identifier = (call_expression "FUN_00246130(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" else (if_statement "if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" if (parenthesized_expression "((void *)*puVar1 != (void *)0x0)" ( (binary_expression "(void *)*puVar1 != (void *)0x0" (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" { (expression_statement "free((void *)*puVar1);" (call_expression "free((void *)*puVar1)" identifier (argument_list "((void *)*puVar1)" ( (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })))) (expression_statement "iVar2 = FUN_00230c20();" (assignment_expression "iVar2 = FUN_00230c20()" identifier = (call_expression "FUN_00230c20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0022fb30();" (call_expression "FUN_0022fb30()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint do_arg(work_stuff *work,char **mangled,string *result)\n\n{\n}\n\n" comment (function_definition "int do_arg(work_stuff *work,char **mangled,string *result)\n\n{\n}" primitive_type (function_declarator "do_arg(work_stuff *work,char **mangled,string *result)" identifier (parameter_list "(work_stuff *work,char **mangled,string *result)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "char **mangled" primitive_type (pointer_declarator "**mangled" * (pointer_declarator "*mangled" * identifier))) , (parameter_declaration "string *result" type_identifier (pointer_declarator "*result" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "undefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" { (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" { (expression_statement "*(int *)(param_1 + 0x50) = iVar2 + -1;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2 + -1" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(char *)*param_2 != 'n') break;" if (parenthesized_expression "(*(char *)*param_2 != 'n')" ( (binary_expression "*(char *)*param_2 != 'n'" (pointer_expression "*(char *)*param_2" * (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) != (char_literal "'n'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) + number_literal)) ;) (expression_statement "iVar2 = FUN_0022f250();" (assignment_expression "iVar2 = FUN_0022f250()" identifier = (call_expression "FUN_0022f250()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x50) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 < 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" if (parenthesized_expression "(9 < iVar2)" ( (binary_expression "9 < iVar2" number_literal < identifier) )) (compound_statement "{\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" { (if_statement "if (*(char *)*param_2 != '_') {\n        return 0;\n      }" if (parenthesized_expression "(*(char *)*param_2 != '_')" ( (binary_expression "*(char *)*param_2 != '_'" (pointer_expression "*(char *)*param_2" * (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) + number_literal)) ;) })) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }" { (expression_statement "uVar3 = FUN_00246130(0xc);" (assignment_expression "uVar3 = FUN_00246130(0xc)" identifier = (call_expression "FUN_00246130(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" else (if_statement "if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" if (parenthesized_expression "((void *)*puVar1 != (void *)0x0)" ( (binary_expression "(void *)*puVar1 != (void *)0x0" (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" { (expression_statement "free((void *)*puVar1);" (call_expression "free((void *)*puVar1)" identifier (argument_list "((void *)*puVar1)" ( (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })))) (expression_statement "iVar2 = FUN_00230c20();" (assignment_expression "iVar2 = FUN_00230c20()" identifier = (call_expression "FUN_00230c20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0022fb30();" (call_expression "FUN_0022fb30()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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 IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) != (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) + LIT)) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00233480(int param_1,undefined4 *param_2,undefined4 *param_3)" (identifier "FUN_00233480") (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x50);\n  while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x4c);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }\n  iVar2 = FUN_00230c20();\n  if (iVar2 == 0) {\n    return 0;\n  }\n  FUN_0022f7f0();\n  FUN_0022fb30();\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x50)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    param_3[2] = 0;\n    param_3[1] = 0;\n    *param_3 = 0;\n    if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }\n    if (*(char *)*param_2 != 'n') break;\n    *param_2 = (char *)*param_2 + 1;\n    iVar2 = FUN_0022f250();\n    *(int *)(param_1 + 0x50) = iVar2;\n    if (iVar2 < 1) {\n      return 0;\n    }\n    if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }\n  }" ({ "{") (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar2) {\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x50) = iVar2 + -1;\n      if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }\n      FUN_0022f7f0();\n      return 1;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x50) = iVar2 + -1;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2 + -1" (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" (identifier "FUN_0022f7f0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(char *)*param_2 != 'n') break;" (if "if") (parenthesized_expression "(*(char *)*param_2 != 'n')" (( "(") (binary_expression "*(char *)*param_2 != 'n'" (pointer_expression "*(char *)*param_2" (* "*") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (!= "!=") (char_literal "'n'" (' "'") (character "n") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = FUN_0022f250();" (assignment_expression "iVar2 = FUN_0022f250()" (identifier "iVar2") (= "=") (call_expression "FUN_0022f250()" (identifier "FUN_0022f250") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x50) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x50) = iVar2" (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 < 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (9 < iVar2) {\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" (if "if") (parenthesized_expression "(9 < iVar2)" (( "(") (binary_expression "9 < iVar2" (number_literal "9") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      if (*(char *)*param_2 != '_') {\n        return 0;\n      }\n      *param_2 = (char *)*param_2 + 1;\n    }" ({ "{") (if_statement "if (*(char *)*param_2 != '_') {\n        return 0;\n      }" (if "if") (parenthesized_expression "(*(char *)*param_2 != '_')" (( "(") (binary_expression "*(char *)*param_2 != '_'" (pointer_expression "*(char *)*param_2" (* "*") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (!= "!=") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = (char *)*param_2 + 1;" (assignment_expression "*param_2 = (char *)*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "(char *)*param_2 + 1" (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x4c)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }\n  else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = FUN_00246130(0xc);\n    *(undefined4 *)(param_1 + 0x4c) = uVar3;\n  }" ({ "{") (expression_statement "uVar3 = FUN_00246130(0xc);" (assignment_expression "uVar3 = FUN_00246130(0xc)" (identifier "uVar3") (= "=") (call_expression "FUN_00246130(0xc)" (identifier "FUN_00246130") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" (else "else") (if_statement "if ((void *)*puVar1 != (void *)0x0) {\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" (if "if") (parenthesized_expression "((void *)*puVar1 != (void *)0x0)" (( "(") (binary_expression "(void *)*puVar1 != (void *)0x0" (cast_expression "(void *)*puVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free((void *)*puVar1);\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *puVar1 = 0;\n  }" ({ "{") (expression_statement "free((void *)*puVar1);" (call_expression "free((void *)*puVar1)" (identifier "free") (argument_list "((void *)*puVar1)" (( "(") (cast_expression "(void *)*puVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) () ")"))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (} "}"))))) (expression_statement "iVar2 = FUN_00230c20();" (assignment_expression "iVar2 = FUN_00230c20()" (identifier "iVar2") (= "=") (call_expression "FUN_00230c20()" (identifier "FUN_00230c20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0022f7f0();" (call_expression "FUN_0022f7f0()" (identifier "FUN_0022f7f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0022fb30();" (call_expression "FUN_0022fb30()" (identifier "FUN_0022fb30") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int function_1(type_1 *work,char **mangled,type_2 *result)

{
}


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

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

undefined4 __regparm3 MASKED(int param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = *(int *)(param_1 + 0x50);
  while( true ) {
    param_3[2] = 0;
    param_3[1] = 0;
    *param_3 = 0;
    if (0 < iVar2) {
      *(int *)(param_1 + 0x50) = iVar2 + -1;
      if (*(int *)(param_1 + 0x4c) == 0) {
        return 0;
      }
      FUN_0022f7f0();
      return 1;
    }
    if (*(char *)*param_2 != 'n') break;
    *param_2 = (char *)*param_2 + 1;
    iVar2 = FUN_0022f250();
    *(int *)(param_1 + 0x50) = iVar2;
    if (iVar2 < 1) {
      return 0;
    }
    if (9 < iVar2) {
      if (*(char *)*param_2 != '_') {
        return 0;
      }
      *param_2 = (char *)*param_2 + 1;
    }
  }
  puVar1 = *(undefined4 **)(param_1 + 0x4c);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = FUN_00246130(0xc);
    *(undefined4 *)(param_1 + 0x4c) = uVar3;
  }
  else if ((void *)*puVar1 != (void *)0x0) {
    free((void *)*puVar1);
    puVar1[1] = 0;
    puVar1[2] = 0;
    *puVar1 = 0;
  }
  iVar2 = FUN_00230c20();
  if (iVar2 == 0) {
    return 0;
  }
  FUN_0022f7f0();
  FUN_0022fb30();
  return 1;
}

