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

void hexFunc(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  byte bVar1;
  byte *pbVar2;
  int iVar3;
  char *z;
  char *pcVar4;
  char *pcVar5;
  char *pcVar6;
  sqlite3_value *pVal;
  undefined4 in_stack_ffffffc8;
  
  pbVar2 = (byte *)sqlite3_value_blob(*argv);
  pVal = *argv;
  iVar3 = sqlite3_value_bytes(pVal);
  z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal));
  if (z != (char *)0x0) {
    pcVar6 = z;
    if (0 < iVar3) {
      pcVar4 = z;
      do {
        bVar1 = *pbVar2;
        pcVar5 = pcVar4 + 2;
        pbVar2 = pbVar2 + 1;
        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];
        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];
        pcVar4 = pcVar5;
        pcVar6 = z + iVar3 * 2;
      } while (pcVar5 != z + iVar3 * 2);
    }
    *pcVar6 = '\0';
    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);
  }
  return;
}



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

void FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  byte bVar1;
  byte *pbVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  
  pbVar2 = (byte *)FUN_0004ceb0(*param_3);
  iVar3 = FUN_0004ccb0(*param_3);
  pcVar4 = (char *)FUN_000462e0();
  if (pcVar4 != (char *)0x0) {
    pcVar7 = pcVar4;
    if (0 < iVar3) {
      pcVar5 = pcVar4;
      do {
        bVar1 = *pbVar2;
        pcVar6 = pcVar5 + 2;
        pbVar2 = pbVar2 + 1;
        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];
        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];
        pcVar5 = pcVar6;
        pcVar7 = pcVar4 + iVar3 * 2;
      } while (pcVar6 != pcVar4 + iVar3 * 2);
    }
    *pcVar7 = '\0';
    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xfbe9b
