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

char * umaxtostr(uintmax_t i,char *buf)

{
  char cVar1;
  char *pcVar2;
  uint uVar3;
  int iVar4;
  
  pcVar2 = buf + 0x14;
  buf[0x14] = '\0';
  do {
    iVar4 = (int)(i >> 0x20);
    uVar3 = (uint)i;
    pcVar2 = pcVar2 + -1;
    cVar1 = __umoddi3(i,10,0);
    *pcVar2 = cVar1 + '0';
    i = __udivdi3(i,10,0);
  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));
  return pcVar2;
}



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

char * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)

{
  char cVar1;
  char *pcVar2;
  uint uVar3;
  int iVar4;
  undefined8 uVar5;
  
  uVar5 = CONCAT44(param_2,param_1);
  pcVar2 = (char *)(param_3 + 0x14);
  *(undefined1 *)(param_3 + 0x14) = 0;
  do {
    iVar4 = (int)((ulonglong)uVar5 >> 0x20);
    uVar3 = (uint)uVar5;
    pcVar2 = pcVar2 + -1;
    cVar1 = FUN_00018580(uVar5,10,0);
    *pcVar2 = cVar1 + '0';
    uVar5 = FUN_00018470(uVar5,10,0);
  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));
  return pcVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012120
ADD EBX,0xb6c7
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
LEA EBP,[EAX + 0x14]
MOV byte ptr [EAX + 0x14],0x0
JMP 0x00013964
MOV ESI,EAX
MOV EDI,EDX
PUSH 0x0
SUB EBP,0x1
PUSH 0xa
PUSH EDI
PUSH ESI
CALL 0x00018580
ADD ESP,0x10
ADD EAX,0x30
MOV byte ptr [EBP],AL
PUSH 0x0
PUSH 0xa
PUSH EDI
PUSH ESI
CALL 0x00018470
MOV ECX,0x9
ADD ESP,0x10
CMP ECX,ESI
MOV ECX,0x0
SBB ECX,EDI
JC 0x00013960
ADD ESP,0xc
MOV EAX,EBP
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\nchar * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}\n\n" comment (function_definition "char * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" * (function_declarator "FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = CONCAT44(param_2,param_1);" (assignment_expression "uVar5 = CONCAT44(param_2,param_1)" identifier = (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (expression_statement "pcVar2 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_3 + 0x14)" identifier = (cast_expression "(char *)(param_3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" * (cast_expression "(undefined1 *)(param_3 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (do_statement "do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" do (compound_statement "{\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  }" { (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = FUN_00018580(uVar5,10,0);" (assignment_expression "cVar1 = FUN_00018580(uVar5,10,0)" identifier = (call_expression "FUN_00018580(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*pcVar2 = cVar1 + '0';" (assignment_expression "*pcVar2 = cVar1 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "cVar1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar5 = FUN_00018470(uVar5,10,0);" (assignment_expression "uVar5 = FUN_00018470(uVar5,10,0)" identifier = (call_expression "FUN_00018470(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(9 < uVar3)" ( (binary_expression "9 < uVar3" number_literal < identifier) ))))) )) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * umaxtostr(uintmax_t i,char *buf)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  do {\n    iVar4 = (int)(i >> 0x20);\n    uVar3 = (uint)i;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = __umoddi3(i,10,0);\n    *pcVar2 = cVar1 + '0';\n    i = __udivdi3(i,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}\n\n" comment (function_definition "char * umaxtostr(uintmax_t i,char *buf)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  do {\n    iVar4 = (int)(i >> 0x20);\n    uVar3 = (uint)i;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = __umoddi3(i,10,0);\n    *pcVar2 = cVar1 + '0';\n    i = __udivdi3(i,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" primitive_type (pointer_declarator "* umaxtostr(uintmax_t i,char *buf)" * (function_declarator "umaxtostr(uintmax_t i,char *buf)" identifier (parameter_list "(uintmax_t i,char *buf)" ( (parameter_declaration "uintmax_t i" type_identifier identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  do {\n    iVar4 = (int)(i >> 0x20);\n    uVar3 = (uint)i;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = __umoddi3(i,10,0);\n    *pcVar2 = cVar1 + '0';\n    i = __udivdi3(i,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "pcVar2 = buf + 0x14;" (assignment_expression "pcVar2 = buf + 0x14" identifier = (binary_expression "buf + 0x14" identifier + number_literal)) ;) (expression_statement "buf[0x14] = '\0';" (assignment_expression "buf[0x14] = '\0'" (subscript_expression "buf[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n    iVar4 = (int)(i >> 0x20);\n    uVar3 = (uint)i;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = __umoddi3(i,10,0);\n    *pcVar2 = cVar1 + '0';\n    i = __udivdi3(i,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" do (compound_statement "{\n    iVar4 = (int)(i >> 0x20);\n    uVar3 = (uint)i;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = __umoddi3(i,10,0);\n    *pcVar2 = cVar1 + '0';\n    i = __udivdi3(i,10,0);\n  }" { (expression_statement "iVar4 = (int)(i >> 0x20);" (assignment_expression "iVar4 = (int)(i >> 0x20)" identifier = (cast_expression "(int)(i >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(i >> 0x20)" ( (binary_expression "i >> 0x20" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)i;" (assignment_expression "uVar3 = (uint)i" identifier = (cast_expression "(uint)i" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = __umoddi3(i,10,0);" (assignment_expression "cVar1 = __umoddi3(i,10,0)" identifier = (call_expression "__umoddi3(i,10,0)" identifier (argument_list "(i,10,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*pcVar2 = cVar1 + '0';" (assignment_expression "*pcVar2 = cVar1 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "cVar1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "i = __udivdi3(i,10,0);" (assignment_expression "i = __udivdi3(i,10,0)" identifier = (call_expression "__udivdi3(i,10,0)" identifier (argument_list "(i,10,0)" ( identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(9 < uVar3)" ( (binary_expression "9 < uVar3" number_literal < identifier) ))))) )) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" * (function_declarator "FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = CONCAT44(param_2,param_1);" (assignment_expression "uVar5 = CONCAT44(param_2,param_1)" identifier = (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (expression_statement "pcVar2 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_3 + 0x14)" identifier = (cast_expression "(char *)(param_3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" * (cast_expression "(undefined1 *)(param_3 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (do_statement "do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" do (compound_statement "{\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  }" { (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = FUN_00018580(uVar5,10,0);" (assignment_expression "cVar1 = FUN_00018580(uVar5,10,0)" identifier = (call_expression "FUN_00018580(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*pcVar2 = cVar1 + '0';" (assignment_expression "*pcVar2 = cVar1 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "cVar1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar5 = FUN_00018470(uVar5,10,0);" (assignment_expression "uVar5 = FUN_00018470(uVar5,10,0)" identifier = (call_expression "FUN_00018470(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(9 < uVar3)" ( (binary_expression "9 < uVar3" number_literal < identifier) ))))) )) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" (* "*") (function_declarator "FUN_00013930(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00013930") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_2,param_1);\n  pcVar2 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  return pcVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "uVar5 = CONCAT44(param_2,param_1);" (assignment_expression "uVar5 = CONCAT44(param_2,param_1)" (identifier "uVar5") (= "=") (call_expression "CONCAT44(param_2,param_1)" (identifier "CONCAT44") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pcVar2 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_3 + 0x14)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(param_3 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" (* "*") (cast_expression "(undefined1 *)(param_3 + 0x14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" (do "do") (compound_statement "{\n    iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n    uVar3 = (uint)uVar5;\n    pcVar2 = pcVar2 + -1;\n    cVar1 = FUN_00018580(uVar5,10,0);\n    *pcVar2 = cVar1 + '0';\n    uVar5 = FUN_00018470(uVar5,10,0);\n  }" ({ "{") (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" (identifier "iVar4") (= "=") (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" (identifier "uVar3") (= "=") (cast_expression "(uint)uVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = FUN_00018580(uVar5,10,0);" (assignment_expression "cVar1 = FUN_00018580(uVar5,10,0)" (identifier "cVar1") (= "=") (call_expression "FUN_00018580(uVar5,10,0)" (identifier "FUN_00018580") (argument_list "(uVar5,10,0)" (( "(") (identifier "uVar5") (, ",") (number_literal "10") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*pcVar2 = cVar1 + '0';" (assignment_expression "*pcVar2 = cVar1 + '0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (binary_expression "cVar1 + '0'" (identifier "cVar1") (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "uVar5 = FUN_00018470(uVar5,10,0);" (assignment_expression "uVar5 = FUN_00018470(uVar5,10,0)" (identifier "uVar5") (= "=") (call_expression "FUN_00018470(uVar5,10,0)" (identifier "FUN_00018470") (argument_list "(uVar5,10,0)" (( "(") (identifier "uVar5") (, ",") (number_literal "10") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" (( "(") (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar4")) (< "<") (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(9 < uVar3)" (( "(") (binary_expression "9 < uVar3" (number_literal "9") (< "<") (identifier "uVar3")) () ")"))))) () ")")) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

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

char * function_1(type_1 var_2,char *var_1)

{
  char var_5;
  char *var_3;
  type_2 var_8;
  int var_7;
  
  var_3 = var_1 + 0x14;
  var_1[0x14] = '\0';
  do {
    var_7 = (int)(var_2 >> 0x20);
    var_8 = (type_2)var_2;
    var_3 = var_3 + -1;
    var_5 = var_4(var_2,10,0);
    *var_3 = var_5 + '0';
    var_2 = var_6(var_2,10,0);
  } while (var_7 != 0 || (type_2)-var_7 < (type_2)(9 < var_8));
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (character))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier)))))))) (return_statement (identifier)))))

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

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

{
  char cVar1;
  char *pcVar2;
  uint uVar3;
  int iVar4;
  undefined8 uVar5;
  
  uVar5 = CONCAT44(param_2,param_1);
  pcVar2 = (char *)(param_3 + 0x14);
  *(undefined1 *)(param_3 + 0x14) = 0;
  do {
    iVar4 = (int)((ulonglong)uVar5 >> 0x20);
    uVar3 = (uint)uVar5;
    pcVar2 = pcVar2 + -1;
    cVar1 = FUN_00018580(uVar5,10,0);
    *pcVar2 = cVar1 + '0';
    uVar5 = FUN_00018470(uVar5,10,0);
  } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));
  return pcVar2;
}

