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

int vbprintf(char *format,...)

{
  int iVar1;
  int iVar2;
  
  iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);
  iVar2 = vblen + iVar1;
  if (vbsize <= iVar2 + 1U) {
    vbsize = iVar2 + 0x40U & 0xffffffc0;
    vbuf = (char *)xrealloc(vbuf,vbsize);
    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);
    iVar2 = vblen + iVar1;
  }
  vblen = iVar2;
  vbuf[iVar2] = '\0';
  return iVar1;
}



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

void FUN_000b0480(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,
                          param_1,&stack0x00000008);
  iVar1 = DAT_00151808 + iVar1;
  if (DAT_0015180c <= iVar1 + 1U) {
    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;
    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);
    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,
                            param_1,&stack0x00000008);
    iVar1 = DAT_00151808 + iVar1;
  }
  DAT_00151808 = iVar1;
  *(undefined1 *)(DAT_00151814 + iVar1) = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00031ed0
ADD EBX,0x99b74
LEA EDI,[ESP + 0x14]
SUB ESP,0x8
PUSH EDI
PUSH ESI
PUSH -0x1
MOV EAX,dword ptr [EBX + 0x7808]
MOV EDX,dword ptr [EBX + 0x780c]
PUSH 0x1
SUB EDX,EAX
ADD EAX,dword ptr [EBX + 0x7814]
PUSH EDX
PUSH EAX
CALL 0x0002f970
MOV EDX,dword ptr [EBX + 0x7808]
ADD ESP,0x20
ADD EDX,EAX
LEA ECX,[EDX + 0x1]
CMP dword ptr [EBX + 0x780c],ECX
JBE 0x000b04e8
MOV ECX,dword ptr [EBX + 0x7814]
MOV dword ptr [EBX + 0x7808],EDX
MOV byte ptr [ECX + EDX*0x1],0x0
POP EBX
POP ESI
POP EDI
RET
ADD EDX,0x40
SUB ESP,0x8
AND EDX,0xffffffc0
PUSH EDX
PUSH dword ptr [EBX + 0x7814]
MOV dword ptr [EBX + 0x780c],EDX
CALL 0x00099260
MOV ECX,dword ptr [EBX + 0x7808]
MOV EDX,dword ptr [EBX + 0x780c]
ADD ESP,0x8
MOV dword ptr [EBX + 0x7814],EAX
SUB EDX,ECX
ADD EAX,ECX
PUSH EDI
PUSH ESI
PUSH -0x1
PUSH 0x1
PUSH EDX
PUSH EAX
CALL 0x0002f970
MOV EDX,dword ptr [EBX + 0x7808]
ADD ESP,0x20
ADD EDX,EAX
JMP 0x000b04d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b0480(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_000b0480(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000b0480(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" identifier (argument_list "(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" ( (binary_expression "DAT_00151808 + DAT_00151814" identifier + identifier) , (binary_expression "DAT_0015180c - DAT_00151808" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" identifier = (binary_expression "DAT_00151808 + iVar1" identifier + identifier)) ;) (if_statement "if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" if (parenthesized_expression "(DAT_0015180c <= iVar1 + 1U)" ( (binary_expression "DAT_0015180c <= iVar1 + 1U" identifier <= (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" { (expression_statement "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;" (assignment_expression "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0" identifier = (binary_expression "iVar1 + 0x40U & 0xffffffc0" (binary_expression "iVar1 + 0x40U" identifier + number_literal) & number_literal)) ;) (expression_statement "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);" (assignment_expression "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c)" identifier = (call_expression "xrealloc(DAT_00151814,DAT_0015180c)" identifier (argument_list "(DAT_00151814,DAT_0015180c)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" identifier (argument_list "(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" ( (binary_expression "DAT_00151814 + DAT_00151808" identifier + identifier) , (binary_expression "DAT_0015180c - DAT_00151808" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" identifier = (binary_expression "DAT_00151808 + iVar1" identifier + identifier)) ;) })) (expression_statement "DAT_00151808 = iVar1;" (assignment_expression "DAT_00151808 = iVar1" identifier = identifier) ;) (expression_statement "*(undefined1 *)(DAT_00151814 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(DAT_00151814 + iVar1) = 0" (pointer_expression "*(undefined1 *)(DAT_00151814 + iVar1)" * (cast_expression "(undefined1 *)(DAT_00151814 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00151814 + iVar1)" ( (binary_expression "DAT_00151814 + iVar1" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint vbprintf(char *format,...)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n  iVar2 = vblen + iVar1;\n  if (vbsize <= iVar2 + 1U) {\n    vbsize = iVar2 + 0x40U & 0xffffffc0;\n    vbuf = (char *)xrealloc(vbuf,vbsize);\n    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n    iVar2 = vblen + iVar1;\n  }\n  vblen = iVar2;\n  vbuf[iVar2] = '\0';\n  return iVar1;\n}\n\n" comment comment (function_definition "int vbprintf(char *format,...)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n  iVar2 = vblen + iVar1;\n  if (vbsize <= iVar2 + 1U) {\n    vbsize = iVar2 + 0x40U & 0xffffffc0;\n    vbuf = (char *)xrealloc(vbuf,vbsize);\n    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n    iVar2 = vblen + iVar1;\n  }\n  vblen = iVar2;\n  vbuf[iVar2] = '\0';\n  return iVar1;\n}" primitive_type (function_declarator "vbprintf(char *format,...)" identifier (parameter_list "(char *format,...)" ( (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n  iVar2 = vblen + iVar1;\n  if (vbsize <= iVar2 + 1U) {\n    vbsize = iVar2 + 0x40U & 0xffffffc0;\n    vbuf = (char *)xrealloc(vbuf,vbsize);\n    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n    iVar2 = vblen + iVar1;\n  }\n  vblen = iVar2;\n  vbuf[iVar2] = '\0';\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" identifier (argument_list "(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" ( (binary_expression "vbuf + vblen" identifier + identifier) , (binary_expression "vbsize - vblen" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar2 = vblen + iVar1;" (assignment_expression "iVar2 = vblen + iVar1" identifier = (binary_expression "vblen + iVar1" identifier + identifier)) ;) (if_statement "if (vbsize <= iVar2 + 1U) {\n    vbsize = iVar2 + 0x40U & 0xffffffc0;\n    vbuf = (char *)xrealloc(vbuf,vbsize);\n    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n    iVar2 = vblen + iVar1;\n  }" if (parenthesized_expression "(vbsize <= iVar2 + 1U)" ( (binary_expression "vbsize <= iVar2 + 1U" identifier <= (binary_expression "iVar2 + 1U" identifier + number_literal)) )) (compound_statement "{\n    vbsize = iVar2 + 0x40U & 0xffffffc0;\n    vbuf = (char *)xrealloc(vbuf,vbsize);\n    iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);\n    iVar2 = vblen + iVar1;\n  }" { (expression_statement "vbsize = iVar2 + 0x40U & 0xffffffc0;" (assignment_expression "vbsize = iVar2 + 0x40U & 0xffffffc0" identifier = (binary_expression "iVar2 + 0x40U & 0xffffffc0" (binary_expression "iVar2 + 0x40U" identifier + number_literal) & number_literal)) ;) (expression_statement "vbuf = (char *)xrealloc(vbuf,vbsize);" (assignment_expression "vbuf = (char *)xrealloc(vbuf,vbsize)" identifier = (cast_expression "(char *)xrealloc(vbuf,vbsize)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(vbuf,vbsize)" identifier (argument_list "(vbuf,vbsize)" ( identifier , identifier ))))) ;) (expression_statement "iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" identifier (argument_list "(vbuf + vblen,vbsize - vblen,1,0xffffffff,format,&stack0x00000008)" ( (binary_expression "vbuf + vblen" identifier + identifier) , (binary_expression "vbsize - vblen" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar2 = vblen + iVar1;" (assignment_expression "iVar2 = vblen + iVar1" identifier = (binary_expression "vblen + iVar1" identifier + identifier)) ;) })) (expression_statement "vblen = iVar2;" (assignment_expression "vblen = iVar2" identifier = identifier) ;) (expression_statement "vbuf[iVar2] = '\0';" (assignment_expression "vbuf[iVar2] = '\0'" (subscript_expression "vbuf[iVar2]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_000b0480(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}\n\n" (function_definition "void FUN_000b0480(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000b0480(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" identifier (argument_list "(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" ( (binary_expression "DAT_00151808 + DAT_00151814" identifier + identifier) , (binary_expression "DAT_0015180c - DAT_00151808" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" identifier = (binary_expression "DAT_00151808 + iVar1" identifier + identifier)) ;) (if_statement "if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" if (parenthesized_expression "(DAT_0015180c <= iVar1 + 1U)" ( (binary_expression "DAT_0015180c <= iVar1 + 1U" identifier <= (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" { (expression_statement "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;" (assignment_expression "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0" identifier = (binary_expression "iVar1 + 0x40U & 0xffffffc0" (binary_expression "iVar1 + 0x40U" identifier + number_literal) & number_literal)) ;) (expression_statement "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);" (assignment_expression "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c)" identifier = (call_expression "xrealloc(DAT_00151814,DAT_0015180c)" identifier (argument_list "(DAT_00151814,DAT_0015180c)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" identifier = (call_expression "__vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" identifier (argument_list "(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" ( (binary_expression "DAT_00151814 + DAT_00151808" identifier + identifier) , (binary_expression "DAT_0015180c - DAT_00151808" identifier - identifier) , number_literal , number_literal , identifier , (pointer_expression "&stack0x00000008" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" identifier = (binary_expression "DAT_00151808 + iVar1" identifier + identifier)) ;) })) (expression_statement "DAT_00151808 = iVar1;" (assignment_expression "DAT_00151808 = iVar1" identifier = identifier) ;) (expression_statement "*(undefined1 *)(DAT_00151814 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(DAT_00151814 + iVar1) = 0" (pointer_expression "*(undefined1 *)(DAT_00151814 + iVar1)" * (cast_expression "(undefined1 *)(DAT_00151814 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00151814 + iVar1)" ( (binary_expression "DAT_00151814 + iVar1" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression IDENT - IDENT) , LIT , LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression IDENT - IDENT) , LIT , LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000b0480(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000b0480(undefined4 param_1)" (identifier "FUN_000b0480") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);\n  iVar1 = DAT_00151808 + iVar1;\n  if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }\n  DAT_00151808 = iVar1;\n  *(undefined1 *)(DAT_00151814 + iVar1) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" (identifier "iVar1") (= "=") (call_expression "__vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" (identifier "__vsnprintf_chk") (argument_list "(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                          param_1,&stack0x00000008)" (( "(") (binary_expression "DAT_00151808 + DAT_00151814" (identifier "DAT_00151808") (+ "+") (identifier "DAT_00151814")) (, ",") (binary_expression "DAT_0015180c - DAT_00151808" (identifier "DAT_0015180c") (- "-") (identifier "DAT_00151808")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "param_1") (, ",") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")) () ")")))) (; ";")) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" (identifier "iVar1") (= "=") (binary_expression "DAT_00151808 + iVar1" (identifier "DAT_00151808") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (DAT_0015180c <= iVar1 + 1U) {\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" (if "if") (parenthesized_expression "(DAT_0015180c <= iVar1 + 1U)" (( "(") (binary_expression "DAT_0015180c <= iVar1 + 1U" (identifier "DAT_0015180c") (<= "<=") (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;\n    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);\n    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);\n    iVar1 = DAT_00151808 + iVar1;\n  }" ({ "{") (expression_statement "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;" (assignment_expression "DAT_0015180c = iVar1 + 0x40U & 0xffffffc0" (identifier "DAT_0015180c") (= "=") (binary_expression "iVar1 + 0x40U & 0xffffffc0" (binary_expression "iVar1 + 0x40U" (identifier "iVar1") (+ "+") (number_literal "0x40U")) (& "&") (number_literal "0xffffffc0"))) (; ";")) (expression_statement "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);" (assignment_expression "DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c)" (identifier "DAT_00151814") (= "=") (call_expression "xrealloc(DAT_00151814,DAT_0015180c)" (identifier "xrealloc") (argument_list "(DAT_00151814,DAT_0015180c)" (( "(") (identifier "DAT_00151814") (, ",") (identifier "DAT_0015180c") () ")")))) (; ";")) (expression_statement "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008);" (assignment_expression "iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" (identifier "iVar1") (= "=") (call_expression "__vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" (identifier "__vsnprintf_chk") (argument_list "(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,\n                            param_1,&stack0x00000008)" (( "(") (binary_expression "DAT_00151814 + DAT_00151808" (identifier "DAT_00151814") (+ "+") (identifier "DAT_00151808")) (, ",") (binary_expression "DAT_0015180c - DAT_00151808" (identifier "DAT_0015180c") (- "-") (identifier "DAT_00151808")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "param_1") (, ",") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")) () ")")))) (; ";")) (expression_statement "iVar1 = DAT_00151808 + iVar1;" (assignment_expression "iVar1 = DAT_00151808 + iVar1" (identifier "iVar1") (= "=") (binary_expression "DAT_00151808 + iVar1" (identifier "DAT_00151808") (+ "+") (identifier "iVar1"))) (; ";")) (} "}"))) (expression_statement "DAT_00151808 = iVar1;" (assignment_expression "DAT_00151808 = iVar1" (identifier "DAT_00151808") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(undefined1 *)(DAT_00151814 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(DAT_00151814 + iVar1) = 0" (pointer_expression "*(undefined1 *)(DAT_00151814 + iVar1)" (* "*") (cast_expression "(undefined1 *)(DAT_00151814 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00151814 + iVar1)" (( "(") (binary_expression "DAT_00151814 + iVar1" (identifier "DAT_00151814") (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(char *format,...)

{
  int var_5;
  int var_6;
  
  var_5 = var_1(var_2 + var_3,var_4 - var_3,1,0xffffffff,format,&stack0x00000008);
  var_6 = var_3 + var_5;
  if (var_4 <= var_6 + 1U) {
    var_4 = var_6 + 0x40U & 0xffffffc0;
    var_2 = (char *)var_7(var_2,var_4);
    var_5 = var_1(var_2 + var_3,var_4 - var_3,1,0xffffffff,format,&stack0x00000008);
    var_6 = var_3 + var_5;
  }
  var_3 = var_6;
  var_2[var_6] = '\0';
  return var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)) (number_literal) (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)) (number_literal) (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = __vsnprintf_chk(DAT_00151808 + DAT_00151814,DAT_0015180c - DAT_00151808,1,0xffffffff,
                          param_1,&stack0x00000008);
  iVar1 = DAT_00151808 + iVar1;
  if (DAT_0015180c <= iVar1 + 1U) {
    DAT_0015180c = iVar1 + 0x40U & 0xffffffc0;
    DAT_00151814 = xrealloc(DAT_00151814,DAT_0015180c);
    iVar1 = __vsnprintf_chk(DAT_00151814 + DAT_00151808,DAT_0015180c - DAT_00151808,1,0xffffffff,
                            param_1,&stack0x00000008);
    iVar1 = DAT_00151808 + iVar1;
  }
  DAT_00151808 = iVar1;
  *(undefined1 *)(DAT_00151814 + iVar1) = 0;
  return;
}

