Function at 0x1401a1630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [rcx + 0x30]
mov rbp, qword [rcx + 0x18]
mov rax, qword [rax + 0x48]
mov rbx, rcx
mov rsi, rdx
test rax, rax
jne 0x1401a166d
jmp 0x1401a1718
mov rax, qword [rax + 8]
test rax, rax
je 0x1401a1718
cmp rbx, qword [rax]
jne 0x1401a1660
movsxd rdi, dword [rbp + 0x18]
call sym.sqlite3_initialize
mov r12d, eax
test eax, eax
jne 0x1401a17a8
lea rdi, [rdi*4 + 0xb8]
lea rax, [rdi - 1]
cmp rax, 0x7ffffefe
ja 0x1401a17a8
mov eax, dword [0x1402ba6c0]
test eax, eax
je 0x1401a18cc
mov rcx, qword [0x1402ba340]
test rcx, rcx
je 0x1401a16be
call qword [0x1402ba740]
mov rcx, rdi
call sym.sqlite3Malloc.part.0
mov rcx, rax
test rcx, rcx
je 0x1401a18fc
mov rbx, qword [rbx + 0x30]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rax
movq xmm0, qword [rbx + 0x48]
lea rax, [rax + 0xb8]
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [rcx + 8], xmm0
mov rax, qword [rbx + 0x28]
mov qword [rbx + 0x48], rcx
add rax, 1
mov qword [rbx + 0x28], rax
mov qword [rcx + 0x18], rax
jmp 0x1401a177b
mov rax, qword [rbx + 0x28]
mov rdi, qword [rax + 8]
mov r12d, dword [rdi + 0x3c]
test r12d, r12d
jne 0x1401a1790
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x1401a1809
call sym.sqlite3_step
xor r13d, r13d
cmp eax, 0x64
je 0x1401a18dc
mov rcx, qword [rdi + 0x80]
call sym.sqlite3_reset
mov dword [rdi + 0x3c], eax
mov r12d, eax
cmp qword [rdi + 0x88], r13
jne 0x1401a17f8
mov dword [rdi + 0x3c], 0
test r12d, r12d
je 0x1401a1672
xor ecx, ecx
mov eax, r12d
mov qword [rsi], rcx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp qword [rdi + 0x88], 0
jne 0x1401a17b8
mov dword [rdi + 0x3c], 0
jmp 0x1401a1779
mov r12d, 7
xor ecx, ecx
jmp 0x1401a177b
mov r13, qword [rdi + 0x90]
test r13, r13
je 0x1401a179a
mov eax, dword [r13]
sub eax, 1
mov dword [r13], eax
test eax, eax
jle 0x1401a188b
mov qword [rdi + 0x90], 0
mov dword [rdi + 0x3c], 0
test r12d, r12d
jne 0x1401a1779
jmp 0x1401a1672
mov r13, qword [rdi + 0x90]
test r13, r13
jne 0x1401a17c4
jmp 0x1401a1769
mov rax, qword [rdi]
lea rcx, str.PRAGMA__Q.data_version
mov rdx, qword [rax + 8]
call sym.sqlite3_mprintf
mov ecx, dword [rdi + 0x3c]
mov r12, rax
test ecx, ecx
jne 0x1401a186a
test rax, rax
je 0x1401a18f0
mov rax, qword [rdi]
lea rdx, [rdi + 0x80]
mov qword [rsp + 0x30], 0
mov r9d, 0x85
mov qword [rsp + 0x28], rdx
mov r8d, 0xffffffff
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call sym.sqlite3LockAndPrepare
mov dword [rdi + 0x3c], eax
mov rcx, r12
call sym.sqlite3_free
mov r12d, dword [rdi + 0x3c]
test r12d, r12d
jne 0x1401a1790
mov rcx, qword [rdi + 0x80]
jmp 0x1401a1739
mov edx, dword [r13 + 0x1c]
xor r12d, r12d
test edx, edx
jle 0x1401a18bb
nop word cs:[rax + rax]
mov rax, r12
add r12, 1
shl rax, 4
mov rcx, qword [r13 + rax + 0x28]
call sym.sqlite3_free
cmp dword [r13 + 0x1c], r12d
jg 0x1401a18a0
mov rcx, r13
call sym.sqlite3_free
mov r12d, dword [rdi + 0x3c]
jmp 0x1401a17d7
mov ecx, edi
call qword [0x1402ba6e0]
mov rcx, rax
jmp 0x1401a16c9
mov rcx, qword [rdi + 0x80]
call sym.sqlite3_column_int64.constprop.0
mov r13, rax
jmp 0x1401a174a
mov dword [rdi + 0x3c], 7
jmp 0x1401a186a
mov r12d, 7
jmp 0x1401a177b