Function at 0x1800abac0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, qword [rdx + 0x30]
xor edi, edi
mov rbx, rcx
mov qword [rsp + 0x60], rdi
mov rcx, qword [rcx + 0x18]
mov rbp, rdx
mov esi, edi
test rcx, rcx
je 0x1800abafa
call qword [0x1800e2a30]
cmp byte [rbx + 0x69], sil
jne 0x1800abb08
mov rcx, rbx
call fcn.180018d30
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180070710
mov r14d, eax
test eax, eax
jne 0x1800abb3f
mov r8, r15
lea rdx, str.sqlite_stat1
mov rcx, rbx
call fcn.180051ec0
mov rsi, rax
test rax, rax
je 0x1800abb3c
cmp qword [rax + 0x18], rdi
je 0x1800abb3f
mov rsi, rdi
cmp byte [rbx + 0x69], dil
jne 0x1800abb4d
mov rcx, rbx
call fcn.180018da0
test r14d, r14d
jne 0x1800abb88
test rsi, rsi
jne 0x1800abb88
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.180004510
xor r9d, r9d
lea r8, str.sqlite_stat1
lea rdx, str.no_such_table_column:__s._s
mov rcx, rbx
call fcn.180006c70
mov qword [rsp + 0x60], rax
lea r14d, [rsi + 1]
jmp 0x1800abb8d
mov rax, qword [rsp + 0x60]
test rax, rax
lea rcx, [0x1800c7700]
mov r8, rdi
mov r9, rax
cmovne r8, rcx
mov edx, r14d
mov rcx, rbx
call fcn.180007a10
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800abc12
cmp qword [rbx + 0x2d8], rdi
je 0x1800abbcc
mov rdx, rcx
mov rcx, rbx
call fcn.180004440
jmp 0x1800abc12
cmp rcx, qword [rbx + 0x1c8]
jae 0x1800abc0d
cmp rcx, qword [rbx + 0x1b8]
jb 0x1800abbf1
mov rax, qword [rbx + 0x1b0]
mov qword [rcx], rax
mov qword [rbx + 0x1b0], rcx
jmp 0x1800abc12
cmp rcx, qword [rbx + 0x1c0]
jb 0x1800abc0d
mov rax, qword [rbx + 0x1a0]
mov qword [rcx], rax
mov qword [rbx + 0x1a0], rcx
jmp 0x1800abc12
call sym.SQLite3.dll_sqlite3_free
cmp byte [rbx + 0x61], dil
jne 0x1800abc21
test r14d, r14d
jne 0x1800abc21
mov esi, edi
jmp 0x1800abc2e
mov edx, r14d
mov rcx, rbx
call fcn.180004e00
mov esi, eax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800abc3d
call qword [0x1800e2a40]
test esi, esi
je 0x1800abc56
cmp esi, 1
mov qword [rbp + 0x48], 0x100000
cmove esi, edi
mov eax, esi
jmp 0x1800abd0a
mov r8, qword [rbp + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov rdx, qword [rbp + 0x30]
call sym.SQLite3.dll_sqlite3_mprintf
mov rsi, rax
test rax, rax
jne 0x1800abc7a
lea ebx, [rax + 7]
jmp 0x1800abd08
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov r9d, 0x80
mov r8d, 0xffffffff
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov rcx, rbx
call fcn.180071160
mov ebx, eax
test eax, eax
jne 0x1800abce7
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x1800abcca
xor edx, edx
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_column_int64
mov rdi, rax
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_finalize
mov ebx, eax
test ebx, ebx
jne 0x1800abd00
test rdi, rdi
jne 0x1800abcf0
mov qword [rbp + 0x48], 0x100000
jmp 0x1800abd00
cmp eax, 7
je 0x1800abcd4
mov ebx, edi
jmp 0x1800abcd8
mov eax, 0x64
cmp rdi, rax
cmovg rax, rdi
mov qword [rbp + 0x48], rax
mov rcx, rsi
call sym.SQLite3.dll_sqlite3_free
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret