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

int unicodeOpen(sqlite3_tokenizer *p,char *aInput,int nInput,sqlite3_tokenizer_cursor **pp)

{
  sqlite3_tokenizer_cursor *psVar1;
  sqlite3_tokenizer *psVar2;
  uint uVar3;
  
  psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c);
  if (psVar1 != (sqlite3_tokenizer_cursor *)0x0) {
    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;
    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;
    uVar3 = 0;
    do {
      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;
      uVar3 = uVar3 + 4;
    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;
    if (aInput == (char *)0x0) {
      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;
    }
    else if (nInput < 0) {
      psVar2 = (sqlite3_tokenizer *)strlen(aInput);
      psVar1[2].pTokenizer = psVar2;
    }
    else {
      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;
    }
    *pp = psVar1;
    return 0;
  }
  return 7;
}



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

undefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  size_t sVar2;
  uint uVar3;
  
  puVar1 = (undefined4 *)FUN_0003e090(0x1c);
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = 0;
    puVar1[6] = 0;
    uVar3 = 0;
    do {
      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;
      uVar3 = uVar3 + 4;
    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
    puVar1[1] = param_2;
    if (param_2 == (char *)0x0) {
      puVar1[2] = 0;
    }
    else if (param_3 < 0) {
      sVar2 = strlen(param_2);
      puVar1[2] = sVar2;
    }
    else {
      puVar1[2] = param_3;
    }
    *param_4 = puVar1;
    return 0;
  }
  return 7;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x10a39c
