Function at 0x1800f9b50
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
xor edx, edx
lea rax, [0x180144af4]
lea rcx, str._rowid___
cmp dword [rbp + 0x6f], edx
mov qword [rbp - 0x49], rax
lea rax, [0x180151904]
cmovne rax, rcx
mov r12d, edx
mov dword [rbp - 0x61], edx
mov ebx, edx
mov qword [rbp - 0x29], rdx
mov r14d, edx
mov qword [rbp - 0x19], rax
mov r13d, edx
mov qword [rbp - 0x21], rdx
mov qword [rbp - 0x59], rdx
mov qword [rbp - 0x11], rdx
mov esi, edx
mov dword [rbp + 0x6f], edx
mov r15d, edx
mov qword [rbp - 0x41], rdx
mov qword [rbp - 0x39], rdx
mov edi, pe_nt_image_headers64
add rdi, rdi
cmp rdi, 4
jl 0x1800f9bd4
mov eax, 0x7ffffeff
cmp rdi, rax
cmovg rdi, rax
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9c10
mov rdx, rdi
xor ecx, ecx
call fcn.18000c190
test rax, rax
je 0x1800f9c10
mov rbx, rax
mov qword [rbp - 0x29], rax
mov r13d, edi
mov dword [rbp - 0x1d], edi
jmp 0x1800f9c1a
mov r12d, 7
mov dword [rbp - 0x61], r12d
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800f9c48
movzx eax, word [0x180157a84]
mov r14d, 3
mov word [rbx], ax
movzx eax, byte [0x180157a86]
mov dword [rbp - 0x21], r14d
mov byte [rbx + 2], al
mov byte [rbx + 3], sil
mov r10, qword [rbp + 0x67]
test r10, r10
je 0x1800f9e54
lea rdi, str.sqlite_stat1
mov r8, r10
lea r9, [0x180144c70]
sub r8, rdi
nop dword [rax]
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1800f9ce0
test ecx, ecx
jne 0x1800f9cf2
movsxd rsi, r14d
lea rcx, [rsi + 0x18]
test r12d, r12d
jne 0x1800f9d02
movsxd rax, r13d
cmp rcx, rax
jle 0x1800f9d02
mov eax, pe_nt_image_headers64
test r13d, r13d
cmovne eax, r13d
movsxd rdi, eax
add rdi, rdi
cmp rdi, rcx
jl 0x1800f9ca3
mov r13d, 0x7ffffeff
cmp rdi, r13
jle 0x1800f9cc2
mov edi, r13d
cmp rcx, r13
jg 0x1800f9d91
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9cfa
mov rdx, rdi
mov rcx, rbx
call fcn.18000c190
test rax, rax
je 0x1800f9cfa
mov rbx, rax
jmp 0x1800f9d08
movzx edx, byte [rax + r9]
movzx ecx, byte [rcx + r9]
sub ecx, edx
jne 0x1800f9e54
inc rdi
jmp 0x1800f9c70
mov r12d, 7
jmp 0x1800f9d08
mov r13d, 0x7ffffeff
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800f9d56
mov rax, qword [str._AND___6_OR__3_IS_stat_]
mov qword [rsi + rbx], rax
mov rax, qword [0x180157a90]
mov qword [rsi + rbx + 8], rax
mov eax, dword [0x180157a98]
mov dword [rsi + rbx + 0x10], eax
movzx eax, word [0x180157a9c]
mov word [rsi + rbx + 0x14], ax
movzx eax, byte [0x180157a9e]
mov byte [rsi + rbx + 0x16], al
lea eax, [r14 + 0x17]
cdqe
mov byte [rax + rbx], r15b
test r12d, r12d
jne 0x1800f9d97
mov edi, pe_nt_image_headers64
add rdi, rdi
cmp rdi, 9
jl 0x1800f9d60
cmp rdi, r13
cmovg rdi, r13
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9d91
mov rdx, rdi
xor ecx, ecx
call fcn.18000c190
test rax, rax
je 0x1800f9d91
mov rcx, rax
mov qword [rbp - 0x59], rax
jmp 0x1800f9d9a
mov r12d, 7
mov rcx, r15
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800f9db4
mov rax, qword [str.tbl__idx]
mov qword [rcx], rax
mov byte [rcx + 8], r15b
test r12d, r12d
jne 0x1800f9df3
mov edi, pe_nt_image_headers64
nop
add rdi, rdi
cmp rdi, 0x2d
jl 0x1800f9dc0
cmp rdi, r13
cmovg rdi, r13
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9ded
mov rdx, rdi
xor ecx, ecx
call fcn.18000c190
test rax, rax
je 0x1800f9ded
mov r15, rax
jmp 0x1800f9df3
mov r12d, 7
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800f9e44
mov rax, qword [str._1___CASE_WHEN__2X_THEN_NULL_ELSE__2_END_]
mov qword [r15], rax
mov rax, qword [0x180157ab8]
mov qword [r15 + 8], rax
mov rax, qword [0x180157ac0]
mov qword [r15 + 0x10], rax
mov rax, qword [0x180157ac8]
mov qword [r15 + 0x18], rax
mov rax, qword [0x180157ad0]
mov qword [r15 + 0x20], rax
mov eax, dword [0x180157ad8]
mov dword [r15 + 0x28], eax
mov byte [r15 + 0x2c], 0
mov r10, qword [rbp + 0x67]
lea rdx, str.tbl___2__stat
jmp 0x1800fa1b2
movsxd rcx, dword [rbp + 0x77]
xor eax, eax
mov qword [rbp - 0x31], rax
test rcx, rcx
jle 0x1800fa1ae
mov rdi, qword [rbp + 0x7f]
mov ecx, 1
mov dword [rbp - 0x51], ecx
mov rdx, qword [rbp + 0x87]
cmp byte [rax + rdx], 0
je 0x1800fa155
mov r9, qword [rbp - 0x49]
test r9, r9
jne 0x1800f9e91
xor ebx, ebx
jmp 0x1800f9ea9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
lea rbx, [rcx - 1]
and ebx, 0x3fffffff
lea eax, [rbx + 1]
movsxd r14, esi
movsxd rdx, eax
add rdx, r14
test r12d, r12d
jne 0x1800f9f33
movsxd rcx, dword [rbp + 0x6f]
cmp rdx, rcx
jle 0x1800f9f33
mov eax, pe_nt_image_headers64
test ecx, ecx
cmovne eax, ecx
movsxd rdi, eax
add rdi, rdi
cmp rdi, rdx
jl 0x1800f9ed0
mov r8d, 0x7ffffeff
cmp rdi, r8
jle 0x1800f9ef7
mov edi, r8d
cmp rdx, r8
jle 0x1800f9ef7
mov r12d, 7
mov dword [rbp - 0x61], r12d
jmp 0x1800f9f62
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9f25
mov rcx, qword [rbp - 0x59]
mov rdx, rdi
call fcn.18000c190
test rax, rax
je 0x1800f9f25
mov r9, qword [rbp - 0x49]
mov r13, rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x11], rax
mov dword [rbp + 0x6f], edi
jmp 0x1800f9f37
mov r9, qword [rbp - 0x49]
mov r12d, 7
mov dword [rbp - 0x61], r12d
mov r13, qword [rbp - 0x59]
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800f9f5c
lea rcx, [r14 + r13]
movsxd r8, ebx
mov rdx, r9
call fcn.180128740
add esi, ebx
movsxd r14, esi
mov byte [r14 + r13], 0
mov r8d, 0x7ffffeff
mov r9, qword [rbp - 0x49]
test r9, r9
jne 0x1800f9f6f
xor ebx, ebx
jmp 0x1800f9f87
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
lea rbx, [rcx - 1]
and ebx, 0x3fffffff
movsxd rdi, dword [rbp - 0x39]
lea eax, [rbx + 1]
movsxd rdx, eax
mov r13, rdi
add rdx, rdi
test r12d, r12d
jne 0x1800fa009
movsxd rcx, dword [rbp - 0x35]
cmp rdx, rcx
jle 0x1800fa009
mov eax, pe_nt_image_headers64
test ecx, ecx
cmovne eax, ecx
movsxd rdi, eax
add rdi, rdi
cmp rdi, rdx
jl 0x1800f9fb2
cmp rdi, r8
jle 0x1800f9fd3
mov rdi, r8
cmp rdx, r8
jle 0x1800f9fd3
mov r12d, 7
mov dword [rbp - 0x61], r12d
jmp 0x1800fa038
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800f9ff8
mov rdx, rdi
mov rcx, r15
call fcn.18000c190
test rax, rax
je 0x1800f9ff8
mov r15, rax
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x35], edi
jmp 0x1800fa002
mov r12d, 7
mov dword [rbp - 0x61], r12d
mov r9, qword [rbp - 0x49]
mov edi, dword [rbp - 0x39]
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800fa032
lea rcx, [r13 + r15]
movsxd r8, ebx
mov rdx, r9
call fcn.180128740
add edi, ebx
movsxd rax, edi
mov dword [rbp - 0x39], edi
mov byte [rax + r15], 0
mov r8d, 0x7ffffeff
mov rbx, qword [rbp - 0x31]
lea rax, [0x18014e368]
mov qword [rbp - 0x49], rax
mov rax, qword [rbp + 0x7f]
mov rbx, qword [rax + rbx*8]
test rbx, rbx
jne 0x1800fa058
xor ecx, ecx
jmp 0x1800fa06f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
and ecx, 0x3fffffff
lea eax, [rcx + rcx + 4]
movsxd rcx, eax
add rcx, r14
test r12d, r12d
jne 0x1800fa0e9
movsxd rdx, dword [rbp + 0x6f]
cmp rcx, rdx
jle 0x1800fa0e9
mov eax, pe_nt_image_headers64
test edx, edx
cmovne eax, edx
movsxd rdi, eax
add rdi, rdi
cmp rdi, rcx
jl 0x1800fa094
cmp rdi, r8
jle 0x1800fa0b5
mov rdi, r8
cmp rcx, r8
jle 0x1800fa0b5
mov dword [rbp - 0x61], 7
jmp 0x1800fa133
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800fa0df
mov rcx, qword [rbp - 0x59]
mov rdx, rdi
call fcn.18000c190
test rax, rax
je 0x1800fa0df
mov rcx, rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x11], rax
mov dword [rbp + 0x6f], edi
jmp 0x1800fa0ed
mov r12d, 7
mov dword [rbp - 0x61], r12d
mov rcx, qword [rbp - 0x59]
xor eax, eax
test r12d, r12d
setne al
test eax, eax
jne 0x1800fa133
lea rsi, [r14 + rcx]
inc rsi
mov byte [rsi - 1], 0x22
cmp byte [rbx], al
je 0x1800fa124
cmp byte [rbx], 0x22
jne 0x1800fa113
mov byte [rsi], 0x22
inc rsi
movzx eax, byte [rbx]
inc rbx
inc rsi
mov byte [rsi - 1], al
cmp byte [rbx], 0
jne 0x1800fa108
mov byte [rsi], 0x22
sub esi, dword [rbp - 0x11]
inc esi
movsxd rax, esi
mov byte [rax + rcx], 0
mov r9d, dword [rbp - 0x51]
lea r8, [0x18014e448]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1800f90b0
mov r15, qword [rbp - 0x41]
mov rdi, qword [rbp + 0x7f]
jmp 0x1800fa182
mov rax, qword [rdi + rax*8]
mov edx, dword [rbp + 0x77]
lea r8, str._AND____d_OR___d_IS__w._w_
mov qword [rsp + 0x30], rax
lea r9d, [rcx + rdx]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], ecx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x29]
call fcn.1800f90b0
mov rax, qword [rbp - 0x31]
mov ecx, dword [rbp - 0x51]
movsxd rdx, dword [rbp + 0x77]
mov r12d, dword [rbp - 0x61]
mov r10, qword [rbp + 0x67]
inc rax
inc ecx
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x51], ecx
cmp rax, rdx
jl 0x1800f9e73
mov rbx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x19]
mov rsi, qword [rbp - 0x59]
test r12d, r12d
jne 0x1800fa290
cmp dword [rbp + 0x57], r12d
mov r9, qword [rbp + 0x5f]
mov qword [rsp + 0x30], r15
lea r8, [0x180144af4]
lea rcx, str.SELECT__s_s_FROM__Q._Q_WHERE___s__IS___s_
mov qword [rsp + 0x28], rsi
cmovne r8, rbx
mov qword [rsp + 0x20], r10
call sym.sqlite.dll_sqlite3_mprintf
mov rdi, rax
test rax, rax
jne 0x1800fa1fe
lea r12d, [rax + 7]
jmp 0x1800fa290
mov rax, qword [rbp + 0x8f]
mov rcx, qword [rbp + 0x4f]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov r9d, pe_nt_image_headers64
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rsp + 0x20], 0
call fcn.180088380
cmp dword [0x180172920], 0
mov r12d, eax
je 0x1800fa287
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1800fa250
call qword [0x1801729a0]
mov rcx, rdi
call qword [0x180172958]
dec qword [0x180182138]
movsxd rcx, eax
sub qword [0x1801820f0], rcx
mov rcx, rdi
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1800fa297
call qword [0x1801729b0]
jmp 0x1800fa290
mov rcx, rdi
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rbx, rbx
je 0x1800fa2f7
cmp dword [0x180172920], 0
je 0x1800fa2e7
test rcx, rcx
je 0x1800fa2b0
call qword [0x1801729a0]
mov rcx, rbx
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1800fa2f7
call qword [0x1801729b0]
jmp 0x1800fa2f0
mov rcx, rbx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rsi, rsi
je 0x1800fa357
cmp dword [0x180172920], 0
je 0x1800fa347
test rcx, rcx
je 0x1800fa310
call qword [0x1801729a0]
mov rcx, rsi
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, rsi
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1800fa357
call qword [0x1801729b0]
jmp 0x1800fa350
mov rcx, rsi
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test r15, r15
je 0x1800fa3b0
cmp dword [0x180172920], 0
je 0x1800fa3a7
test rcx, rcx
je 0x1800fa370
call qword [0x1801729a0]
mov rcx, r15
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, r15
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1800fa3b0
call qword [0x1801729b0]
jmp 0x1800fa3b0
mov rcx, r15
call qword [0x180172948]
mov eax, r12d
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret