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

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x6a4ceb
push rbp
mov rbp, rsp
sub rsp, 0x98
movq qword [rsp + 0x90], xmm15
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rcx
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x2c], 0
mov ebx, 0x20
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._statDecodePage.deferwrap1]
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x90], rdx
mov byte [rsp + 0x2b], 1
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
cmp dword [rdx], 1
jne 0x6a44fe
mov esi, 0x64
jmp 0x6a4500
xor esi, esi
mov rdi, qword [rdx + 8]
movsxd rsi, esi
lea r8, [rsi + rdi]
movzx r8d, byte [r8]
mov byte [rdx + 0x20], r8b
mov r8, rbx
movzx r9d, byte [r8 + 0x20]
nop dword [rax + rax]
cmp r9d, 0xa
je 0x6a452c
cmp r9d, 0xd
jne 0x6a4539
mov edx, 8
mov r9d, 1
jmp 0x6a4552
cmp r9d, 5
je 0x6a454a
nop
cmp r9d, 2
jne 0x6a4602
mov edx, 0xc
xor r9d, r9d
cmp dword [r8], 1
jne 0x6a455b
add edx, 0x64
mov qword [rsp + 0x60], rax
lea r10, [rsi + rdi]
lea r10, [r10 + 3]
movzx r10d, byte [r10]
shl r10d, 8
lea r11, [rsi + rdi]
lea r11, [r11 + 4]
movzx r11d, byte [r11]
or r11d, r10d
mov dword [r8 + 0x24], r11d
mov r8, rbx
mov dword [r8 + 0x3c], 0
lea r8, [rsi + rdi]
lea r8, [r8 + 5]
movzx r8d, byte [r8]
shl r8d, 8
lea r10, [rsi + rdi]
lea r10, [r10 + 6]
movzx r10d, byte [r10]
or r10d, r8d
sub r10d, edx
mov r8, rbx
mov r11d, dword [r8 + 0x24]
shl r11d, 1
sub r10d, r11d
lea r11, [rsi + rdi]
lea r11, [r11 + 7]
movzx r11d, byte [r11]
lea r12, [rsi + rdi]
lea r12, [r12 + 1]
movzx r12d, byte [r12]
shl r12d, 8
lea r13, [rsi + rdi]
lea r13, [r13 + 2]
movzx r13d, byte [r13]
mov r15, qword [rsp + 0xb0]
mov r15, qword [r15 + 8]
nop
add r10d, r11d
or r13d, r12d
mov r11d, dword [r15 + 0x34]
nop
jmp 0x6a4640
mov rdx, rbx
mov byte [rdx + 0x20], 0
mov rax, rcx
call sym.modernc.org_sqlite_lib._statClearCells
mov dword [rsp + 0x2c], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
mov r13d, eax
mov rax, qword [rsp + 0x60]
test r13d, r13d
je 0x6a46a5
cmp r13d, r11d
jge 0x6a4602
lea r12d, [r13 + 2]
movsxd r12, r12d
lea r15, [r12 + rdi]
movzx r15d, byte [r15]
shl r15d, 8
lea r12, [r12 + rdi]
lea r12, [r12 + 1]
movzx r12d, byte [r12]
or r15d, r12d
movsxd r12, r13d
lea rax, [r12 + rdi]
movzx eax, byte [rax]
shl eax, 8
lea r12, [r12 + rdi]
lea r12, [r12 + 1]
movzx r12d, byte [r12]
or eax, r12d
lea r12d, [r13 + 4]
add r10d, r15d
cmp eax, r12d
jge 0x6a4638
test eax, eax
jle 0x6a4638
nop dword [rax]
jmp 0x6a4602
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x34], edx
mov dword [r8 + 0x28], r10d
nop dword [rax]
test r9d, r9d
je 0x6a46c9
xor esi, esi
jmp 0x6a4703
lea rbx, [rsi + rdi]
lea rbx, [rbx + 8]
mov rax, rcx
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rcx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x34]
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x68]
mov r9d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x54]
mov esi, eax
mov rax, qword [rsp + 0x60]
mov r8, rbx
mov dword [rbx + 0x38], esi
mov rsi, r8
cmp dword [r8 + 0x24], 0
je 0x6a486f
mov rbx, qword [rsp + 0xb0]
mov r8, rbx
nop
cmp byte [r8 + 0x11], 0
je 0x6a4775
inc dword [r8 + 0x14]
mov r8, rbx
cmp byte [r8 + 0x12], 0
jne 0x6a4775
mov rax, rcx
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._btreeLockCarefully
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x34]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x68]
mov r9d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x54]
mov r8, rbx
mov r10, qword [r8 + 8]
mov r12d, dword [r10 + 0x34]
sub r12d, dword [r10 + 0x38]
mov r10d, r11d
sub r11d, r12d
mov dword [rsp + 0x30], r11d
nop
cmp byte [r8 + 0x11], 0
je 0x6a47e2
dec dword [r8 + 0x14]
mov r8, rbx
cmp dword [r8 + 0x14], 0
jne 0x6a47e2
mov rax, rcx
call sym.modernc.org_sqlite_lib._unlockBtreeMutex
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x34]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x68]
mov r9d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x30]
mov esi, dword [rsi + 0x24]
inc esi
movsxd rbx, esi
shl rbx, 5
mov rax, rcx
call sym.modernc.org_sqlite_lib.Xsqlite3_malloc64
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov qword [rcx + 0x30], rax
mov rbx, qword [rdx + 0x30]
test rbx, rbx
je 0x6a4848
mov edx, dword [rdx + 0x24]
inc edx
movsxd rdi, edx
shl rdi, 5
mov rax, qword [rsp + 0xa8]
xor ecx, ecx
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0xb8]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x54]
xor eax, eax
jmp 0x6a489b
mov dword [rsp + 0x2c], 7
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
mov dword [rsp + 0x2c], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
inc eax
mov rdx, rbx
mov rbx, rdx
nop
cmp dword [rdx + 0x24], eax
jle 0x6a486f
movsxd r11, eax
shl r11, 5
lea r12d, [r8 + rax*2]
movsxd r12, r12d
lea r13, [r12 + r9]
movzx r13d, byte [r13]
shl r13d, 8
lea r12, [r12 + r9]
lea r12, [r12 + 1]
movzx r12d, byte [r12]
or r12d, r13d
add r11, qword [rdx + 0x30]
cmp r8d, r12d
jg 0x6a4bcb
nop
cmp r10d, r12d
jle 0x6a4bcb
mov qword [rsp + 0x58], r11
mov dword [rsp + 0x44], eax
test esi, esi
jne 0x6a4945
mov dword [rsp + 0x40], r12d
movsxd rcx, r12d
lea rbx, [rcx + r9]
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov dword [rcx + 4], eax
mov r12d, dword [rsp + 0x40]
add r12d, 4
mov eax, dword [rsp + 0x44]
mov rbx, qword [rsp + 0xb8]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x54]
mov r11, rdx
mov r13, rbx
movzx r13d, byte [r13 + 0x20]
cmp r13d, 5
je 0x6a4896
movsxd rdx, r12d
add rdx, r9
mov r13, rdx
movzx edx, byte [rdx]
cmp edx, 0x80
jge 0x6a497e
mov rcx, qword [rsp + 0x60]
mov r13, rcx
mov dword [r13], edx
mov edx, 1
jmp 0x6a49c9
mov dword [rsp + 0x50], r12d
mov rax, qword [rsp + 0xa8]
mov rbx, r13
mov rcx, qword [rsp + 0x60]
call sym.modernc.org_sqlite_lib._sqlite3GetVarint32
movzx edx, al
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xb8]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x54]
mov r11, qword [rsp + 0x58]
mov r12d, dword [rsp + 0x50]
movzx edx, dl
mov r13, rbx
movzx r15d, byte [rbx + 0x20]
add edx, r12d
cmp r15d, 0xd
jne 0x6a4a2e
mov dword [rsp + 0x4c], edx
movsxd rsi, edx
lea rbx, [rsi + r9]
lea rsi, [rcx + 8]
mov rax, qword [rsp + 0xa8]
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3GetVarint
movzx edx, al
mov esi, dword [rsp + 0x4c]
add edx, esi
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x54]
mov r11, qword [rsp + 0x58]
mov r13, qword [rsp + 0xb8]
mov dword [rsp + 0x50], edx
mov r12, rcx
mov r15d, dword [rcx]
mov rcx, r13
nop dword [rax + rax]
cmp dword [r13 + 0x3c], r15d
jae 0x6a4a4a
mov dword [r13 + 0x3c], r15d
movzx ecx, byte [rcx + 0x20]
mov edi, dword [r12]
mov rax, qword [rsp + 0xa8]
mov ebx, dword [rsp + 0x30]
nop
call sym.modernc.org_sqlite_lib._getLocalPayload
test eax, eax
jl 0x6a4bb6
mov rsi, qword [rsp + 0x58]
mov r8, rsi
mov dword [rsi], eax
mov rcx, qword [rsp + 0x60]
mov rsi, rcx
mov esi, dword [rsi]
cmp eax, esi
jae 0x6a4b56
mov edx, esi
sub esi, eax
mov edi, dword [rsp + 0x30]
lea r9d, [rdi - 4]
lea r10d, [rdi + rsi]
lea r10d, [r10 - 5]
nop dword [rax]
test r9d, r9d
je 0x6a4cd3
mov ebx, eax
mov eax, r10d
mov r10d, edx
xor edx, edx
div r9d
mov edx, dword [rsp + 0x50]
lea r11d, [rdx + rbx]
lea r11d, [r11 + 4]
add edx, ebx
cmp r11d, edi
jg 0x6a4ba1
cmp r10d, 0x7fffffff
ja 0x6a4ba1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], edx
mov rcx, r8
lea edx, [rax - 1]
imul edx, r9d
sub esi, edx
mov dword [r8 + 0x18], esi
mov dword [rcx + 8], eax
movsxd rbx, eax
shl rbx, 2
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib.Xsqlite3_malloc64
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov qword [rcx + 0x10], rax
cmp qword [rdx + 0x10], 0
je 0x6a4b7a
mov ecx, dword [rsp + 0x50]
movsxd rcx, ecx
mov rdx, qword [rsp + 0x68]
lea rbx, [rcx + rdx]
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov rcx, qword [rcx + 0x10]
mov dword [rcx], eax
mov eax, 1
jmp 0x6a4bde
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x44]
mov rbx, qword [rsp + 0xb8]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x54]
jmp 0x6a4896
mov dword [rsp + 0x2c], 7
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb8]
jmp 0x6a4602
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb8]
jmp 0x6a4602
mov rcx, qword [rsp + 0xa8]
jmp 0x6a4602
mov eax, dword [rsp + 0x38]
inc eax
mov r8d, dword [rsp + 0x48]
cmp r8d, eax
jle 0x6a4b51
mov dword [rsp + 0x38], eax
lea r9d, [rax - 1]
movsxd r9, r9d
shl r9, 2
add r9, qword [rdx + 0x10]
mov ecx, dword [r9]
mov rdi, qword [rsp + 0x60]
lea r9, [rdi + 0x10]
mov qword [rsp + 0x70], r9
mov r10, r9
mov qword [r9], 0
mov r9, qword [rsp + 0xb0]
mov r9, qword [r9 + 8]
mov rbx, qword [r9]
mov r9, rbx
mov rdx, qword [r9 + 0x110]
mov r9, qword [rdx]
nop
nop
xor esi, esi
mov rax, qword [rsp + 0xa8]
mov rdi, r10
call r9
test eax, eax
jne 0x6a4cb0
mov ecx, dword [rsp + 0x38]
movsxd rdx, ecx
shl rdx, 2
mov qword [rsp + 0x78], rdx
mov rsi, qword [rsp + 0x70]
mov rsi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov rsi, qword [rsp + 0x78]
add rsi, qword [rcx + 0x10]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx]
test rbx, rbx
je 0x6a4bd8
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov rdx, qword [rsp + 0x58]
jmp 0x6a4bd8
mov dword [rsp + 0x2c], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
call sym.runtime.panicdivide
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._statDecodePage