SUB ESP,0xc
PUSH 0x1c
CALL 0x0003e090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003ebc8
LEA EDX,[EAX + 0x4]
MOV ESI,EAX
MOV dword ptr [EAX],0x0
XOR ECX,ECX
AND EDX,0xfffffffc
MOV dword ptr [EAX + 0x18],0x0
XOR EDI,EDI
SUB EAX,EDX
ADD EAX,0x1c
AND EAX,0xfffffffc
MOV dword ptr [EDX + EDI*0x1],ECX
ADD EDI,0x4
CMP EDI,EAX
JC 0x0003eb70
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JZ 0x0003eba0
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JS 0x0003ebb0
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],ESI
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [ESI + 0x8],0x0
JMP 0x0003eb94
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x00014230
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
JMP 0x0003eb94
POP EBX
MOV EAX,0x7
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" comment (function_definition "undefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x1c);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x1c)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\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      puVar1[2] = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" else (if_statement "if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar1[2] = sVar2;" (assignment_expression "puVar1[2] = sVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar1[2] = param_3;\n    }" else (compound_statement "{\n      puVar1[2] = param_3;\n    }" { (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) }))))) (expression_statement "*param_4 = puVar1;" (assignment_expression "*param_4 = puVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint unicodeOpen(sqlite3_tokenizer *p,char *aInput,int nInput,sqlite3_tokenizer_cursor **pp)\n\n{\n  sqlite3_tokenizer_cursor *psVar1;\n  sqlite3_tokenizer *psVar2;\n  uint uVar3;\n  \n  psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c);\n  if (psVar1 != (sqlite3_tokenizer_cursor *)0x0) {\n    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;\n    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;\n    if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }\n    *pp = psVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" comment (function_definition "int unicodeOpen(sqlite3_tokenizer *p,char *aInput,int nInput,sqlite3_tokenizer_cursor **pp)\n\n{\n  sqlite3_tokenizer_cursor *psVar1;\n  sqlite3_tokenizer *psVar2;\n  uint uVar3;\n  \n  psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c);\n  if (psVar1 != (sqlite3_tokenizer_cursor *)0x0) {\n    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;\n    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;\n    if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }\n    *pp = psVar1;\n    return 0;\n  }\n  return 7;\n}" primitive_type (function_declarator "unicodeOpen(sqlite3_tokenizer *p,char *aInput,int nInput,sqlite3_tokenizer_cursor **pp)" identifier (parameter_list "(sqlite3_tokenizer *p,char *aInput,int nInput,sqlite3_tokenizer_cursor **pp)" ( (parameter_declaration "sqlite3_tokenizer *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *aInput" primitive_type (pointer_declarator "*aInput" * identifier)) , (parameter_declaration "int nInput" primitive_type identifier) , (parameter_declaration "sqlite3_tokenizer_cursor **pp" type_identifier (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) ))) (compound_statement "{\n  sqlite3_tokenizer_cursor *psVar1;\n  sqlite3_tokenizer *psVar2;\n  uint uVar3;\n  \n  psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c);\n  if (psVar1 != (sqlite3_tokenizer_cursor *)0x0) {\n    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;\n    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;\n    if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }\n    *pp = psVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "sqlite3_tokenizer_cursor *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "sqlite3_tokenizer *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c);" (assignment_expression "psVar1 = (sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c)" identifier = (cast_expression "(sqlite3_tokenizer_cursor *)sqlite3_malloc(0x1c)" ( (type_descriptor "sqlite3_tokenizer_cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (psVar1 != (sqlite3_tokenizer_cursor *)0x0) {\n    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;\n    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;\n    if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }\n    *pp = psVar1;\n    return 0;\n  }" if (parenthesized_expression "(psVar1 != (sqlite3_tokenizer_cursor *)0x0)" ( (binary_expression "psVar1 != (sqlite3_tokenizer_cursor *)0x0" identifier != (cast_expression "(sqlite3_tokenizer_cursor *)0x0" ( (type_descriptor "sqlite3_tokenizer_cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;\n    psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;\n    if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }\n    *pp = psVar1;\n    return 0;\n  }" { (expression_statement "psVar1->pTokenizer = (sqlite3_tokenizer *)0x0;" (assignment_expression "psVar1->pTokenizer = (sqlite3_tokenizer *)0x0" (field_expression "psVar1->pTokenizer" identifier -> field_identifier) = (cast_expression "(sqlite3_tokenizer *)0x0" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0;" (assignment_expression "psVar1[6].pTokenizer = (sqlite3_tokenizer *)0x0" (field_expression "psVar1[6].pTokenizer" (subscript_expression "psVar1[6]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_tokenizer *)0x0" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(psVar1 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(psVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(psVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 1) & 0xfffffffc" (call_expression "(uint)(psVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)psVar1 + (0x1c - ((uint)(psVar1 + 1) & 0xfffffffc))" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(psVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(psVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(psVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(psVar1 + 1) & 0xfffffffc" (call_expression "(uint)(psVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1 + 1)" ( (binary_expression "psVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput;" (assignment_expression "psVar1[1].pTokenizer = (sqlite3_tokenizer *)aInput" (field_expression "psVar1[1].pTokenizer" (subscript_expression "psVar1[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_tokenizer *)aInput" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (aInput == (char *)0x0) {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }\n    else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }" if (parenthesized_expression "(aInput == (char *)0x0)" ( (binary_expression "aInput == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;\n    }" { (expression_statement "psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0;" (assignment_expression "psVar1[2].pTokenizer = (sqlite3_tokenizer *)0x0" (field_expression "psVar1[2].pTokenizer" (subscript_expression "psVar1[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_tokenizer *)0x0" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }" else (if_statement "if (nInput < 0) {\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }\n    else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }" if (parenthesized_expression "(nInput < 0)" ( (binary_expression "nInput < 0" identifier < number_literal) )) (compound_statement "{\n      psVar2 = (sqlite3_tokenizer *)strlen(aInput);\n      psVar1[2].pTokenizer = psVar2;\n    }" { (expression_statement "psVar2 = (sqlite3_tokenizer *)strlen(aInput);" (assignment_expression "psVar2 = (sqlite3_tokenizer *)strlen(aInput)" identifier = (cast_expression "(sqlite3_tokenizer *)strlen(aInput)" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strlen(aInput)" identifier (argument_list "(aInput)" ( identifier ))))) ;) (expression_statement "psVar1[2].pTokenizer = psVar2;" (assignment_expression "psVar1[2].pTokenizer = psVar2" (field_expression "psVar1[2].pTokenizer" (subscript_expression "psVar1[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) }) (else_clause "else {\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }" else (compound_statement "{\n      psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;\n    }" { (expression_statement "psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput;" (assignment_expression "psVar1[2].pTokenizer = (sqlite3_tokenizer *)nInput" (field_expression "psVar1[2].pTokenizer" (subscript_expression "psVar1[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_tokenizer *)nInput" ( (type_descriptor "sqlite3_tokenizer *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))))) (expression_statement "*pp = psVar1;" (assignment_expression "*pp = psVar1" (pointer_expression "*pp" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" (function_definition "undefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x1c);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x1c)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\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      puVar1[2] = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" else (if_statement "if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar1[2] = sVar2;" (assignment_expression "puVar1[2] = sVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar1[2] = param_3;\n    }" else (compound_statement "{\n      puVar1[2] = param_3;\n    }" { (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) }))))) (expression_statement "*param_4 = puVar1;" (assignment_expression "*param_4 = puVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003eb30(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" (identifier "FUN_0003eb30") (parameter_list "(undefined4 param_1,char *param_2,int param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x1c);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }\n  return 7;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x1c);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x1c)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0003e090(0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003e090(0x1c)" (identifier "FUN_0003e090") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *puVar1 = 0;\n    puVar1[6] = 0;\n    uVar3 = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n    puVar1[1] = param_2;\n    if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }\n    *param_4 = puVar1;\n    return 0;\n  }" ({ "{") (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n      uVar3 = uVar3 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3)" (( "(") (binary_expression "((uint)(puVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 4" (identifier "uVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar3") (< "<") (parenthesized_expression "((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (parenthesized_expression "(0x1c - ((uint)(puVar1 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)" (number_literal "0x1c") (- "-") (parenthesized_expression "((uint)(puVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 1) & 0xfffffffc" (call_expression "(uint)(puVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n      puVar1[2] = 0;\n    }\n    else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\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      puVar1[2] = 0;\n    }" ({ "{") (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" (else "else") (if_statement "if (param_3 < 0) {\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }\n    else {\n      puVar1[2] = param_3;\n    }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      sVar2 = strlen(param_2);\n      puVar1[2] = sVar2;\n    }" ({ "{") (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar1[2] = sVar2;" (assignment_expression "puVar1[2] = sVar2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "sVar2")) (; ";")) (} "}")) (else_clause "else {\n      puVar1[2] = param_3;\n    }" (else "else") (compound_statement "{\n      puVar1[2] = param_3;\n    }" ({ "{") (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (} "}")))))) (expression_statement "*param_4 = puVar1;" (assignment_expression "*param_4 = puVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}")))

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

int function_1(type_1 *p,char *var_4,int var_5,type_2 **pp)

{
  type_2 *var_2;
  type_1 *psVar2;
  type_3 var_3;
  
  var_2 = (type_2 *)var_1(0x1c);
  if (var_2 != (type_2 *)0x0) {
    var_2->pTokenizer = (type_1 *)0x0;
    var_2[6].pTokenizer = (type_1 *)0x0;
    var_3 = 0;
    do {
      *(type_4 *)(((type_3)(var_2 + 1) & 0xfffffffc) + var_3) = 0;
      var_3 = var_3 + 4;
    } while (var_3 < ((int)var_2 + (0x1c - ((type_3)(var_2 + 1) & 0xfffffffc)) & 0xfffffffc));
    var_2[1].pTokenizer = (type_1 *)var_4;
    if (var_4 == (char *)0x0) {
      var_2[2].pTokenizer = (type_1 *)0x0;
    }
    else if (var_5 < 0) {
      psVar2 = (type_1 *)var_6(var_4);
      var_2[2].pTokenizer = psVar2;
    }
    else {
      var_2[2].pTokenizer = (type_1 *)var_5;
    }
    *pp = var_2;
    return 0;
  }
  return 7;
}


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

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

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

{
  undefined4 *puVar1;
  size_t sVar2;
  uint uVar3;
  
  puVar1 = (undefined4 *)FUN_0003e090(0x1c);
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = 0;
    puVar1[6] = 0;
    uVar3 = 0;
    do {
      *(undefined4 *)(((uint)(puVar1 + 1) & 0xfffffffc) + uVar3) = 0;
      uVar3 = uVar3 + 4;
    } while (uVar3 < ((int)puVar1 + (0x1c - ((uint)(puVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
    puVar1[1] = param_2;
    if (param_2 == (char *)0x0) {
      puVar1[2] = 0;
    }
    else if (param_3 < 0) {
      sVar2 = strlen(param_2);
      puVar1[2] = sVar2;
    }
    else {
      puVar1[2] = param_3;
    }
    *param_4 = puVar1;
    return 0;
  }
  return 7;
}

