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

void __regparm3
sqlite3Fts5HashScanEntry(Fts5Hash *pHash,char **pzTerm,u8 **ppDoclist,int *pnDoclist)

{
  Fts5HashEntry *pFVar1;
  size_t sVar2;
  Fts5Hash *in_stack_ffffffd4;
  Fts5HashEntry *in_stack_ffffffd8;
  
  pFVar1 = pHash->pScan;
  if (pFVar1 != (Fts5HashEntry *)0x0) {
    sVar2 = strlen((char *)(pFVar1 + 1));
    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);
    *pzTerm = (char *)(pFVar1 + 1);
    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);
    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;
    return;
  }
  *pzTerm = (char *)0x0;
  *ppDoclist = (u8 *)0x0;
  *pnDoclist = 0;
  return;
}



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

void __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)

{
  int iVar1;
  size_t sVar2;
  
  iVar1 = *(int *)(param_1 + 0x10);
  if (iVar1 != 0) {
    sVar2 = strlen((char *)(iVar1 + 0x28));
    FUN_00036d00();
    *param_2 = (char *)(iVar1 + 0x28);
    *param_3 = iVar1 + 0x29 + sVar2;
    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;
    return;
  }
  *param_2 = 0;
  *param_3 = 0;
  *param_4 = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0x11405b
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x10]
TEST ESI,ESI
JZ 0x00036ed8
MOV dword ptr [ESP + 0xc],EDX
LEA EBP,[ESI + 0x28]
SUB ESP,0xc
MOV EDI,ECX
MOV dword ptr [ESP + 0x14],EAX
PUSH EBP
CALL 0x00014230
ADD ESP,0x10
MOV EDX,ESI
XOR ECX,ECX
MOV EBX,EAX
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x00036d00
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EBP
LEA EAX,[EBP + EBX*0x1 + 0x1]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESI + 0x10]
MOV EDI,dword ptr [ESP + 0x30]
SUB EAX,0x29
SUB EAX,EBX
MOV dword ptr [EDI],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EDX],0x0
MOV dword ptr [ECX],0x0
MOV dword ptr [EAX],0x0
ADD ESP,0x1c
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\nvoid __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 *param_2,int *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" { (expression_statement "sVar2 = strlen((char *)(iVar1 + 0x28));" (assignment_expression "sVar2 = strlen((char *)(iVar1 + 0x28))" identifier = (call_expression "strlen((char *)(iVar1 + 0x28))" identifier (argument_list "((char *)(iVar1 + 0x28))" ( (cast_expression "(char *)(iVar1 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))) )))) ;) (expression_statement "FUN_00036d00();" (call_expression "FUN_00036d00()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_2 = (char *)(iVar1 + 0x28);" (assignment_expression "*param_2 = (char *)(iVar1 + 0x28)" (pointer_expression "*param_2" * identifier) = (cast_expression "(char *)(iVar1 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) ;) (expression_statement "*param_3 = iVar1 + 0x29 + sVar2;" (assignment_expression "*param_3 = iVar1 + 0x29 + sVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "iVar1 + 0x29 + sVar2" (binary_expression "iVar1 + 0x29" identifier + number_literal) + identifier)) ;) (expression_statement "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;" (assignment_expression "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (pointer_expression "*param_4" * identifier) = (binary_expression "(*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (parenthesized_expression "(*(int *)(iVar1 + 0x10) + -0x29)" ( (binary_expression "*(int *)(iVar1 + 0x10) + -0x29" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) )) - identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nsqlite3Fts5HashScanEntry(Fts5Hash *pHash,char **pzTerm,u8 **ppDoclist,int *pnDoclist)\n\n{\n  Fts5HashEntry *pFVar1;\n  size_t sVar2;\n  Fts5Hash *in_stack_ffffffd4;\n  Fts5HashEntry *in_stack_ffffffd8;\n  \n  pFVar1 = pHash->pScan;\n  if (pFVar1 != (Fts5HashEntry *)0x0) {\n    sVar2 = strlen((char *)(pFVar1 + 1));\n    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);\n    *pzTerm = (char *)(pFVar1 + 1);\n    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);\n    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;\n    return;\n  }\n  *pzTerm = (char *)0x0;\n  *ppDoclist = (u8 *)0x0;\n  *pnDoclist = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3\nsqlite3Fts5HashScanEntry(Fts5Hash *pHash,char **pzTerm,u8 **ppDoclist,int *pnDoclist)\n\n{\n  Fts5HashEntry *pFVar1;\n  size_t sVar2;\n  Fts5Hash *in_stack_ffffffd4;\n  Fts5HashEntry *in_stack_ffffffd8;\n  \n  pFVar1 = pHash->pScan;\n  if (pFVar1 != (Fts5HashEntry *)0x0) {\n    sVar2 = strlen((char *)(pFVar1 + 1));\n    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);\n    *pzTerm = (char *)(pFVar1 + 1);\n    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);\n    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;\n    return;\n  }\n  *pzTerm = (char *)0x0;\n  *ppDoclist = (u8 *)0x0;\n  *pnDoclist = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts5HashScanEntry(Fts5Hash *pHash,char **pzTerm,u8 **ppDoclist,int *pnDoclist)" identifier (parameter_list "(Fts5Hash *pHash,char **pzTerm,u8 **ppDoclist,int *pnDoclist)" ( (parameter_declaration "Fts5Hash *pHash" type_identifier (pointer_declarator "*pHash" * identifier)) , (parameter_declaration "char **pzTerm" primitive_type (pointer_declarator "**pzTerm" * (pointer_declarator "*pzTerm" * identifier))) , (parameter_declaration "u8 **ppDoclist" type_identifier (pointer_declarator "**ppDoclist" * (pointer_declarator "*ppDoclist" * identifier))) , (parameter_declaration "int *pnDoclist" primitive_type (pointer_declarator "*pnDoclist" * identifier)) ))) (compound_statement "{\n  Fts5HashEntry *pFVar1;\n  size_t sVar2;\n  Fts5Hash *in_stack_ffffffd4;\n  Fts5HashEntry *in_stack_ffffffd8;\n  \n  pFVar1 = pHash->pScan;\n  if (pFVar1 != (Fts5HashEntry *)0x0) {\n    sVar2 = strlen((char *)(pFVar1 + 1));\n    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);\n    *pzTerm = (char *)(pFVar1 + 1);\n    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);\n    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;\n    return;\n  }\n  *pzTerm = (char *)0x0;\n  *ppDoclist = (u8 *)0x0;\n  *pnDoclist = 0;\n  return;\n}" { (declaration "Fts5HashEntry *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "Fts5Hash *in_stack_ffffffd4;" type_identifier (pointer_declarator "*in_stack_ffffffd4" * identifier) ;) (declaration "Fts5HashEntry *in_stack_ffffffd8;" type_identifier (pointer_declarator "*in_stack_ffffffd8" * identifier) ;) (expression_statement "pFVar1 = pHash->pScan;" (assignment_expression "pFVar1 = pHash->pScan" identifier = (field_expression "pHash->pScan" identifier -> field_identifier)) ;) (if_statement "if (pFVar1 != (Fts5HashEntry *)0x0) {\n    sVar2 = strlen((char *)(pFVar1 + 1));\n    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);\n    *pzTerm = (char *)(pFVar1 + 1);\n    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);\n    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;\n    return;\n  }" if (parenthesized_expression "(pFVar1 != (Fts5HashEntry *)0x0)" ( (binary_expression "pFVar1 != (Fts5HashEntry *)0x0" identifier != (cast_expression "(Fts5HashEntry *)0x0" ( (type_descriptor "Fts5HashEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen((char *)(pFVar1 + 1));\n    fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);\n    *pzTerm = (char *)(pFVar1 + 1);\n    *ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);\n    *pnDoclist = (pFVar1->nData + -0x29) - sVar2;\n    return;\n  }" { (expression_statement "sVar2 = strlen((char *)(pFVar1 + 1));" (assignment_expression "sVar2 = strlen((char *)(pFVar1 + 1))" identifier = (call_expression "strlen((char *)(pFVar1 + 1))" identifier (argument_list "((char *)(pFVar1 + 1))" ( (cast_expression "(char *)(pFVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pFVar1 + 1)" ( (binary_expression "pFVar1 + 1" identifier + number_literal) ))) )))) ;) (expression_statement "fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash);" (call_expression "fts5HashAddPoslistSize(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash)" identifier (argument_list "(in_stack_ffffffd4,in_stack_ffffffd8,(Fts5HashEntry *)pHash)" ( identifier , identifier , (cast_expression "(Fts5HashEntry *)pHash" ( (type_descriptor "Fts5HashEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "*pzTerm = (char *)(pFVar1 + 1);" (assignment_expression "*pzTerm = (char *)(pFVar1 + 1)" (pointer_expression "*pzTerm" * identifier) = (cast_expression "(char *)(pFVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pFVar1 + 1)" ( (binary_expression "pFVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1);" (assignment_expression "*ppDoclist = (u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1)" (pointer_expression "*ppDoclist" * identifier) = (cast_expression "(u8 *)((int)&pFVar1[1].pHashNext + sVar2 + 1)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFVar1[1].pHashNext + sVar2 + 1)" ( (binary_expression "(int)&pFVar1[1].pHashNext + sVar2 + 1" (binary_expression "(int)&pFVar1[1].pHashNext + sVar2" (cast_expression "(int)&pFVar1[1].pHashNext" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFVar1[1].pHashNext" & (field_expression "pFVar1[1].pHashNext" (subscript_expression "pFVar1[1]" identifier [ number_literal ]) . field_identifier))) + identifier) + number_literal) )))) ;) (expression_statement "*pnDoclist = (pFVar1->nData + -0x29) - sVar2;" (assignment_expression "*pnDoclist = (pFVar1->nData + -0x29) - sVar2" (pointer_expression "*pnDoclist" * identifier) = (binary_expression "(pFVar1->nData + -0x29) - sVar2" (parenthesized_expression "(pFVar1->nData + -0x29)" ( (binary_expression "pFVar1->nData + -0x29" (field_expression "pFVar1->nData" identifier -> field_identifier) + number_literal) )) - identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "*pzTerm = (char *)0x0;" (assignment_expression "*pzTerm = (char *)0x0" (pointer_expression "*pzTerm" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*ppDoclist = (u8 *)0x0;" (assignment_expression "*ppDoclist = (u8 *)0x0" (pointer_expression "*ppDoclist" * identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*pnDoclist = 0;" (assignment_expression "*pnDoclist = 0" (pointer_expression "*pnDoclist" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 *param_2,int *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" { (expression_statement "sVar2 = strlen((char *)(iVar1 + 0x28));" (assignment_expression "sVar2 = strlen((char *)(iVar1 + 0x28))" identifier = (call_expression "strlen((char *)(iVar1 + 0x28))" identifier (argument_list "((char *)(iVar1 + 0x28))" ( (cast_expression "(char *)(iVar1 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))) )))) ;) (expression_statement "FUN_00036d00();" (call_expression "FUN_00036d00()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_2 = (char *)(iVar1 + 0x28);" (assignment_expression "*param_2 = (char *)(iVar1 + 0x28)" (pointer_expression "*param_2" * identifier) = (cast_expression "(char *)(iVar1 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) ;) (expression_statement "*param_3 = iVar1 + 0x29 + sVar2;" (assignment_expression "*param_3 = iVar1 + 0x29 + sVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "iVar1 + 0x29 + sVar2" (binary_expression "iVar1 + 0x29" identifier + number_literal) + identifier)) ;) (expression_statement "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;" (assignment_expression "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (pointer_expression "*param_4" * identifier) = (binary_expression "(*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (parenthesized_expression "(*(int *)(iVar1 + 0x10) + -0x29)" ( (binary_expression "*(int *)(iVar1 + 0x10) + -0x29" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) )) - identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(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)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) - IDENT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00036e70(int param_1,undefined4 *param_2,int *param_3,int *param_4)" (identifier "FUN_00036e70") (parameter_list "(int param_1,undefined4 *param_2,int *param_3,int *param_4)" (( "(") (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 "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x10);\n  if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }\n  *param_2 = 0;\n  *param_3 = 0;\n  *param_4 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    sVar2 = strlen((char *)(iVar1 + 0x28));\n    FUN_00036d00();\n    *param_2 = (char *)(iVar1 + 0x28);\n    *param_3 = iVar1 + 0x29 + sVar2;\n    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;\n    return;\n  }" ({ "{") (expression_statement "sVar2 = strlen((char *)(iVar1 + 0x28));" (assignment_expression "sVar2 = strlen((char *)(iVar1 + 0x28))" (identifier "sVar2") (= "=") (call_expression "strlen((char *)(iVar1 + 0x28))" (identifier "strlen") (argument_list "((char *)(iVar1 + 0x28))" (( "(") (cast_expression "(char *)(iVar1 + 0x28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")"))) () ")")))) (; ";")) (expression_statement "FUN_00036d00();" (call_expression "FUN_00036d00()" (identifier "FUN_00036d00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_2 = (char *)(iVar1 + 0x28);" (assignment_expression "*param_2 = (char *)(iVar1 + 0x28)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(char *)(iVar1 + 0x28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (expression_statement "*param_3 = iVar1 + 0x29 + sVar2;" (assignment_expression "*param_3 = iVar1 + 0x29 + sVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "iVar1 + 0x29 + sVar2" (binary_expression "iVar1 + 0x29" (identifier "iVar1") (+ "+") (number_literal "0x29")) (+ "+") (identifier "sVar2"))) (; ";")) (expression_statement "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;" (assignment_expression "*param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "(*(int *)(iVar1 + 0x10) + -0x29) - sVar2" (parenthesized_expression "(*(int *)(iVar1 + 0x10) + -0x29)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) + -0x29" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "-0x29")) () ")")) (- "-") (identifier "sVar2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (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 *pHash,char **pzTerm,type_2 **ppDoclist,int *pnDoclist)

{
  type_3 *var_1;
  size_t var_4;
  type_1 *in_stack_ffffffd4;
  type_3 *in_stack_ffffffd8;
  
  var_1 = pHash->pScan;
  if (var_1 != (type_3 *)0x0) {
    var_4 = var_2((char *)(var_1 + 1));
    var_3(in_stack_ffffffd4,in_stack_ffffffd8,(type_3 *)pHash);
    *pzTerm = (char *)(var_1 + 1);
    *ppDoclist = (type_2 *)((int)&var_1[1].pHashNext + var_4 + 1);
    *pnDoclist = (var_1->nData + -0x29) - var_4;
    return;
  }
  *pzTerm = (char *)0x0;
  *ppDoclist = (type_2 *)0x0;
  *pnDoclist = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) (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: (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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (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))) right: (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

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

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

{
  int iVar1;
  size_t sVar2;
  
  iVar1 = *(int *)(param_1 + 0x10);
  if (iVar1 != 0) {
    sVar2 = strlen((char *)(iVar1 + 0x28));
    FUN_00036d00();
    *param_2 = (char *)(iVar1 + 0x28);
    *param_3 = iVar1 + 0x29 + sVar2;
    *param_4 = (*(int *)(iVar1 + 0x10) + -0x29) - sVar2;
    return;
  }
  *param_2 = 0;
  *param_3 = 0;
  *param_4 = 0;
  return;
}

