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

void shellFkeyCollateClause(sqlite3_context *pCtx,int nVal,sqlite3_value **apVal)

{
  sqlite3 *db;
  uchar *zTableName;
  uchar *zColumnName;
  uchar *zTableName_00;
  uchar *zColumnName_00;
  int iVar1;
  char *z;
  int in_GS_OFFSET;
  char *zParentSeq;
  char *zChildSeq;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e799;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  db = sqlite3_context_db_handle(pCtx);
  zChildSeq = (char *)0x0;
  zTableName = sqlite3_value_text(*apVal);
  zColumnName = sqlite3_value_text(apVal[1]);
  zTableName_00 = sqlite3_value_text(apVal[2]);
  zColumnName_00 = sqlite3_value_text(apVal[3]);
  sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0);
  iVar1 = sqlite3_table_column_metadata
                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,
                     (int *)0x0,(int *)0x0,(int *)0x0);
  if (iVar1 == 0) {
    iVar1 = sqlite3_table_column_metadata
                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,
                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);
    if (iVar1 == 0) {
      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);
      if (iVar1 != 0) {
        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);
        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);
        sqlite3_free(z);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

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

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e799;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = FUN_0003cac0(param_1);
  local_24 = 0;
  uVar2 = FUN_00081090(*param_3);
  uVar3 = FUN_00081090(param_3[1]);
  uVar4 = FUN_00081090(param_3[2]);
  uVar5 = FUN_00081090(param_3[3]);
  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);
  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);
  if (iVar6 == 0) {
    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);
    if (iVar6 == 0) {
      iVar6 = FUN_00053160(local_28,local_24);
      if (iVar6 != 0) {
        uVar1 = FUN_000a3060(" COLLATE %s",local_28);
        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);
        FUN_00044000(uVar1);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00153870();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000172e0
ADD EBX,0x19c68f
SUB ESP,0x38
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x4c]
MOV ESI,dword ptr [ESP + 0x54]
PUSH EDI
CALL 0x0003cac0
MOV dword ptr [ESP + 0x28],0x0
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESI]
CALL 0x00081090
MOV dword ptr [ESP + 0x14],EAX
POP EDX
PUSH dword ptr [ESI + 0x4]
CALL 0x00081090
MOV dword ptr [ESP + 0x10],EAX
POP ECX
PUSH dword ptr [ESI + 0x8]
CALL 0x00081090
MOV dword ptr [ESP + 0x18],EAX
POP EAX
PUSH dword ptr [ESI + 0xc]
LEA ESI,[EBX + 0xfff9ec67]
CALL 0x00081090
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[EBX + 0xfff9ee52]
PUSH 0x0
PUSH -0x1
PUSH EAX
PUSH EDI
CALL 0x000722b0
ADD ESP,0x14
PUSH 0x0
PUSH 0x0
PUSH 0x0
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x20]
PUSH ECX
MOV EDX,dword ptr [ESP + 0x28]
PUSH EDX
PUSH ESI
PUSH EBP
CALL 0x00107870
ADD ESP,0x30
TEST EAX,EAX
JZ 0x0001e858
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001e8c6
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH 0x0
LEA EAX,[ESP + 0x30]
PUSH EAX
PUSH 0x0
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH ESI
PUSH EBP
CALL 0x00107870
ADD ESP,0x30
TEST EAX,EAX
JNZ 0x0001e83c
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
CALL 0x00053160
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e83c
SUB ESP,0x8
LEA EAX,[EBX + 0xfff9f5a0]
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x000a3060
PUSH -0x1
PUSH -0x1
MOV ESI,EAX
PUSH EAX
PUSH EDI
CALL 0x000722b0
ADD ESP,0x14
PUSH ESI
CALL 0x00044000
ADD ESP,0x10
JMP 0x0001e83c
CALL 0x00153870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}\n\n" comment (function_definition "void FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}" primitive_type (function_declarator "FUN_0001e790(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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e799;" (assignment_expression "uStack_14 = 0x1e799" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = FUN_0003cac0(param_1);" (assignment_expression "uVar1 = FUN_0003cac0(param_1)" identifier = (call_expression "FUN_0003cac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = FUN_00081090(*param_3);" (assignment_expression "uVar2 = FUN_00081090(*param_3)" identifier = (call_expression "FUN_00081090(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00081090(param_3[1]);" (assignment_expression "uVar3 = FUN_00081090(param_3[1])" identifier = (call_expression "FUN_00081090(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar4 = FUN_00081090(param_3[2]);" (assignment_expression "uVar4 = FUN_00081090(param_3[2])" identifier = (call_expression "FUN_00081090(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_00081090(param_3[3]);" (assignment_expression "uVar5 = FUN_00081090(param_3[3])" identifier = (call_expression "FUN_00081090(param_3[3])" identifier (argument_list "(param_3[3])" ( (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (expression_statement "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);" (call_expression "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0)" identifier (argument_list "(param_1,&DAT_00159c7a,0xffffffff,0)" ( identifier , (pointer_expression "&DAT_00159c7a" & identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" identifier = (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" identifier (argument_list "(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" ( identifier , (pointer_expression "&DAT_00159a8f" & identifier) , identifier , identifier , number_literal , (pointer_expression "&local_28" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" { (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" identifier = (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" identifier (argument_list "(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" ( identifier , (pointer_expression "&DAT_00159a8f" & identifier) , identifier , identifier , number_literal , (pointer_expression "&local_24" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" { (expression_statement "iVar6 = FUN_00053160(local_28,local_24);" (assignment_expression "iVar6 = FUN_00053160(local_28,local_24)" identifier = (call_expression "FUN_00053160(local_28,local_24)" identifier (argument_list "(local_28,local_24)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" { (expression_statement "uVar1 = FUN_000a3060(" COLLATE %s",local_28);" (assignment_expression "uVar1 = FUN_000a3060(" COLLATE %s",local_28)" identifier = (call_expression "FUN_000a3060(" COLLATE %s",local_28)" identifier (argument_list "(" COLLATE %s",local_28)" ( (string_literal "" COLLATE %s"" " string_content ") , identifier )))) ;) (expression_statement "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);" (call_expression "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff)" identifier (argument_list "(param_1,uVar1,0xffffffff,0xffffffff)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00044000(uVar1);" (call_expression "FUN_00044000(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid shellFkeyCollateClause(sqlite3_context *pCtx,int nVal,sqlite3_value **apVal)\n\n{\n  sqlite3 *db;\n  uchar *zTableName;\n  uchar *zColumnName;\n  uchar *zTableName_00;\n  uchar *zColumnName_00;\n  int iVar1;\n  char *z;\n  int in_GS_OFFSET;\n  char *zParentSeq;\n  char *zChildSeq;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = sqlite3_context_db_handle(pCtx);\n  zChildSeq = (char *)0x0;\n  zTableName = sqlite3_value_text(*apVal);\n  zColumnName = sqlite3_value_text(apVal[1]);\n  zTableName_00 = sqlite3_value_text(apVal[2]);\n  zColumnName_00 = sqlite3_value_text(apVal[3]);\n  sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0);\n  iVar1 = sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0);\n  if (iVar1 == 0) {\n    iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);\n    if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void shellFkeyCollateClause(sqlite3_context *pCtx,int nVal,sqlite3_value **apVal)\n\n{\n  sqlite3 *db;\n  uchar *zTableName;\n  uchar *zColumnName;\n  uchar *zTableName_00;\n  uchar *zColumnName_00;\n  int iVar1;\n  char *z;\n  int in_GS_OFFSET;\n  char *zParentSeq;\n  char *zChildSeq;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = sqlite3_context_db_handle(pCtx);\n  zChildSeq = (char *)0x0;\n  zTableName = sqlite3_value_text(*apVal);\n  zColumnName = sqlite3_value_text(apVal[1]);\n  zTableName_00 = sqlite3_value_text(apVal[2]);\n  zColumnName_00 = sqlite3_value_text(apVal[3]);\n  sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0);\n  iVar1 = sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0);\n  if (iVar1 == 0) {\n    iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);\n    if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "shellFkeyCollateClause(sqlite3_context *pCtx,int nVal,sqlite3_value **apVal)" identifier (parameter_list "(sqlite3_context *pCtx,int nVal,sqlite3_value **apVal)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int nVal" primitive_type identifier) , (parameter_declaration "sqlite3_value **apVal" type_identifier (pointer_declarator "**apVal" * (pointer_declarator "*apVal" * identifier))) ))) (compound_statement "{\n  sqlite3 *db;\n  uchar *zTableName;\n  uchar *zColumnName;\n  uchar *zTableName_00;\n  uchar *zColumnName_00;\n  int iVar1;\n  char *z;\n  int in_GS_OFFSET;\n  char *zParentSeq;\n  char *zChildSeq;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = sqlite3_context_db_handle(pCtx);\n  zChildSeq = (char *)0x0;\n  zTableName = sqlite3_value_text(*apVal);\n  zColumnName = sqlite3_value_text(apVal[1]);\n  zTableName_00 = sqlite3_value_text(apVal[2]);\n  zColumnName_00 = sqlite3_value_text(apVal[3]);\n  sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0);\n  iVar1 = sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0);\n  if (iVar1 == 0) {\n    iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);\n    if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "uchar *zTableName;" type_identifier (pointer_declarator "*zTableName" * identifier) ;) (declaration "uchar *zColumnName;" type_identifier (pointer_declarator "*zColumnName" * identifier) ;) (declaration "uchar *zTableName_00;" type_identifier (pointer_declarator "*zTableName_00" * identifier) ;) (declaration "uchar *zColumnName_00;" type_identifier (pointer_declarator "*zColumnName_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *zParentSeq;" primitive_type (pointer_declarator "*zParentSeq" * identifier) ;) (declaration "char *zChildSeq;" primitive_type (pointer_declarator "*zChildSeq" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e799;" (assignment_expression "uStack_14 = 0x1e799" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "db = sqlite3_context_db_handle(pCtx);" (assignment_expression "db = sqlite3_context_db_handle(pCtx)" identifier = (call_expression "sqlite3_context_db_handle(pCtx)" identifier (argument_list "(pCtx)" ( identifier )))) ;) (expression_statement "zChildSeq = (char *)0x0;" (assignment_expression "zChildSeq = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "zTableName = sqlite3_value_text(*apVal);" (assignment_expression "zTableName = sqlite3_value_text(*apVal)" identifier = (call_expression "sqlite3_value_text(*apVal)" identifier (argument_list "(*apVal)" ( (pointer_expression "*apVal" * identifier) )))) ;) (expression_statement "zColumnName = sqlite3_value_text(apVal[1]);" (assignment_expression "zColumnName = sqlite3_value_text(apVal[1])" identifier = (call_expression "sqlite3_value_text(apVal[1])" identifier (argument_list "(apVal[1])" ( (subscript_expression "apVal[1]" identifier [ number_literal ]) )))) ;) (expression_statement "zTableName_00 = sqlite3_value_text(apVal[2]);" (assignment_expression "zTableName_00 = sqlite3_value_text(apVal[2])" identifier = (call_expression "sqlite3_value_text(apVal[2])" identifier (argument_list "(apVal[2])" ( (subscript_expression "apVal[2]" identifier [ number_literal ]) )))) ;) (expression_statement "zColumnName_00 = sqlite3_value_text(apVal[3]);" (assignment_expression "zColumnName_00 = sqlite3_value_text(apVal[3])" identifier = (call_expression "sqlite3_value_text(apVal[3])" identifier (argument_list "(apVal[3])" ( (subscript_expression "apVal[3]" identifier [ number_literal ]) )))) ;) (expression_statement "sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0);" (call_expression "sqlite3_result_text(pCtx,"",-1,(_func_void_void_ptr *)0x0)" identifier (argument_list "(pCtx,"",-1,(_func_void_void_ptr *)0x0)" ( identifier , (string_literal """" " ") , number_literal , (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "iVar1 = sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0);" (assignment_expression "iVar1 = sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0)" identifier = (call_expression "sqlite3_table_column_metadata\n                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0)" identifier (argument_list "(db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,\n                     (int *)0x0,(int *)0x0,(int *)0x0)" ( identifier , (string_literal ""main"" " string_content ") , (cast_expression "(char *)zTableName" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)zColumnName" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (pointer_expression "&zParentSeq" & identifier) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);\n    if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);\n    if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }\n  }" { (expression_statement "iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);" (assignment_expression "iVar1 = sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0)" identifier = (call_expression "sqlite3_table_column_metadata\n                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0)" identifier (argument_list "(db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,\n                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0)" ( identifier , (string_literal ""main"" " string_content ") , (cast_expression "(char *)zTableName_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)zColumnName_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (pointer_expression "&zChildSeq" & identifier) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);\n      if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }\n    }" { (expression_statement "iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq);" (assignment_expression "iVar1 = sqlite3_stricmp(zParentSeq,zChildSeq)" identifier = (call_expression "sqlite3_stricmp(zParentSeq,zChildSeq)" identifier (argument_list "(zParentSeq,zChildSeq)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        z = sqlite3_mprintf(" COLLATE %s",zParentSeq);\n        sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n        sqlite3_free(z);\n      }" { (expression_statement "z = sqlite3_mprintf(" COLLATE %s",zParentSeq);" (assignment_expression "z = sqlite3_mprintf(" COLLATE %s",zParentSeq)" identifier = (call_expression "sqlite3_mprintf(" COLLATE %s",zParentSeq)" identifier (argument_list "(" COLLATE %s",zParentSeq)" ( (string_literal "" COLLATE %s"" " string_content ") , identifier )))) ;) (expression_statement "sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , identifier , number_literal , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) (expression_statement "sqlite3_free(z);" (call_expression "sqlite3_free(z)" identifier (argument_list "(z)" ( identifier ))) ;) })) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}\n\n" (function_definition "void FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" primitive_type (function_declarator "FUN_0001e790(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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e799;" (assignment_expression "uStack_14 = 0x1e799" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = FUN_0003cac0(param_1);" (assignment_expression "uVar1 = FUN_0003cac0(param_1)" identifier = (call_expression "FUN_0003cac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = FUN_00081090(*param_3);" (assignment_expression "uVar2 = FUN_00081090(*param_3)" identifier = (call_expression "FUN_00081090(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00081090(param_3[1]);" (assignment_expression "uVar3 = FUN_00081090(param_3[1])" identifier = (call_expression "FUN_00081090(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar4 = FUN_00081090(param_3[2]);" (assignment_expression "uVar4 = FUN_00081090(param_3[2])" identifier = (call_expression "FUN_00081090(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_00081090(param_3[3]);" (assignment_expression "uVar5 = FUN_00081090(param_3[3])" identifier = (call_expression "FUN_00081090(param_3[3])" identifier (argument_list "(param_3[3])" ( (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (expression_statement "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);" (call_expression "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0)" identifier (argument_list "(param_1,&DAT_00159c7a,0xffffffff,0)" ( identifier , (pointer_expression "&DAT_00159c7a" & identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" identifier = (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" identifier (argument_list "(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" ( identifier , (pointer_expression "&DAT_00159a8f" & identifier) , identifier , identifier , number_literal , (pointer_expression "&local_28" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" { (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" identifier = (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" identifier (argument_list "(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" ( identifier , (pointer_expression "&DAT_00159a8f" & identifier) , identifier , identifier , number_literal , (pointer_expression "&local_24" & identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" { (expression_statement "iVar6 = FUN_00053160(local_28,local_24);" (assignment_expression "iVar6 = FUN_00053160(local_28,local_24)" identifier = (call_expression "FUN_00053160(local_28,local_24)" identifier (argument_list "(local_28,local_24)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" { (expression_statement "uVar1 = FUN_000a3060(" COLLATE %s",local_28);" (assignment_expression "uVar1 = FUN_000a3060(" COLLATE %s",local_28)" identifier = (call_expression "FUN_000a3060(" COLLATE %s",local_28)" identifier (argument_list "(" COLLATE %s",local_28)" ( (string_literal "" COLLATE %s"" " string_content ") , identifier )))) ;) (expression_statement "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);" (call_expression "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff)" identifier (argument_list "(param_1,uVar1,0xffffffff,0xffffffff)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00044000(uVar1);" (call_expression "FUN_00044000(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })))
(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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT , LIT , (pointer_expression & IDENT) , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT , LIT , (pointer_expression & IDENT) , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" (primitive_type "void") (function_declarator "FUN_0001e790(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0001e790") (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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e799;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = FUN_0003cac0(param_1);\n  local_24 = 0;\n  uVar2 = FUN_00081090(*param_3);\n  uVar3 = FUN_00081090(param_3[1]);\n  uVar4 = FUN_00081090(param_3[2]);\n  uVar5 = FUN_00081090(param_3[3]);\n  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);\n  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);\n  if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e799;" (assignment_expression "uStack_14 = 0x1e799" (identifier "uStack_14") (= "=") (number_literal "0x1e799")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = FUN_0003cac0(param_1);" (assignment_expression "uVar1 = FUN_0003cac0(param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_0003cac0(param_1)" (identifier "FUN_0003cac0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = FUN_00081090(*param_3);" (assignment_expression "uVar2 = FUN_00081090(*param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00081090(*param_3)" (identifier "FUN_00081090") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00081090(param_3[1]);" (assignment_expression "uVar3 = FUN_00081090(param_3[1])" (identifier "uVar3") (= "=") (call_expression "FUN_00081090(param_3[1])" (identifier "FUN_00081090") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "uVar4 = FUN_00081090(param_3[2]);" (assignment_expression "uVar4 = FUN_00081090(param_3[2])" (identifier "uVar4") (= "=") (call_expression "FUN_00081090(param_3[2])" (identifier "FUN_00081090") (argument_list "(param_3[2])" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "uVar5 = FUN_00081090(param_3[3]);" (assignment_expression "uVar5 = FUN_00081090(param_3[3])" (identifier "uVar5") (= "=") (call_expression "FUN_00081090(param_3[3])" (identifier "FUN_00081090") (argument_list "(param_3[3])" (( "(") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (expression_statement "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);" (call_expression "FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0)" (identifier "FUN_000722b0") (argument_list "(param_1,&DAT_00159c7a,0xffffffff,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_00159c7a" (& "&") (identifier "DAT_00159c7a")) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" (identifier "iVar6") (= "=") (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" (identifier "FUN_00107870") (argument_list "(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0)" (( "(") (identifier "uVar1") (, ",") (pointer_expression "&DAT_00159a8f" (& "&") (identifier "DAT_00159a8f")) (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);\n    if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);" (assignment_expression "iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" (identifier "iVar6") (= "=") (call_expression "FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" (identifier "FUN_00107870") (argument_list "(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0)" (( "(") (identifier "uVar1") (, ",") (pointer_expression "&DAT_00159a8f" (& "&") (identifier "DAT_00159a8f")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar5") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = FUN_00053160(local_28,local_24);\n      if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }\n    }" ({ "{") (expression_statement "iVar6 = FUN_00053160(local_28,local_24);" (assignment_expression "iVar6 = FUN_00053160(local_28,local_24)" (identifier "iVar6") (= "=") (call_expression "FUN_00053160(local_28,local_24)" (identifier "FUN_00053160") (argument_list "(local_28,local_24)" (( "(") (identifier "local_28") (, ",") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = FUN_000a3060(" COLLATE %s",local_28);\n        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);\n        FUN_00044000(uVar1);\n      }" ({ "{") (expression_statement "uVar1 = FUN_000a3060(" COLLATE %s",local_28);" (assignment_expression "uVar1 = FUN_000a3060(" COLLATE %s",local_28)" (identifier "uVar1") (= "=") (call_expression "FUN_000a3060(" COLLATE %s",local_28)" (identifier "FUN_000a3060") (argument_list "(" COLLATE %s",local_28)" (( "(") (string_literal "" COLLATE %s"" (" """) (string_content " COLLATE %s") (" """)) (, ",") (identifier "local_28") () ")")))) (; ";")) (expression_statement "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);" (call_expression "FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff)" (identifier "FUN_000722b0") (argument_list "(param_1,uVar1,0xffffffff,0xffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "FUN_00044000(uVar1);" (call_expression "FUN_00044000(uVar1)" (identifier "FUN_00044000") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" (identifier "FUN_00153870") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *pCtx,int nVal,type_2 **apVal)

{
  type_3 *db;
  type_4 *zTableName;
  type_4 *zColumnName;
  type_4 *zTableName_00;
  type_4 *zColumnName_00;
  int var_6;
  char *z;
  int var_1;
  char *zParentSeq;
  char *zChildSeq;
  int var_10;
  type_5 uStack_14;
  
  uStack_14 = 0x1e799;
  var_10 = *(int *)(var_1 + 0x14);
  db = var_2(pCtx);
  zChildSeq = (char *)0x0;
  zTableName = var_3(*apVal);
  zColumnName = var_3(apVal[1]);
  zTableName_00 = var_3(apVal[2]);
  zColumnName_00 = var_3(apVal[3]);
  var_4(pCtx,"",-1,(type_6 *)0x0);
  var_6 = var_5
                    (db,"main",(char *)zTableName,(char *)zColumnName,(char **)0x0,&zParentSeq,
                     (int *)0x0,(int *)0x0,(int *)0x0);
  if (var_6 == 0) {
    var_6 = var_5
                      (db,"main",(char *)zTableName_00,(char *)zColumnName_00,(char **)0x0,
                       &zChildSeq,(int *)0x0,(int *)0x0,(int *)0x0);
    if (var_6 == 0) {
      var_6 = var_7(zParentSeq,zChildSeq);
      if (var_6 != 0) {
        z = var_8(" COLLATE %s",zParentSeq);
        var_4(pCtx,z,-1,(type_6 *)&DAT_ffffffff);
        var_9(z);
      }
    }
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

/* 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)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e799;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = FUN_0003cac0(param_1);
  local_24 = 0;
  uVar2 = FUN_00081090(*param_3);
  uVar3 = FUN_00081090(param_3[1]);
  uVar4 = FUN_00081090(param_3[2]);
  uVar5 = FUN_00081090(param_3[3]);
  FUN_000722b0(param_1,&DAT_00159c7a,0xffffffff,0);
  iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar2,uVar3,0,&local_28,0,0,0);
  if (iVar6 == 0) {
    iVar6 = FUN_00107870(uVar1,&DAT_00159a8f,uVar4,uVar5,0,&local_24,0,0,0);
    if (iVar6 == 0) {
      iVar6 = FUN_00053160(local_28,local_24);
      if (iVar6 != 0) {
        uVar1 = FUN_000a3060(" COLLATE %s",local_28);
        FUN_000722b0(param_1,uVar1,0xffffffff,0xffffffff);
        FUN_00044000(uVar1);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00153870();
}

