Function at 0x1800a76d0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push r13
sub rsp, 0x1a8
xor esi, esi
mov r13, rcx
cmp byte [rcx + 0x1bd], 2
jne 0x1800a7e99
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
lea rcx, str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
mov qword [rax - 0x18], rbx
mov qword [rax - 0x28], rdi
call fcn.180063690
mov qword [rsp + 0x1c8], rax
mov rbx, rax
test rax, rax
je 0x1800a7e92
mov rcx, qword [r13 + 0x18]
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x198], rbp
lea r9d, [rsi + 1]
mov qword [rsp + 0x30], rsi
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov r8d, ebp
mov rdx, rbx
mov qword [rsp + 0x178], r15
mov qword [rsp + 0x1d0], rsi
mov qword [rsp + 0x20], rsi
call fcn.18011d5f0
mov r15d, eax
test eax, eax
jne 0x1800a7e09
mov rbx, qword [rsp + 0x1d0]
lea r15d, [rsi + 0x15]
mov qword [rsp + 0x188], r12
lea r12, [0x1801afe14]
mov qword [rsp + 0x180], r14
mov r14d, esi
test rbx, rbx
jne 0x1800a77ab
lea rdx, str.API_called_with_NULL_prepared_statement
jmp 0x1800a77b7
cmp qword [rbx], rsi
jne 0x1800a77e8
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, r15d
call fcn.18006eed0
mov r9d, 0x11dcf
mov qword [rsp + 0x20], r12
lea r8, str.misuse
mov ecx, r15d
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18006eed0
mov edi, r15d
jmp 0x1800a7c3e
mov r13, qword [rbx]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1800a77fa
call qword [0x1801e59a8]
and dword [rbx + 0x8c], 0xfffffffd
mov rcx, rbx
call fcn.18012fcc0
mov edi, eax
cmp eax, 0x11
jne 0x1800a7c08
nop dword [rax]
nop dword [rax + rax]
mov eax, r14d
inc r14d
cmp eax, 0x32
jge 0x1800a7c01
mov rsi, qword [rbx]
lea rax, [rsp + 0x1d8]
mov rdx, qword [rbx + 0xe8]
mov rcx, rsi
mov r12d, dword [rbx + 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov r8d, ebp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.18011d5f0
mov edi, eax
test eax, eax
jne 0x1800a7b21
mov rdi, qword [rsp + 0x1d8]
lea rax, [rsp + 0x40]
mov rcx, rdi
mov edx, 2
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800a7890
movups xmm0, xmmword [rcx]
mov edx, 2
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
mov rcx, rbx
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
mov rax, rdi
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800a7904
movups xmm0, xmmword [rcx]
mov edx, 2
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rsp + 0x40]
movups xmmword [rax + 0x20], xmm0
mov rax, rbx
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800a7980
movups xmm0, xmmword [rcx]
mov rdx, rbx
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rdi + 0x58]
mov rax, qword [rbx + 0x58]
mov qword [rdi + 0x58], rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x58], rcx
mov rcx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
mov rax, qword [rbx + 0xe8]
mov qword [rbx + 0x50], rcx
mov rcx, qword [rdi + 0xe8]
mov qword [rdi + 0xe8], rax
mov qword [rbx + 0xe8], rcx
mov rcx, rdi
mov eax, dword [rdi + 0x94]
xor eax, dword [rbx + 0x94]
and eax, 0x80
xor dword [rbx + 0x94], eax
call fcn.180130590
xor esi, esi
mov dword [rdi + 0x84], esi
mov eax, dword [rdi + 0x44]
cmp eax, 0xbdf20da3
je 0x1800a7a60
cmp eax, 0x519c2973
jne 0x1800a7a68
mov rcx, rdi
call fcn.180141870
mov rcx, rdi
call fcn.180136340
mov rdi, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1800a7a82
call qword [0x1801e59a8]
cmp qword [rbx + 0xc0], rsi
jle 0x1800a7a96
mov rdx, rbx
mov rcx, rdi
call fcn.1800d0950
mov rcx, rbx
call fcn.180141870
mov dword [rbx + 0x44], 0xbdf20da3
mov dword [rbx + 0x80], ebp
mov dword [rbx + 0x84], esi
mov byte [rbx + 0x8a], 2
mov dword [rbx + 0x98], esi
mov dword [rbx + 0x7c], 1
mov byte [rbx + 0x90], 0xff
mov dword [rbx + 0xa4], esi
mov qword [rbx + 0xd0], rsi
cmp byte [rdi + 0x55], sil
jne 0x1800a7ae6
cmp eax, 0xc0a
jne 0x1800a7aee
mov rcx, rdi
call fcn.1800772f0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1800a7afd
call qword [0x1801e59b8]
test r12d, r12d
js 0x1800a7b09
or dword [rbx + 0x8c], 2
mov rcx, rbx
call fcn.18012fcc0
mov edi, eax
cmp eax, 0x11
je 0x1800a7820
jmp 0x1800a7c01
cmp edi, 7
jne 0x1800a7b4f
cmp byte [rsi + 0x55], 0
jne 0x1800a7b4f
cmp byte [rsi + 0x56], 0
jne 0x1800a7b4f
cmp dword [rsi + 0xb4], 0
mov byte [rsi + 0x55], 1
jle 0x1800a7b49
mov dword [rsi + 0x148], 1
inc dword [rsi + 0x150]
mov rcx, qword [r13 + 0x140]
test rcx, rcx
jne 0x1800a7b5f
xor esi, esi
jmp 0x1800a7b95
movzx edx, word [rcx + 8]
mov r8d, 0x202
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x1800a7b82
cmp byte [rcx + 0xa], 1
jne 0x1800a7b82
mov rsi, qword [rcx + 0x10]
jmp 0x1800a7b95
test dl, 1
je 0x1800a7b8b
xor esi, esi
jmp 0x1800a7b95
mov dl, 1
call fcn.18014e3d0
mov rsi, rax
mov rdx, qword [rbx + 0x48]
mov rcx, r13
call fcn.1800f83c0
cmp byte [r13 + 0x55], 0
jne 0x1800a7bf0
test rsi, rsi
jne 0x1800a7bb6
mov r14, rsi
mov qword [rbx + 0x48], rsi
jmp 0x1800a7bfb
inc rbp
cmp byte [rsi + rbp], 0
jne 0x1800a7bb6
and ebp, 0x3fffffff
mov rcx, r13
lea rdx, [rbp + 1]
call fcn.1800f8480
mov r14, rax
test rax, rax
je 0x1800a7be8
lea r8, [rbp + 1]
mov rdx, rsi
mov rcx, rax
call fcn.1801625a0
xor esi, esi
mov qword [rbx + 0x48], r14
jmp 0x1800a7bfb
xor esi, esi
mov edi, 7
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x84], edi
lea r12, [0x1801afe14]
cmp byte [r13 + 0x55], 0
jne 0x1800a7c1d
cmp edi, 0xc0a
je 0x1800a7c1d
and edi, dword [r13 + 0x48]
jmp 0x1800a7c27
mov rcx, r13
call fcn.1800772f0
mov edi, eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1800a7c36
call qword [0x1801e59b8]
mov r13, qword [rsp + 0x1c0]
test rbx, rbx
jne 0x1800a7c4b
mov r15d, esi
jmp 0x1800a7de4
mov rbp, qword [rbx]
test rbp, rbp
jne 0x1800a7c88
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, r15d
call fcn.18006eed0
mov r9d, 0x11ba8
mov qword [rsp + 0x20], r12
lea r8, str.misuse
mov ecx, r15d
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18006eed0
jmp 0x1800a7df1
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1800a7c97
call qword [0x1801e59a8]
cmp qword [rbx + 0xc0], 0
jle 0x1800a7cac
mov rdx, rbx
mov rcx, rbp
call fcn.1800d0950
mov eax, dword [rbx + 0x44]
mov r14d, esi
cmp eax, 0xbdf20da3
je 0x1800a7cc0
cmp eax, 0x519c2973
jne 0x1800a7ccb
mov rcx, rbx
call fcn.180141870
mov r14d, eax
mov rsi, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call fcn.180135bd0
mov rcx, qword [rbx + 0x50]
mov rax, qword [rbx + 0x58]
test rcx, rcx
je 0x1800a7cec
mov qword [rcx + 0x58], rax
jmp 0x1800a7cf0
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1800a7d01
mov rax, qword [rbx + 0x50]
mov qword [rcx + 0x50], rax
mov dword [rbx + 0x44], 0xb606c3c8
mov qword [rbx], 0
test rsi, rsi
je 0x1800a7d59
cmp qword [rsi + 0x290], 0
je 0x1800a7d2e
mov rdx, rbx
mov rcx, rsi
call fcn.1800d60e0
jmp 0x1800a7db4
cmp rbx, qword [rsi + 0x178]
jb 0x1800a7d59
cmp rbx, qword [rsi + 0x180]
jae 0x1800a7d59
mov rax, qword [rsi + 0x170]
mov qword [rbx], rax
dec dword [rsi + 0x158]
mov qword [rsi + 0x170], rbx
jmp 0x1800a7db4
cmp dword [0x1801e5920], 0
je 0x1800a7dab
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800a7d74
call qword [0x1801e59a8]
mov rcx, rbx
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rbx
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800a7db4
call qword [0x1801e59b8]
jmp 0x1800a7db4
mov rcx, rbx
call qword [0x1801e5950]
cmp byte [rbp + 0x55], 0
jne 0x1800a7dcc
cmp r14d, 0xc0a
je 0x1800a7dcc
mov r15d, dword [rbp + 0x48]
and r15d, r14d
jmp 0x1800a7dd7
mov rcx, rbp
call fcn.1800772f0
mov r15d, eax
mov rcx, rbp
call fcn.18011c490
test r15d, r15d
jne 0x1800a7df1
cmp edi, 0x64
sete al
mov byte [r13 + 0x1bd], al
mov rbx, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x180]
mov r12, qword [rsp + 0x188]
cmp dword [0x1801e5920], 0
mov rbp, qword [rsp + 0x198]
je 0x1800a7e87
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800a7e2c
call qword [0x1801e59a8]
mov rcx, rbx
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rbx
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800a7e61
call qword [0x1801e59b8]
mov eax, r15d
mov r15, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x190]
add rsp, 0x1a8
pop r13
pop rsi
ret
mov rcx, rbx
call qword [0x1801e5950]
jmp 0x1800a7e61
mov eax, 7
jmp 0x1800a7e6c
mov eax, esi
add rsp, 0x1a8
pop r13
pop rsi
ret