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

UnpackedRecord * __regparm3 vdbeUnpackRecord(KeyInfo *pKeyInfo,int nKey,void *pKey)

{
  KeyInfo *pKeyInfo_1;
  
  pKeyInfo_1 = (KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo);
  if (pKeyInfo_1 != (KeyInfo *)0x0) {
    memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);
    sqlite3VdbeRecordUnpack
              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,
               pKeyInfo_1);
  }
  return (UnpackedRecord *)pKeyInfo_1;
}



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

int __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_00044940();
  if (iVar1 != 0) {
    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);
    FUN_00049b20(param_3,iVar1);
  }
  return iVar1;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017230
ADD EBX,0x13219b
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EDX
CALL 0x00044940
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00049cd5
MOVZX EAX,word ptr [ESI + 0x6]
MOV EDX,dword ptr [EDI + 0x4]
SUB ESP,0x4
LEA EAX,[EAX + EAX*0x4 + 0x5]
SHL EAX,0x3
PUSH EAX
PUSH 0x0
PUSH EDX
CALL 0x00015440
POP ECX
POP EBX
PUSH EDI
PUSH EBP
MOV ECX,dword ptr [ESP + 0x1c]
LEA EDX,[ESI + 0xc]
LEA EAX,[ESI + 0x4]
CALL 0x00049b20
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00044940();" (assignment_expression "iVar1 = FUN_00044940()" identifier = (call_expression "FUN_00044940()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" { (expression_statement "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);" (call_expression "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" identifier (argument_list "(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" ( (pointer_expression "*(void **)(iVar1 + 4)" * (cast_expression "(void **)(iVar1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , number_literal , (binary_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8" (parenthesized_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5)" ( (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5 + 5" (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5" (binary_expression "(uint)*(ushort *)(param_1 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) * number_literal) + number_literal) )) * number_literal) ))) ;) (expression_statement "FUN_00049b20(param_3,iVar1);" (call_expression "FUN_00049b20(param_3,iVar1)" identifier (argument_list "(param_3,iVar1)" ( identifier , identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nUnpackedRecord * __regparm3 vdbeUnpackRecord(KeyInfo *pKeyInfo,int nKey,void *pKey)\n\n{\n  KeyInfo *pKeyInfo_1;\n  \n  pKeyInfo_1 = (KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo);\n  if (pKeyInfo_1 != (KeyInfo *)0x0) {\n    memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);\n    sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1);\n  }\n  return (UnpackedRecord *)pKeyInfo_1;\n}\n\n" comment (ERROR "UnpackedRecord * __regparm3 vdbeUnpackRecord(KeyInfo *pKeyInfo,int nKey,void *pKey)" (binary_expression "UnpackedRecord * __regparm3 vdbeUnpackRecord(KeyInfo *pKeyInfo,int nKey,void *pKey)" identifier * (ERROR "__regparm3" identifier) (call_expression "vdbeUnpackRecord(KeyInfo *pKeyInfo,int nKey,void *pKey)" identifier (argument_list "(KeyInfo *pKeyInfo,int nKey,void *pKey)" ( (binary_expression "KeyInfo *pKeyInfo" identifier * identifier) , (ERROR "int" identifier) identifier , (binary_expression "void *pKey" identifier * identifier) ))))) (compound_statement "{\n  KeyInfo *pKeyInfo_1;\n  \n  pKeyInfo_1 = (KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo);\n  if (pKeyInfo_1 != (KeyInfo *)0x0) {\n    memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);\n    sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1);\n  }\n  return (UnpackedRecord *)pKeyInfo_1;\n}" { (declaration "KeyInfo *pKeyInfo_1;" type_identifier (pointer_declarator "*pKeyInfo_1" * identifier) ;) (expression_statement "pKeyInfo_1 = (KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo);" (assignment_expression "pKeyInfo_1 = (KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo)" identifier = (cast_expression "(KeyInfo *)sqlite3VdbeAllocUnpackedRecord(pKeyInfo)" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3VdbeAllocUnpackedRecord(pKeyInfo)" identifier (argument_list "(pKeyInfo)" ( identifier ))))) ;) (if_statement "if (pKeyInfo_1 != (KeyInfo *)0x0) {\n    memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);\n    sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1);\n  }" if (parenthesized_expression "(pKeyInfo_1 != (KeyInfo *)0x0)" ( (binary_expression "pKeyInfo_1 != (KeyInfo *)0x0" identifier != (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);\n    sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1);\n  }" { (expression_statement "memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8);" (call_expression "memset(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8)" identifier (argument_list "(*(void **)&pKeyInfo_1->enc,0,((uint)pKeyInfo->nKeyField * 5 + 5) * 8)" ( (pointer_expression "*(void **)&pKeyInfo_1->enc" * (cast_expression "(void **)&pKeyInfo_1->enc" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&pKeyInfo_1->enc" & (field_expression "pKeyInfo_1->enc" identifier -> field_identifier)))) , number_literal , (binary_expression "((uint)pKeyInfo->nKeyField * 5 + 5) * 8" (parenthesized_expression "((uint)pKeyInfo->nKeyField * 5 + 5)" ( (binary_expression "(uint)pKeyInfo->nKeyField * 5 + 5" (binary_expression "(uint)pKeyInfo->nKeyField * 5" (cast_expression "(uint)pKeyInfo->nKeyField" ( (type_descriptor "uint" type_identifier) ) (field_expression "pKeyInfo->nKeyField" identifier -> field_identifier)) * number_literal) + number_literal) )) * number_literal) ))) ;) (expression_statement "sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1);" (call_expression "sqlite3VdbeRecordUnpack\n              ((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1)" identifier (argument_list "((KeyInfo *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(UnpackedRecord *)pKey,\n               pKeyInfo_1)" ( (cast_expression "(KeyInfo *)&pKeyInfo->enc" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pKeyInfo->enc" & (field_expression "pKeyInfo->enc" identifier -> field_identifier))) , (cast_expression "(int)&pKeyInfo->db" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pKeyInfo->db" & (field_expression "pKeyInfo->db" identifier -> field_identifier))) , (cast_expression "(void *)nKey" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(UnpackedRecord *)pKey" ( (type_descriptor "UnpackedRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) })) (return_statement "return (UnpackedRecord *)pKeyInfo_1;" return (cast_expression "(UnpackedRecord *)pKeyInfo_1" ( (type_descriptor "UnpackedRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))
(translation_unit "int __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00044940();" (assignment_expression "iVar1 = FUN_00044940()" identifier = (call_expression "FUN_00044940()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" { (expression_statement "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);" (call_expression "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" identifier (argument_list "(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" ( (pointer_expression "*(void **)(iVar1 + 4)" * (cast_expression "(void **)(iVar1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , number_literal , (binary_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8" (parenthesized_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5)" ( (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5 + 5" (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5" (binary_expression "(uint)*(ushort *)(param_1 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 6)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) * number_literal) + number_literal) )) * number_literal) ))) ;) (expression_statement "FUN_00049b20(param_3,iVar1);" (call_expression "FUN_00049b20(param_3,iVar1)" identifier (argument_list "(param_3,iVar1)" ( identifier , identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + LIT) )) * LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00049c80(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00049c80") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00044940();\n  if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00044940();" (assignment_expression "iVar1 = FUN_00044940()" (identifier "iVar1") (= "=") (call_expression "FUN_00044940()" (identifier "FUN_00044940") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);\n    FUN_00049b20(param_3,iVar1);\n  }" ({ "{") (expression_statement "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);" (call_expression "memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" (identifier "memset") (argument_list "(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8)" (( "(") (pointer_expression "*(void **)(iVar1 + 4)" (* "*") (cast_expression "(void **)(iVar1 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") (, ",") (binary_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8" (parenthesized_expression "((uint)*(ushort *)(param_1 + 6) * 5 + 5)" (( "(") (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5 + 5" (binary_expression "(uint)*(ushort *)(param_1 + 6) * 5" (binary_expression "(uint)*(ushort *)(param_1 + 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 6)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (* "*") (number_literal "5")) (+ "+") (number_literal "5")) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "FUN_00049b20(param_3,iVar1);" (call_expression "FUN_00049b20(param_3,iVar1)" (identifier "FUN_00049b20") (argument_list "(param_3,iVar1)" (( "(") (identifier "param_3") (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_3 * __regparm3 vdbeUnpackRecord(type_1 *pKeyInfo,int nKey,void *pKey)

{
  type_1 *var_2;
  
  var_2 = (type_1 *)var_1(pKeyInfo);
  if (var_2 != (type_1 *)0x0) {
    var_3(*(void **)&var_2->enc,0,((type_2)pKeyInfo->nKeyField * 5 + 5) * 8);
    var_4
              ((type_1 *)&pKeyInfo->enc,(int)&pKeyInfo->db,(void *)nKey,(type_3 *)pKey,
               var_2);
  }
  return (type_3 *)var_2;
}


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

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

int __regparm3 MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_00044940();
  if (iVar1 != 0) {
    memset(*(void **)(iVar1 + 4),0,((uint)*(ushort *)(param_1 + 6) * 5 + 5) * 8);
    FUN_00049b20(param_3,iVar1);
  }
  return iVar1;
}

