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

int fts5CreateAux(fts5_api *pApi,char *zName,void *pUserData,fts5_extension_function xFunc,
                 _func_void_void_ptr *xDestroy)

{
  int iVar1;
  size_t sVar2;
  _func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *__s;
  
  iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1);
  if (iVar1 != 0) {
    return iVar1;
  }
  sVar2 = strlen(zName);
  __s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)
        sqlite3_malloc(sVar2 + 0x19);
  if (__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr
              *)0x0) {
    memset(__s,0,sVar2 + 0x19);
    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)
     (__s + 4) = __s + 0x18;
    memcpy(__s + 0x18,zName,sVar2 + 1);
    *(void **)(__s + 8) = pUserData;
    *(fts5_api **)__s = pApi;
    *(fts5_extension_function *)(__s + 0xc) = xFunc;
    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;
    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)
     (__s + 0x14) = pApi[1].xCreateFunction;
    pApi[1].xCreateFunction = __s;
    return 0;
  }
  return 7;
}



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

int FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)

{
  int iVar1;
  size_t sVar2;
  int *__s;
  
  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);
  if (iVar1 != 0) {
    return iVar1;
  }
  sVar2 = strlen(param_2);
  __s = (int *)FUN_0003e090(sVar2 + 0x19);
  if (__s != (int *)0x0) {
    memset(__s,0,sVar2 + 0x19);
    __s[1] = (int)(__s + 6);
    memcpy(__s + 6,param_2,sVar2 + 1);
    __s[2] = param_3;
    *__s = param_1;
    __s[3] = param_4;
    __s[4] = param_5;
    __s[5] = *(int *)(param_1 + 0x1c);
    *(int **)(param_1 + 0x1c) = __s;
    return 0;
  }
  return 7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xd4a9b
SUB ESP,0x20
MOV EDI,dword ptr [ESP + 0x34]
PUSH -0x1
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [EDI + 0x10]
CALL 0x00074390
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00074470
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x40]
CALL 0x00014230
LEA ECX,[EAX + 0x19]
MOV EBP,EAX
MOV dword ptr [ESP],ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL 0x0003e090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000744f8
SUB ESP,0x4
ADD EBP,0x1
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH 0x0
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x00014280
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0xc
LEA EAX,[EDX + 0x18]
MOV dword ptr [EDX + 0x4],EAX
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EAX
CALL 0x000140d0
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [EDX + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x4c]
MOV dword ptr [EDX],EDI
MOV dword ptr [EDX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x50]
ADD ESP,0x10
MOV dword ptr [EDX + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x1c]
MOV dword ptr [EDX + 0x14],EAX
MOV EAX,ESI
MOV dword ptr [EDI + 0x1c],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
MOV ESI,0x7
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}\n\n" comment (function_definition "int FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" primitive_type (function_declarator "FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);" (assignment_expression "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" identifier = (call_expression "FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (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 "__s = (int *)FUN_0003e090(sVar2 + 0x19);" (assignment_expression "__s = (int *)FUN_0003e090(sVar2 + 0x19)" identifier = (cast_expression "(int *)FUN_0003e090(sVar2 + 0x19)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(sVar2 + 0x19)" identifier (argument_list "(sVar2 + 0x19)" ( (binary_expression "sVar2 + 0x19" identifier + number_literal) ))))) ;) (if_statement "if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" if (parenthesized_expression "(__s != (int *)0x0)" ( (binary_expression "__s != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" { (expression_statement "memset(__s,0,sVar2 + 0x19);" (call_expression "memset(__s,0,sVar2 + 0x19)" identifier (argument_list "(__s,0,sVar2 + 0x19)" ( identifier , number_literal , (binary_expression "sVar2 + 0x19" identifier + number_literal) ))) ;) (expression_statement "__s[1] = (int)(__s + 6);" (assignment_expression "__s[1] = (int)(__s + 6)" (subscript_expression "__s[1]" identifier [ number_literal ]) = (cast_expression "(int)(__s + 6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__s + 6)" ( (binary_expression "__s + 6" identifier + number_literal) )))) ;) (expression_statement "memcpy(__s + 6,param_2,sVar2 + 1);" (call_expression "memcpy(__s + 6,param_2,sVar2 + 1)" identifier (argument_list "(__s + 6,param_2,sVar2 + 1)" ( (binary_expression "__s + 6" identifier + number_literal) , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "__s[2] = param_3;" (assignment_expression "__s[2] = param_3" (subscript_expression "__s[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*__s = param_1;" (assignment_expression "*__s = param_1" (pointer_expression "*__s" * identifier) = identifier) ;) (expression_statement "__s[3] = param_4;" (assignment_expression "__s[3] = param_4" (subscript_expression "__s[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[4] = param_5;" (assignment_expression "__s[4] = param_5" (subscript_expression "__s[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[5] = *(int *)(param_1 + 0x1c);" (assignment_expression "__s[5] = *(int *)(param_1 + 0x1c)" (subscript_expression "__s[5]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x1c) = __s;" (assignment_expression "*(int **)(param_1 + 0x1c) = __s" (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = 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/* WARNING: Unknown calling convention */\n\nint fts5CreateAux(fts5_api *pApi,char *zName,void *pUserData,fts5_extension_function xFunc,\n                 _func_void_void_ptr *xDestroy)\n\n{\n  int iVar1;\n  size_t sVar2;\n  _func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *__s;\n  \n  iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(zName);\n  __s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19);\n  if (__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;\n    memcpy(__s + 0x18,zName,sVar2 + 1);\n    *(void **)(__s + 8) = pUserData;\n    *(fts5_api **)__s = pApi;\n    *(fts5_extension_function *)(__s + 0xc) = xFunc;\n    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;\n    pApi[1].xCreateFunction = __s;\n    return 0;\n  }\n  return 7;\n}\n\n" comment comment (function_definition "int fts5CreateAux(fts5_api *pApi,char *zName,void *pUserData,fts5_extension_function xFunc,\n                 _func_void_void_ptr *xDestroy)\n\n{\n  int iVar1;\n  size_t sVar2;\n  _func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *__s;\n  \n  iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(zName);\n  __s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19);\n  if (__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;\n    memcpy(__s + 0x18,zName,sVar2 + 1);\n    *(void **)(__s + 8) = pUserData;\n    *(fts5_api **)__s = pApi;\n    *(fts5_extension_function *)(__s + 0xc) = xFunc;\n    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;\n    pApi[1].xCreateFunction = __s;\n    return 0;\n  }\n  return 7;\n}" primitive_type (function_declarator "fts5CreateAux(fts5_api *pApi,char *zName,void *pUserData,fts5_extension_function xFunc,\n                 _func_void_void_ptr *xDestroy)" identifier (parameter_list "(fts5_api *pApi,char *zName,void *pUserData,fts5_extension_function xFunc,\n                 _func_void_void_ptr *xDestroy)" ( (parameter_declaration "fts5_api *pApi" type_identifier (pointer_declarator "*pApi" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "void *pUserData" primitive_type (pointer_declarator "*pUserData" * identifier)) , (parameter_declaration "fts5_extension_function xFunc" type_identifier identifier) , (parameter_declaration "_func_void_void_ptr *xDestroy" type_identifier (pointer_declarator "*xDestroy" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  _func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *__s;\n  \n  iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(zName);\n  __s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19);\n  if (__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;\n    memcpy(__s + 0x18,zName,sVar2 + 1);\n    *(void **)(__s + 8) = pUserData;\n    *(fts5_api **)__s = pApi;\n    *(fts5_extension_function *)(__s + 0xc) = xFunc;\n    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;\n    pApi[1].xCreateFunction = __s;\n    return 0;\n  }\n  return 7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (expression_statement "iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1);" (assignment_expression "iVar1 = sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1)" identifier = (call_expression "sqlite3_overload_function((sqlite3 *)pApi[1].iVersion,zName,-1)" identifier (argument_list "((sqlite3 *)pApi[1].iVersion,zName,-1)" ( (cast_expression "(sqlite3 *)pApi[1].iVersion" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pApi[1].iVersion" (subscript_expression "pApi[1]" identifier [ number_literal ]) . field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "sVar2 = strlen(zName);" (assignment_expression "sVar2 = strlen(zName)" identifier = (call_expression "strlen(zName)" identifier (argument_list "(zName)" ( identifier )))) ;) (expression_statement "__s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19);" (assignment_expression "__s = (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19)" identifier = (cast_expression "(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *)\n        sqlite3_malloc(sVar2 + 0x19)" ( (type_descriptor "_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(sVar2 + 0x19)" identifier (argument_list "(sVar2 + 0x19)" ( (binary_expression "sVar2 + 0x19" identifier + number_literal) ))))) ;) (if_statement "if (__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;\n    memcpy(__s + 0x18,zName,sVar2 + 1);\n    *(void **)(__s + 8) = pUserData;\n    *(fts5_api **)__s = pApi;\n    *(fts5_extension_function *)(__s + 0xc) = xFunc;\n    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;\n    pApi[1].xCreateFunction = __s;\n    return 0;\n  }" if (parenthesized_expression "(__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0)" ( (binary_expression "__s != (_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0" identifier != (cast_expression "(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *)0x0" ( (type_descriptor "_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr\n              *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,sVar2 + 0x19);\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;\n    memcpy(__s + 0x18,zName,sVar2 + 1);\n    *(void **)(__s + 8) = pUserData;\n    *(fts5_api **)__s = pApi;\n    *(fts5_extension_function *)(__s + 0xc) = xFunc;\n    *(_func_void_void_ptr **)(__s + 0x10) = xDestroy;\n    *(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;\n    pApi[1].xCreateFunction = __s;\n    return 0;\n  }" { (expression_statement "memset(__s,0,sVar2 + 0x19);" (call_expression "memset(__s,0,sVar2 + 0x19)" identifier (argument_list "(__s,0,sVar2 + 0x19)" ( identifier , number_literal , (binary_expression "sVar2 + 0x19" identifier + number_literal) ))) ;) (expression_statement "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18;" (assignment_expression "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4) = __s + 0x18" (pointer_expression "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4)" * (cast_expression "(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 4)" ( (type_descriptor "_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__s + 4)" ( (binary_expression "__s + 4" identifier + number_literal) )))) = (binary_expression "__s + 0x18" identifier + number_literal)) ;) (expression_statement "memcpy(__s + 0x18,zName,sVar2 + 1);" (call_expression "memcpy(__s + 0x18,zName,sVar2 + 1)" identifier (argument_list "(__s + 0x18,zName,sVar2 + 1)" ( (binary_expression "__s + 0x18" identifier + number_literal) , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "*(void **)(__s + 8) = pUserData;" (assignment_expression "*(void **)(__s + 8) = pUserData" (pointer_expression "*(void **)(__s + 8)" * (cast_expression "(void **)(__s + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__s + 8)" ( (binary_expression "__s + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(fts5_api **)__s = pApi;" (assignment_expression "*(fts5_api **)__s = pApi" (pointer_expression "*(fts5_api **)__s" * (cast_expression "(fts5_api **)__s" ( (type_descriptor "fts5_api **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(fts5_extension_function *)(__s + 0xc) = xFunc;" (assignment_expression "*(fts5_extension_function *)(__s + 0xc) = xFunc" (pointer_expression "*(fts5_extension_function *)(__s + 0xc)" * (cast_expression "(fts5_extension_function *)(__s + 0xc)" ( (type_descriptor "fts5_extension_function *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__s + 0xc)" ( (binary_expression "__s + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(_func_void_void_ptr **)(__s + 0x10) = xDestroy;" (assignment_expression "*(_func_void_void_ptr **)(__s + 0x10) = xDestroy" (pointer_expression "*(_func_void_void_ptr **)(__s + 0x10)" * (cast_expression "(_func_void_void_ptr **)(__s + 0x10)" ( (type_descriptor "_func_void_void_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__s + 0x10)" ( (binary_expression "__s + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction;" (assignment_expression "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14) = pApi[1].xCreateFunction" (pointer_expression "*(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14)" * (cast_expression "(_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **)\n     (__s + 0x14)" ( (type_descriptor "_func_int_fts5_api_ptr_char_ptr_void_ptr_fts5_extension_function__func_void_void_ptr_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__s + 0x14)" ( (binary_expression "__s + 0x14" identifier + number_literal) )))) = (field_expression "pApi[1].xCreateFunction" (subscript_expression "pApi[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "pApi[1].xCreateFunction = __s;" (assignment_expression "pApi[1].xCreateFunction = __s" (field_expression "pApi[1].xCreateFunction" (subscript_expression "pApi[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "int FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}\n\n" (function_definition "int FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" primitive_type (function_declarator "FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);" (assignment_expression "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" identifier = (call_expression "FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (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 "__s = (int *)FUN_0003e090(sVar2 + 0x19);" (assignment_expression "__s = (int *)FUN_0003e090(sVar2 + 0x19)" identifier = (cast_expression "(int *)FUN_0003e090(sVar2 + 0x19)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(sVar2 + 0x19)" identifier (argument_list "(sVar2 + 0x19)" ( (binary_expression "sVar2 + 0x19" identifier + number_literal) ))))) ;) (if_statement "if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" if (parenthesized_expression "(__s != (int *)0x0)" ( (binary_expression "__s != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" { (expression_statement "memset(__s,0,sVar2 + 0x19);" (call_expression "memset(__s,0,sVar2 + 0x19)" identifier (argument_list "(__s,0,sVar2 + 0x19)" ( identifier , number_literal , (binary_expression "sVar2 + 0x19" identifier + number_literal) ))) ;) (expression_statement "__s[1] = (int)(__s + 6);" (assignment_expression "__s[1] = (int)(__s + 6)" (subscript_expression "__s[1]" identifier [ number_literal ]) = (cast_expression "(int)(__s + 6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__s + 6)" ( (binary_expression "__s + 6" identifier + number_literal) )))) ;) (expression_statement "memcpy(__s + 6,param_2,sVar2 + 1);" (call_expression "memcpy(__s + 6,param_2,sVar2 + 1)" identifier (argument_list "(__s + 6,param_2,sVar2 + 1)" ( (binary_expression "__s + 6" identifier + number_literal) , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "__s[2] = param_3;" (assignment_expression "__s[2] = param_3" (subscript_expression "__s[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*__s = param_1;" (assignment_expression "*__s = param_1" (pointer_expression "*__s" * identifier) = identifier) ;) (expression_statement "__s[3] = param_4;" (assignment_expression "__s[3] = param_4" (subscript_expression "__s[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[4] = param_5;" (assignment_expression "__s[4] = param_5" (subscript_expression "__s[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[5] = *(int *)(param_1 + 0x1c);" (assignment_expression "__s[5] = *(int *)(param_1 + 0x1c)" (subscript_expression "__s[5]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x1c) = __s;" (assignment_expression "*(int **)(param_1 + 0x1c) = __s" (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = 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 IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" (primitive_type "int") (function_declarator "FUN_00074430(int param_1,char *param_2,int param_3,int param_4,int param_5)" (identifier "FUN_00074430") (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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 "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int *__s;\n  \n  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  sVar2 = strlen(param_2);\n  __s = (int *)FUN_0003e090(sVar2 + 0x19);\n  if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }\n  return 7;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int *__s;" (primitive_type "int") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (expression_statement "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);" (assignment_expression "iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" (identifier "iVar1") (= "=") (call_expression "FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" (identifier "FUN_00074390") (argument_list "(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "param_2") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (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 "__s = (int *)FUN_0003e090(sVar2 + 0x19);" (assignment_expression "__s = (int *)FUN_0003e090(sVar2 + 0x19)" (identifier "__s") (= "=") (cast_expression "(int *)FUN_0003e090(sVar2 + 0x19)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003e090(sVar2 + 0x19)" (identifier "FUN_0003e090") (argument_list "(sVar2 + 0x19)" (( "(") (binary_expression "sVar2 + 0x19" (identifier "sVar2") (+ "+") (number_literal "0x19")) () ")"))))) (; ";")) (if_statement "if (__s != (int *)0x0) {\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" (if "if") (parenthesized_expression "(__s != (int *)0x0)" (( "(") (binary_expression "__s != (int *)0x0" (identifier "__s") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    memset(__s,0,sVar2 + 0x19);\n    __s[1] = (int)(__s + 6);\n    memcpy(__s + 6,param_2,sVar2 + 1);\n    __s[2] = param_3;\n    *__s = param_1;\n    __s[3] = param_4;\n    __s[4] = param_5;\n    __s[5] = *(int *)(param_1 + 0x1c);\n    *(int **)(param_1 + 0x1c) = __s;\n    return 0;\n  }" ({ "{") (expression_statement "memset(__s,0,sVar2 + 0x19);" (call_expression "memset(__s,0,sVar2 + 0x19)" (identifier "memset") (argument_list "(__s,0,sVar2 + 0x19)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "sVar2 + 0x19" (identifier "sVar2") (+ "+") (number_literal "0x19")) () ")"))) (; ";")) (expression_statement "__s[1] = (int)(__s + 6);" (assignment_expression "__s[1] = (int)(__s + 6)" (subscript_expression "__s[1]" (identifier "__s") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)(__s + 6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(__s + 6)" (( "(") (binary_expression "__s + 6" (identifier "__s") (+ "+") (number_literal "6")) () ")")))) (; ";")) (expression_statement "memcpy(__s + 6,param_2,sVar2 + 1);" (call_expression "memcpy(__s + 6,param_2,sVar2 + 1)" (identifier "memcpy") (argument_list "(__s + 6,param_2,sVar2 + 1)" (( "(") (binary_expression "__s + 6" (identifier "__s") (+ "+") (number_literal "6")) (, ",") (identifier "param_2") (, ",") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "__s[2] = param_3;" (assignment_expression "__s[2] = param_3" (subscript_expression "__s[2]" (identifier "__s") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*__s = param_1;" (assignment_expression "*__s = param_1" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "__s[3] = param_4;" (assignment_expression "__s[3] = param_4" (subscript_expression "__s[3]" (identifier "__s") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "__s[4] = param_5;" (assignment_expression "__s[4] = param_5" (subscript_expression "__s[4]" (identifier "__s") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "__s[5] = *(int *)(param_1 + 0x1c);" (assignment_expression "__s[5] = *(int *)(param_1 + 0x1c)" (subscript_expression "__s[5]" (identifier "__s") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 0x1c) = __s;" (assignment_expression "*(int **)(param_1 + 0x1c) = __s" (pointer_expression "*(int **)(param_1 + 0x1c)" (* "*") (cast_expression "(int **)(param_1 + 0x1c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "__s")) (; ";")) (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 */
/* WARNING: Unknown calling convention */

int function_1(type_1 *pApi,char *zName,void *pUserData,type_2 xFunc,
                 type_3 *xDestroy)

{
  int var_2;
  size_t var_5;
  type_4 *var_6;
  
  var_2 = var_1((type_5 *)pApi[1].iVersion,zName,-1);
  if (var_2 != 0) {
    return var_2;
  }
  var_5 = var_3(zName);
  var_6 = (type_4 *)
        var_4(var_5 + 0x19);
  if (var_6 != (type_4
              *)0x0) {
    var_7(var_6,0,var_5 + 0x19);
    *(type_4 **)
     (var_6 + 4) = var_6 + 0x18;
    var_8(var_6 + 0x18,zName,var_5 + 1);
    *(void **)(var_6 + 8) = pUserData;
    *(type_1 **)var_6 = pApi;
    *(type_2 *)(var_6 + 0xc) = xFunc;
    *(type_3 **)(var_6 + 0x10) = xDestroy;
    *(type_4 **)
     (var_6 + 0x14) = pApi[1].xCreateFunction;
    pApi[1].xCreateFunction = var_6;
    return 0;
  }
  return 7;
}


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

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

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

{
  int iVar1;
  size_t sVar2;
  int *__s;
  
  iVar1 = FUN_00074390(*(undefined4 *)(param_1 + 0x10),param_2,0xffffffff);
  if (iVar1 != 0) {
    return iVar1;
  }
  sVar2 = strlen(param_2);
  __s = (int *)FUN_0003e090(sVar2 + 0x19);
  if (__s != (int *)0x0) {
    memset(__s,0,sVar2 + 0x19);
    __s[1] = (int)(__s + 6);
    memcpy(__s + 6,param_2,sVar2 + 1);
    __s[2] = param_3;
    *__s = param_1;
    __s[3] = param_4;
    __s[4] = param_5;
    __s[5] = *(int *)(param_1 + 0x1c);
    *(int **)(param_1 + 0x1c) = __s;
    return 0;
  }
  return 7;
}

