Function at 0x18001eaf0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
call fcn.18001f7c0
test al, al
jne 0x18001eba7
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
test ecx, ecx
je 0x18001eb69
cmp ecx, 0xffffffff
je 0x18001efbb
mov rax, qword [rsp + 0x30]
mov r15d, 0xffffffff
lock xadd dword [rax], r15d
cmp r15d, 1
jne 0x18001efbb
mov r14, qword [rsp + 0x30]
movsxd rsi, dword [r14 + 8]
movsxd rbx, dword [r14 + 0xc]
add rsi, 2
add rbx, 2
lea rsi, [r14 + rsi*8]
lea rbx, [r14 + rbx*8]
cmp rbx, rsi
je 0x18001efb2
nop
sub rbx, 8
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, rsi
jne 0x18001eb90
jmp 0x18001efb2
mov r15d, 0xffffffff
lea rdx, str.SELECT_DISTINCT_IndexTable.Name_FROM_IndexTable__FileNameTable__FolderTable__NamespaceTable_WHERE_IndexTable.FileId__FileNameTable.FileId_AND_FileNameTable.FolderId__FolderTable.Id_AND_IndexTable.NamespaceId__NamespaceTable.Id
mov r8d, r15d
lea rcx, [rsp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLatin1_char_const____ptr64__int_]
lea rax, str._ORDER_BY_LOWER_IndexTable.Name___IndexTable.Name
mov dword [rsp + 0x40], 7
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x40]
lea rax, str.IndexId
mov dword [rbp - 0x60], 0x31
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x68]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rax, str.IndexFilterTable
mov dword [rsp + 0x40], 0x10
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x30]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rax, [0x180042a98]
mov dword [rsp + 0x40], 2
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x58]
movdqa xmmword [rbp - 0x20], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rax, str.IndexTable
mov dword [rsp + 0x40], 0xa
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x10]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
mov rax, qword [rsi]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x80]
mov edx, dword [rax + 0xc]
sub edx, dword [rax + 8]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.180022cc0
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x78]
lea rax, [rbp - 0x70]
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x50], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp - 0x60]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x48], rax
call fcn.180015b20
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x70]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
mov rcx, qword [rbx + 0x20]
mov r8, rsi
xor edx, edx
call fcn.1800172a0
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x18001ef2c
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x110], r13
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp]
xor r8d, r8d
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QVariant::toString_void____ptr64]
mov rcx, qword [rsp + 0x30]
mov r13, rax
mov edx, dword [rcx]
cmp edx, 1
jbe 0x18001eed2
mov rcx, qword [rsp + 0x30]
mov r8d, 1
mov dword [rbp + 0x68], 0x7fffffff
movsxd rdx, dword [rcx + 8]
add rcx, 0x10
lea r12, [rcx + rdx*8]
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_struct_QListData::Data____ptr64___cdecl_QListData::detach_grow_int____ptr64__int____ptr64]
mov rcx, qword [rsp + 0x30]
mov rdi, r12
mov rsi, rax
movsxd rax, dword [rbp + 0x68]
movsxd r8, dword [rcx + 8]
lea rbx, [rcx + 0x10]
lea r14, [rax + 2]
add r14, r8
lea rbx, [rbx + r8*8]
lea r14, [rcx + r14*8]
cmp rbx, r14
je 0x18001ee11
nop dword [rax]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
add rbx, 8
add rdi, 8
cmp rbx, r14
jne 0x18001edf0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbp + 0x68]
movsxd rbx, dword [rcx + 8]
movsxd r14, dword [rcx + 0xc]
add rbx, 3
movsxd rdx, eax
add r14, 2
add rbx, rdx
lea r14, [rcx + r14*8]
lea rbx, [rcx + rbx*8]
lea rdi, [r12 + rdx*8]
cmp rbx, r14
je 0x18001ee59
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
add rbx, 8
add rdi, 8
cmp rbx, r14
jne 0x18001ee40
mov eax, dword [rsi]
test eax, eax
je 0x18001ee70
cmp eax, r15d
je 0x18001eeab
mov eax, r15d
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x18001eeab
movsxd rdi, dword [rsi + 8]
movsxd rbx, dword [rsi + 0xc]
add rdi, 2
add rbx, 2
lea rdi, [rsi + rdi*8]
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x18001eea2
nop dword [rax]
sub rbx, 8
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, rdi
jne 0x18001ee90
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rbp + 0x68]
movsxd rdx, dword [rax + 8]
add rax, 0x10
add rdx, rcx
lea rcx, [rax + rdx*8]
mov rdx, r13
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rbx, qword [rbp + 0x50]
jmp 0x18001eef1
mov rdx, r13
lea rcx, [rbp - 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void____ptr64____ptr64___cdecl_QListData::append_void____ptr64]
mov rcx, qword [rbp - 0x78]
mov qword [rax], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x18001ed62
mov rdi, qword [rbp + 0x58]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x160]
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
mov qword [rdi], rax
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [rsp + 0x30], rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x18001ef76
cmp ecx, r15d
je 0x18001efbb
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], r15d
cmp r15d, 1
jne 0x18001efbb
mov r14, qword [rsp + 0x30]
movsxd rsi, dword [r14 + 8]
movsxd rbx, dword [r14 + 0xc]
add rsi, 2
add rbx, 2
lea rsi, [r14 + rsi*8]
lea rbx, [r14 + rbx*8]
cmp rbx, rsi
je 0x18001efb2
nop dword [rax + rax]
sub rbx, 8
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, rsi
jne 0x18001efa0
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
mov rax, rdi
add rsp, 0x118
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret