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

void __regparm3 sessionAppendStr(SessionBuffer *p,char *zStr,int *pRc)

{
  size_t sVar1;
  uint __n;
  int iVar2;
  SessionBuffer *in_stack_ffffffd4;
  int in_stack_ffffffd8;
  int *in_stack_ffffffdc;
  
  if (zStr == (char *)0x0) {
    __n = 0;
  }
  else {
    sVar1 = strlen(zStr);
    __n = sVar1 & 0x3fffffff;
  }
  iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);
  if (iVar2 != 0) {
    return;
  }
  memcpy(p->aBuf + p->nBuf,zStr,__n);
  p->nBuf = p->nBuf + __n;
  return;
}



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

void __regparm3 FUN_0006ddb0(int *param_1,char *param_2)

{
  size_t sVar1;
  uint __n;
  int iVar2;
  
  if (param_2 == (char *)0x0) {
    __n = 0;
  }
  else {
    sVar1 = strlen(param_2);
    __n = sVar1 & 0x3fffffff;
  }
  iVar2 = FUN_0006db60();
  if (iVar2 != 0) {
    return;
  }
  memcpy((void *)(param_1[1] + *param_1),param_2,__n);
  param_1[1] = param_1[1] + __n;
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xdb117
SUB ESP,0x1c
TEST EDX,EDX
JZ 0x0006de20
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EDX
CALL 0x00014230
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
AND EAX,0x3fffffff
MOV ESI,EAX
MOV EDX,ESI
MOV EAX,EDI
CALL 0x0006db60
TEST EAX,EAX
JZ 0x0006de00
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EAX,dword ptr [EDI + 0x4]
ADD EAX,dword ptr [EDI]
PUSH ESI
PUSH EBP
PUSH EAX
CALL 0x000140d0
ADD ESP,0x10
ADD dword ptr [EDI + 0x4],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR ESI,ESI
JMP 0x0006dde5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0006ddb0(int *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0006ddb0(int *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006ddb0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __n = 0;\n  }" { (expression_statement "__n = 0;" (assignment_expression "__n = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "__n = sVar1 & 0x3fffffff;" (assignment_expression "__n = sVar1 & 0x3fffffff" identifier = (binary_expression "sVar1 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "iVar2 = FUN_0006db60();" (assignment_expression "iVar2 = FUN_0006db60()" identifier = (call_expression "FUN_0006db60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" identifier (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" ( (cast_expression "(void *)(param_1[1] + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + *param_1)" ( (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 sessionAppendStr(SessionBuffer *p,char *zStr,int *pRc)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  SessionBuffer *in_stack_ffffffd4;\n  int in_stack_ffffffd8;\n  int *in_stack_ffffffdc;\n  \n  if (zStr == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy(p->aBuf + p->nBuf,zStr,__n);\n  p->nBuf = p->nBuf + __n;\n  return;\n}\n\n" comment (function_definition "void __regparm3 sessionAppendStr(SessionBuffer *p,char *zStr,int *pRc)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  SessionBuffer *in_stack_ffffffd4;\n  int in_stack_ffffffd8;\n  int *in_stack_ffffffdc;\n  \n  if (zStr == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy(p->aBuf + p->nBuf,zStr,__n);\n  p->nBuf = p->nBuf + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sessionAppendStr(SessionBuffer *p,char *zStr,int *pRc)" identifier (parameter_list "(SessionBuffer *p,char *zStr,int *pRc)" ( (parameter_declaration "SessionBuffer *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *zStr" primitive_type (pointer_declarator "*zStr" * identifier)) , (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  SessionBuffer *in_stack_ffffffd4;\n  int in_stack_ffffffd8;\n  int *in_stack_ffffffdc;\n  \n  if (zStr == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy(p->aBuf + p->nBuf,zStr,__n);\n  p->nBuf = p->nBuf + __n;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SessionBuffer *in_stack_ffffffd4;" type_identifier (pointer_declarator "*in_stack_ffffffd4" * identifier) ;) (declaration "int in_stack_ffffffd8;" primitive_type identifier ;) (declaration "int *in_stack_ffffffdc;" primitive_type (pointer_declarator "*in_stack_ffffffdc" * identifier) ;) (if_statement "if (zStr == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }" if (parenthesized_expression "(zStr == (char *)0x0)" ( (binary_expression "zStr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __n = 0;\n  }" { (expression_statement "__n = 0;" (assignment_expression "__n = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar1 = strlen(zStr);\n    __n = sVar1 & 0x3fffffff;\n  }" { (expression_statement "sVar1 = strlen(zStr);" (assignment_expression "sVar1 = strlen(zStr)" identifier = (call_expression "strlen(zStr)" identifier (argument_list "(zStr)" ( identifier )))) ;) (expression_statement "__n = sVar1 & 0x3fffffff;" (assignment_expression "__n = sVar1 & 0x3fffffff" identifier = (binary_expression "sVar1 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);" (assignment_expression "iVar2 = sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc)" identifier = (call_expression "sessionBufferGrow(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc)" identifier (argument_list "(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memcpy(p->aBuf + p->nBuf,zStr,__n);" (call_expression "memcpy(p->aBuf + p->nBuf,zStr,__n)" identifier (argument_list "(p->aBuf + p->nBuf,zStr,__n)" ( (binary_expression "p->aBuf + p->nBuf" (field_expression "p->aBuf" identifier -> field_identifier) + (field_expression "p->nBuf" identifier -> field_identifier)) , identifier , identifier ))) ;) (expression_statement "p->nBuf = p->nBuf + __n;" (assignment_expression "p->nBuf = p->nBuf + __n" (field_expression "p->nBuf" identifier -> field_identifier) = (binary_expression "p->nBuf + __n" (field_expression "p->nBuf" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0006ddb0(int *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0006ddb0(int *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006ddb0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __n = 0;\n  }" { (expression_statement "__n = 0;" (assignment_expression "__n = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "__n = sVar1 & 0x3fffffff;" (assignment_expression "__n = sVar1 & 0x3fffffff" identifier = (binary_expression "sVar1 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "iVar2 = FUN_0006db60();" (assignment_expression "iVar2 = FUN_0006db60()" identifier = (call_expression "FUN_0006db60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" identifier (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" ( (cast_expression "(void *)(param_1[1] + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + *param_1)" ( (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_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 ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0006ddb0(int *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0006ddb0(int *param_1,char *param_2)" (identifier "FUN_0006ddb0") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  uint __n;\n  int iVar2;\n  \n  if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }\n  iVar2 = FUN_0006db60();\n  if (iVar2 != 0) {\n    return;\n  }\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n    __n = 0;\n  }\n  else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __n = 0;\n  }" ({ "{") (expression_statement "__n = 0;" (assignment_expression "__n = 0" (identifier "__n") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" (else "else") (compound_statement "{\n    sVar1 = strlen(param_2);\n    __n = sVar1 & 0x3fffffff;\n  }" ({ "{") (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "__n = sVar1 & 0x3fffffff;" (assignment_expression "__n = sVar1 & 0x3fffffff" (identifier "__n") (= "=") (binary_expression "sVar1 & 0x3fffffff" (identifier "sVar1") (& "&") (number_literal "0x3fffffff"))) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_0006db60();" (assignment_expression "iVar2 = FUN_0006db60()" (identifier "iVar2") (= "=") (call_expression "FUN_0006db60()" (identifier "FUN_0006db60") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" (identifier "memcpy") (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" (( "(") (cast_expression "(void *)(param_1[1] + *param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + *param_1)" (( "(") (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "__n"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *p,char *var_1,int *pRc)

{
  size_t var_3;
  type_2 var_7;
  int var_5;
  type_1 *in_stack_ffffffd4;
  int in_stack_ffffffd8;
  int *in_stack_ffffffdc;
  
  if (var_1 == (char *)0x0) {
    var_7 = 0;
  }
  else {
    var_3 = var_2(var_1);
    var_7 = var_3 & 0x3fffffff;
  }
  var_5 = var_4(in_stack_ffffffd4,in_stack_ffffffd8,in_stack_ffffffdc);
  if (var_5 != 0) {
    return;
  }
  var_6(p->aBuf + p->nBuf,var_1,var_7);
  p->nBuf = p->nBuf + var_7;
  return;
}


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

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

void __regparm3 MASKED(int *param_1,char *param_2)

{
  size_t sVar1;
  uint __n;
  int iVar2;
  
  if (param_2 == (char *)0x0) {
    __n = 0;
  }
  else {
    sVar1 = strlen(param_2);
    __n = sVar1 & 0x3fffffff;
  }
  iVar2 = FUN_0006db60();
  if (iVar2 != 0) {
    return;
  }
  memcpy((void *)(param_1[1] + *param_1),param_2,__n);
  param_1[1] = param_1[1] + __n;
  return;
}