SUB ESP,0x28
MOV EDI,dword ptr [ESP + 0x44]
PUSH dword ptr [EDI]
CALL 0x0004ceb0
MOV ESI,EAX
POP EAX
PUSH dword ptr [EDI]
CALL 0x0004ccb0
CDQ
MOV dword ptr [ESP + 0x1c],EAX
MOV EDI,EAX
SHLD EDX,EAX,0x1
ADD EAX,EAX
MOV ECX,EDX
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x40]
ADD EDX,0x1
ADC ECX,0x0
CALL 0x000462e0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004d0d7
TEST EDI,EDI
JLE 0x0004d0e0
LEA EBP,[EAX + EDI*0x2]
LEA EDI,[EBX + 0xfffb9674]
NOP
MOVZX ECX,byte ptr [ESI]
ADD EAX,0x2
ADD ESI,0x1
MOV EDX,ECX
AND ECX,0xf
SHR DL,0x4
MOVZX EDX,DL
MOVZX EDX,byte ptr [EDI + EDX*0x1]
MOV byte ptr [EAX + -0x2],DL
MOVZX EDX,byte ptr [EDI + ECX*0x1]
MOV byte ptr [EAX + -0x1],DL
CMP EAX,EBP
JNZ 0x0004d090
MOV byte ptr [EBP],0x0
PUSH dword ptr [EBX + 0x114]
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,EAX
PUSH EAX
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x3c]
CALL 0x00046480
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x8]
JMP 0x0004d0b6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "pbVar2 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar2 = (byte *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ceb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "iVar3 = FUN_0004ccb0(*param_3);" (assignment_expression "iVar3 = FUN_0004ccb0(*param_3)" identifier = (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "pcVar4 = (char *)FUN_000462e0();" (assignment_expression "pcVar4 = (char *)FUN_000462e0()" identifier = (cast_expression "(char *)FUN_000462e0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000462e0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" { (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" identifier = identifier) ;) (if_statement "if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" { (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (do_statement "do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);" do (compound_statement "{\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      }" { (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];" (assignment_expression "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""0123456789ABCDEF%_"[bVar1 >> 4]" (string_literal ""0123456789ABCDEF%_"" " string_content ") [ (binary_expression "bVar1 >> 4" identifier >> number_literal) ])) ;) (expression_statement "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];" (assignment_expression "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf]" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (subscript_expression ""0123456789ABCDEF%_"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF%_"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar4 + iVar3 * 2;" (assignment_expression "pcVar7 = pcVar4 + iVar3 * 2" identifier = (binary_expression "pcVar4 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) }) while (parenthesized_expression "(pcVar6 != pcVar4 + iVar3 * 2)" ( (binary_expression "pcVar6 != pcVar4 + iVar3 * 2" identifier != (binary_expression "pcVar4 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) )) ;) })) (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" identifier (argument_list "(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" ( identifier , identifier , (binary_expression "iVar3 * 2" identifier * number_literal) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid hexFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *z;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pbVar2 = (byte *)sqlite3_value_blob(*argv);\n  pVal = *argv;\n  iVar3 = sqlite3_value_bytes(pVal);\n  z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal));\n  if (z != (char *)0x0) {\n    pcVar6 = z;\n    if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }\n    *pcVar6 = '\0';\n    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  }\n  return;\n}\n\n" comment comment (function_definition "void hexFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *z;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pbVar2 = (byte *)sqlite3_value_blob(*argv);\n  pVal = *argv;\n  iVar3 = sqlite3_value_bytes(pVal);\n  z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal));\n  if (z != (char *)0x0) {\n    pcVar6 = z;\n    if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }\n    *pcVar6 = '\0';\n    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  }\n  return;\n}" primitive_type (function_declarator "hexFunc(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *z;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pbVar2 = (byte *)sqlite3_value_blob(*argv);\n  pVal = *argv;\n  iVar3 = sqlite3_value_bytes(pVal);\n  z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal));\n  if (z != (char *)0x0) {\n    pcVar6 = z;\n    if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }\n    *pcVar6 = '\0';\n    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "sqlite3_value *pVal;" type_identifier (pointer_declarator "*pVal" * identifier) ;) (declaration "undefined4 in_stack_ffffffc8;" type_identifier identifier ;) (expression_statement "pbVar2 = (byte *)sqlite3_value_blob(*argv);" (assignment_expression "pbVar2 = (byte *)sqlite3_value_blob(*argv)" identifier = (cast_expression "(byte *)sqlite3_value_blob(*argv)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))))) ;) (expression_statement "pVal = *argv;" (assignment_expression "pVal = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (expression_statement "iVar3 = sqlite3_value_bytes(pVal);" (assignment_expression "iVar3 = sqlite3_value_bytes(pVal)" identifier = (call_expression "sqlite3_value_bytes(pVal)" identifier (argument_list "(pVal)" ( identifier )))) ;) (expression_statement "z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal));" (assignment_expression "z = (char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal))" identifier = (cast_expression "(char *)contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "contextMalloc(context,CONCAT44(in_stack_ffffffc8,pVal))" identifier (argument_list "(context,CONCAT44(in_stack_ffffffc8,pVal))" ( identifier , (call_expression "CONCAT44(in_stack_ffffffc8,pVal)" identifier (argument_list "(in_stack_ffffffc8,pVal)" ( identifier , identifier ))) ))))) ;) (if_statement "if (z != (char *)0x0) {\n    pcVar6 = z;\n    if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }\n    *pcVar6 = '\0';\n    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  }" if (parenthesized_expression "(z != (char *)0x0)" ( (binary_expression "z != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar6 = z;\n    if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }\n    *pcVar6 = '\0';\n    sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  }" { (expression_statement "pcVar6 = z;" (assignment_expression "pcVar6 = z" identifier = identifier) ;) (if_statement "if (0 < iVar3) {\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      pcVar4 = z;\n      do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);\n    }" { (expression_statement "pcVar4 = z;" (assignment_expression "pcVar4 = z" identifier = identifier) ;) (do_statement "do {\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      } while (pcVar5 != z + iVar3 * 2);" do (compound_statement "{\n        bVar1 = *pbVar2;\n        pcVar5 = pcVar4 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];\n        pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];\n        pcVar4 = pcVar5;\n        pcVar6 = z + iVar3 * 2;\n      }" { (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (expression_statement "pcVar5 = pcVar4 + 2;" (assignment_expression "pcVar5 = pcVar4 + 2" identifier = (binary_expression "pcVar4 + 2" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "0123456789ABCDEF"[bVar1 >> 4];" (assignment_expression "*pcVar4 = "0123456789ABCDEF"[bVar1 >> 4]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""0123456789ABCDEF"[bVar1 >> 4]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "bVar1 >> 4" identifier >> number_literal) ])) ;) (expression_statement "pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf];" (assignment_expression "pcVar4[1] = "0123456789ABCDEF"[bVar1 & 0xf]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""0123456789ABCDEF"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar6 = z + iVar3 * 2;" (assignment_expression "pcVar6 = z + iVar3 * 2" identifier = (binary_expression "z + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) }) while (parenthesized_expression "(pcVar5 != z + iVar3 * 2)" ( (binary_expression "pcVar5 != z + iVar3 * 2" identifier != (binary_expression "z + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) )) ;) })) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);" (call_expression "sqlite3_result_text(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8)" identifier (argument_list "(context,z,iVar3 * 2,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8)" ( identifier , identifier , (binary_expression "iVar3 * 2" identifier * number_literal) , (cast_expression "(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "pbVar2 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar2 = (byte *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ceb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "iVar3 = FUN_0004ccb0(*param_3);" (assignment_expression "iVar3 = FUN_0004ccb0(*param_3)" identifier = (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "pcVar4 = (char *)FUN_000462e0();" (assignment_expression "pcVar4 = (char *)FUN_000462e0()" identifier = (cast_expression "(char *)FUN_000462e0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000462e0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" { (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" identifier = identifier) ;) (if_statement "if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" { (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (do_statement "do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);" do (compound_statement "{\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      }" { (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];" (assignment_expression "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""0123456789ABCDEF%_"[bVar1 >> 4]" (string_literal ""0123456789ABCDEF%_"" " string_content ") [ (binary_expression "bVar1 >> 4" identifier >> number_literal) ])) ;) (expression_statement "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];" (assignment_expression "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf]" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (subscript_expression ""0123456789ABCDEF%_"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF%_"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar4 + iVar3 * 2;" (assignment_expression "pcVar7 = pcVar4 + iVar3 * 2" identifier = (binary_expression "pcVar4 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) }) while (parenthesized_expression "(pcVar6 != pcVar4 + iVar3 * 2)" ( (binary_expression "pcVar6 != pcVar4 + iVar3 * 2" identifier != (binary_expression "pcVar4 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) )) ;) })) (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" identifier (argument_list "(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" ( identifier , identifier , (binary_expression "iVar3 * 2" identifier * number_literal) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression IDENT >> LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression IDENT & LIT) ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + (binary_expression IDENT * LIT))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT * LIT) , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004d030(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0004d030") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  pbVar2 = (byte *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0004ccb0(*param_3);\n  pcVar4 = (char *)FUN_000462e0();\n  if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (expression_statement "pbVar2 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar2 = (byte *)FUN_0004ceb0(*param_3)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)FUN_0004ceb0(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(*param_3)" (identifier "FUN_0004ceb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_0004ccb0(*param_3);" (assignment_expression "iVar3 = FUN_0004ccb0(*param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_0004ccb0(*param_3)" (identifier "FUN_0004ccb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)FUN_000462e0();" (assignment_expression "pcVar4 = (char *)FUN_000462e0()" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_000462e0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000462e0()" (identifier "FUN_000462e0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (pcVar4 != (char *)0x0) {\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" (if "if") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar7 = pcVar4;\n    if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }\n    *pcVar7 = '\0';\n    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);\n  }" ({ "{") (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" (identifier "pcVar7") (= "=") (identifier "pcVar4")) (; ";")) (if_statement "if (0 < iVar3) {\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      pcVar5 = pcVar4;\n      do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);\n    }" ({ "{") (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" (identifier "pcVar5") (= "=") (identifier "pcVar4")) (; ";")) (do_statement "do {\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      } while (pcVar6 != pcVar4 + iVar3 * 2);" (do "do") (compound_statement "{\n        bVar1 = *pbVar2;\n        pcVar6 = pcVar5 + 2;\n        pbVar2 = pbVar2 + 1;\n        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];\n        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];\n        pcVar5 = pcVar6;\n        pcVar7 = pcVar4 + iVar3 * 2;\n      }" ({ "{") (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" (identifier "bVar1") (= "=") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (; ";")) (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" (identifier "pcVar6") (= "=") (binary_expression "pcVar5 + 2" (identifier "pcVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];" (assignment_expression "*pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4]" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (subscript_expression ""0123456789ABCDEF%_"[bVar1 >> 4]" (string_literal ""0123456789ABCDEF%_"" (" """) (string_content "0123456789ABCDEF%_") (" """)) ([ "[") (binary_expression "bVar1 >> 4" (identifier "bVar1") (>> ">>") (number_literal "4")) (] "]"))) (; ";")) (expression_statement "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];" (assignment_expression "pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf]" (subscript_expression "pcVar5[1]" (identifier "pcVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression ""0123456789ABCDEF%_"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF%_"" (" """) (string_content "0123456789ABCDEF%_") (" """)) ([ "[") (binary_expression "bVar1 & 0xf" (identifier "bVar1") (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" (identifier "pcVar5") (= "=") (identifier "pcVar6")) (; ";")) (expression_statement "pcVar7 = pcVar4 + iVar3 * 2;" (assignment_expression "pcVar7 = pcVar4 + iVar3 * 2" (identifier "pcVar7") (= "=") (binary_expression "pcVar4 + iVar3 * 2" (identifier "pcVar4") (+ "+") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar6 != pcVar4 + iVar3 * 2)" (( "(") (binary_expression "pcVar6 != pcVar4 + iVar3 * 2" (identifier "pcVar6") (!= "!=") (binary_expression "pcVar4 + iVar3 * 2" (identifier "pcVar4") (+ "+") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")))) () ")")) (; ";")) (} "}"))) (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" (identifier "FUN_00046480") (argument_list "(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar4") (, ",") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")) (, ",") (identifier "PTR_FUN_00148fe8") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *context,int argc,type_2 **argv)

{
  type_3 var_9;
  type_3 *var_8;
  int var_6;
  char *var_5;
  char *var_7;
  char *var_10;
  char *pcVar6;
  type_2 *pVal;
  type_4 in_stack_ffffffc8;
  
  var_8 = (type_3 *)var_1(*argv);
  pVal = *argv;
  var_6 = var_2(pVal);
  var_5 = (char *)var_3(context,var_4(in_stack_ffffffc8,pVal));
  if (var_5 != (char *)0x0) {
    pcVar6 = var_5;
    if (0 < var_6) {
      var_7 = var_5;
      do {
        var_9 = *var_8;
        var_10 = var_7 + 2;
        var_8 = var_8 + 1;
        *var_7 = "0123456789ABCDEF"[var_9 >> 4];
        var_7[1] = "0123456789ABCDEF"[var_9 & 0xf];
        var_7 = var_10;
        pcVar6 = var_5 + var_6 * 2;
      } while (var_10 != var_5 + var_6 * 2);
    }
    *pcVar6 = '\0';
    var_11(context,var_5,var_6 * 2,(type_5 *)PTR_sqlite3_free_00148fe8);
  }
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  byte bVar1;
  byte *pbVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  
  pbVar2 = (byte *)FUN_0004ceb0(*param_3);
  iVar3 = FUN_0004ccb0(*param_3);
  pcVar4 = (char *)FUN_000462e0();
  if (pcVar4 != (char *)0x0) {
    pcVar7 = pcVar4;
    if (0 < iVar3) {
      pcVar5 = pcVar4;
      do {
        bVar1 = *pbVar2;
        pcVar6 = pcVar5 + 2;
        pbVar2 = pbVar2 + 1;
        *pcVar5 = "0123456789ABCDEF%_"[bVar1 >> 4];
        pcVar5[1] = "0123456789ABCDEF%_"[bVar1 & 0xf];
        pcVar5 = pcVar6;
        pcVar7 = pcVar4 + iVar3 * 2;
      } while (pcVar6 != pcVar4 + iVar3 * 2);
    }
    *pcVar7 = '\0';
    FUN_00046480(param_1,pcVar4,iVar3 * 2,PTR_FUN_00148fe8);
  }
  return;
}

