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

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x563a05
push rbp
mov rbp, rsp
sub rsp, 0xa8
movq qword [rsp + 0xa0], xmm15
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0xc8], ecx
mov dword [rsp + 0xcc], edi
mov qword [rsp + 0xd0], rsi
mov dword [rsp + 0xd8], r8d
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x10
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._accessPayload.deferwrap1]
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x98], rcx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0xa0], rdx
mov byte [rsp + 0x2b], 1
mov rbx, qword [rsp + 0xc0]
mov rdx, rbx
mov rsi, qword [rdx + 0x88]
movzx edi, word [rdx + 0x56]
mov r8, rsi
movzx esi, word [rsi + 0x18]
nop word [rax + rax]
cmp edi, esi
jge 0x56355f
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r8
mov rdx, qword [rdx + 0x20]
mov qword [rsp + 0x68], rdx
mov rax, rcx
call sym.modernc.org_sqlite_lib._getCellInfo
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov rsi, qword [rcx + 0x38]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rdi + 0x50]
mov r9, rsi
sub rsi, r8
mov r8, qword [rsp + 0x68]
mov r10, r8
mov r8d, dword [r8 + 0x38]
movzx ecx, word [rcx + 0x44]
sub r8d, ecx
nop word [rax + rax]
cmp r8, rsi
jb 0x563517
mov r11d, dword [rsp + 0xc8]
cmp r11d, ecx
jae 0x5632de
mov r12d, dword [rsp + 0xcc]
lea r13d, [r12 + r11]
cmp ecx, r13d
jae 0x563270
sub ecx, r11d
jmp 0x563273
mov ecx, r12d
mov qword [rsp + 0x88], r9
mov dword [rsp + 0x40], ecx
mov edx, r11d
lea rbx, [r9 + rdx]
mov r8, qword [rdi + 0x70]
mov rax, qword [rsp + 0xb8]
mov edi, ecx
mov esi, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call sym.modernc.org_sqlite_lib._copyPayload
mov edx, dword [rsp + 0x40]
movsxd r9, edx
mov r10, qword [rsp + 0xd0]
lea rsi, [r10 + r9]
mov edi, dword [rsp + 0xcc]
sub edi, edx
mov rdx, qword [rsp + 0xc0]
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x68]
xor r11d, r11d
jmp 0x5632f2
sub r11d, ecx
xor eax, eax
mov rsi, qword [rsp + 0xd0]
mov edi, dword [rsp + 0xcc]
test eax, eax
jne 0x5635a2
nop word [rax + rax]
test edi, edi
jbe 0x5635a2
mov dword [rsp + 0x5c], edi
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x58], r11d
mov esi, dword [r10 + 0x38]
mov dword [rsp + 0x54], esi
movzx edx, word [rdx + 0x44]
lea rbx, [rdx + r9]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rdi, qword [rsp + 0x78]
mov rsi, rdi
mov dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
movzx edi, byte [rcx + 1]
mov r8d, dword [rsp + 0x54]
lea r9d, [r8 - 4]
mov dword [rsp + 0x34], r9d
bt edi, 2
jae 0x5633b1
cmp r8d, 4
je 0x5639ed
mov r10, qword [rcx + 0x10]
mov eax, dword [rsp + 0x58]
mov ecx, eax
mov rbx, rdx
xor edx, edx
div r9d
mov r11d, eax
lea r11, [r10 + r11*4]
cmp dword [r11], 0
je 0x5633a5
mov rdi, rsi
movsxd r12, eax
lea r10, [r10 + r12*4]
mov r10d, dword [r10]
mov dword [rsi], r10d
nop dword [rax]
jmp 0x5634d7
mov rdi, rsi
xor eax, eax
mov edx, ecx
jmp 0x5634d7
mov r10d, dword [rcx + 0x40]
movzx r11d, word [rcx + 0x44]
sub r10d, r11d
lea eax, [r10 + r8]
lea eax, [rax - 5]
cmp r8d, 4
je 0x5639e8
mov rbx, rdx
xor edx, edx
div r9d
mov dword [rsp + 0x50], eax
mov r10, qword [rcx + 0x10]
nop
test r10, r10
jne 0x5633ec
mov ecx, 1
jmp 0x56342e
shl eax, 2
mov dword [rsp + 0x4c], eax
mov rdx, qword [0x009c0358]
mov rsi, qword [rdx]
mov rbx, r10
mov rax, qword [rsp + 0xb8]
call rsi
mov ecx, dword [rsp + 0x4c]
cmp eax, ecx
setl cl
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x34]
test cl, cl
je 0x56348e
mov rax, qword [rsp + 0xb8]
mov ebx, 0x19d
nop
call sym.modernc.org_sqlite_lib._sqlite3FaultSim
test eax, eax
je 0x56344d
xor eax, eax
jmp 0x563473
mov rdx, qword [rsp + 0xc0]
mov rbx, qword [rdx + 0x10]
mov edx, dword [rsp + 0x50]
shl edx, 1
movsxd rcx, edx
shl rcx, 2
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3Realloc
test rax, rax
je 0x5634f0
mov rdx, qword [rsp + 0xc0]
mov rsi, rdx
mov qword [rdx + 0x10], rax
mov eax, dword [rsp + 0x50]
mov rbx, rsi
mov rbx, qword [rbx + 0x10]
movsxd rdi, eax
shl rdi, 2
mov rax, qword [rsp + 0xb8]
xor ecx, ecx
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0xc0]
lea rsi, [rdx + 1]
movzx r8d, byte [rsi]
or r8d, 4
mov byte [rsi], r8b
mov rbx, rdx
mov rdi, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x34]
xor eax, eax
mov edx, dword [rsp + 0x58]
mov r10, qword [rsp + 0x68]
mov r11d, dword [rsp + 0x5c]
mov rsi, qword [rsp + 0x88]
xor ecx, ecx
jmp 0x563620
mov dword [rsp + 0x30], 7
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, qword [rsp + 0xb8]
mov ebx, 0xb
mov ecx, 0x12777
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, rcx
mov ebx, 0xb
mov ecx, 0x12768
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
test eax, eax
jne 0x5635f2
test edi, edi
jbe 0x5635f2
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, qword [rsp + 0xb8]
mov ebx, 0xb
mov ecx, 0x12812
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
inc eax
mov rbx, r12
mov edx, r10d
mov r10, r13
mov r12, rdi
mov r12d, dword [r12]
test r12d, r12d
je 0x5639de
mov r13, r10
cmp dword [r10 + 0x40], r12d
jb 0x563996
mov dword [rsp + 0x48], r11d
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x5c], edx
mov dword [rsp + 0x38], eax
mov r10, rbx
movsxd r15, eax
shl r15, 2
add r15, qword [rbx + 0x10]
mov dword [r15], r12d
cmp edx, r9d
jb 0x5636e5
mov r12, r10
lea r15d, [rax + 1]
movsxd r15, r15d
shl r15, 2
add r15, qword [r10 + 0x10]
mov r10d, dword [r15]
nop dword [rax]
test r10d, r10d
je 0x56368d
mov r15, rdi
mov dword [r15], r10d
jmp 0x5636d8
mov rsi, rdi
mov ecx, dword [rdi]
mov rax, qword [rsp + 0xb8]
mov rbx, r13
xor edi, edi
nop
call sym.modernc.org_sqlite_lib._getOverflowPage
mov edx, dword [rsp + 0x5c]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x48]
mov r12, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x68]
mov ecx, eax
mov eax, dword [rsp + 0x38]
sub edx, r8d
lea r10d, [rdx + 4]
nop
jmp 0x563969
lea r12d, [r11 + rdx]
cmp r9d, r12d
jae 0x5636fa
mov r12d, r8d
sub r8d, edx
add r8d, 0xfffffffc
jmp 0x563700
mov r12d, r8d
mov r8d, r11d
mov dword [rsp + 0x3c], r8d
mov r15d, dword [rsp + 0xd8]
test r15d, r15d
jne 0x563774
test edx, edx
je 0x56371a
xor ecx, ecx
jmp 0x563776
mov rbx, qword [r13]
mov ecx, dword [rdi]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3PagerDirectReadOk
test eax, eax
setne dl
mov eax, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x34]
mov r10, qword [rsp + 0xc0]
mov r11d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x54]
mov r13, qword [rsp + 0x68]
mov r15d, dword [rsp + 0xd8]
mov ecx, edx
mov edx, dword [rsp + 0x5c]
jmp 0x563776
xor ecx, ecx
test cl, cl
je 0x56384c
lea rcx, [rsi - 4]
mov r12, qword [rsp + 0xd0]
cmp r12, rcx
ja 0x563847
mov qword [rsp + 0x80], rcx
mov r13, qword [r13]
lea r12, [rdi + 4]
mov qword [rsp + 0x70], r12
test byte [r12], al
test byte [rcx], al
mov r13, qword [r13 + 0x48]
cmp rcx, r12
je 0x5637bd
mov ecx, dword [rcx]
mov dword [r12], ecx
lea r9d, [r8 + 4]
mov r10, qword [rsp + 0x68]
mov esi, dword [r10 + 0x34]
mov r12d, dword [rdi]
dec r12d
imul rsi, r12
mov rbx, r13
mov r12, qword [r13]
mov rdx, qword [r12 + 0x10]
mov r12, qword [rdx]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
mov edi, r9d
call r12
mov dword [rsp + 0x2c], eax
mov rbx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rdi, qword [rsp + 0x78]
mov rsi, rdi
mov dword [rdi], eax
mov r8, qword [rsp + 0x80]
test byte [r8], al
mov r9, qword [rsp + 0x70]
test byte [r9], al
cmp r9, r8
je 0x56383a
mov r9d, dword [r9]
mov dword [r8], r9d
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x2c]
jmp 0x563920
test r15d, r15d
jmp 0x56384f
test r15d, r15d
mov esi, 0
mov r8d, 2
cmove esi, r8d
mov rbx, qword [r13]
mov r10, rdi
mov ecx, dword [r10]
lea r10, [rdi + 8]
mov qword [rsp + 0x60], r10
mov r11, rbx
mov rdx, qword [r11 + 0x110]
mov r11, qword [rdx]
mov rax, qword [rsp + 0xb8]
mov rdi, r10
call r11
test eax, eax
je 0x563899
mov ecx, dword [rsp + 0x5c]
jmp 0x563920
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov esi, dword [rsp + 0x5c]
add esi, 4
mov rbx, qword [rcx + 8]
lea rcx, [rbx + rsi]
mov qword [rsp + 0x80], rcx
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3Get4byte
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x60]
mov r8, qword [rcx]
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov edi, dword [rsp + 0x3c]
mov esi, dword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._copyPayload
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rcx]
test rbx, rbx
je 0x56391e
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov eax, dword [rsp + 0x44]
xor ecx, ecx
mov r8d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x3c]
sub r8d, r9d
test r8d, r8d
je 0x563973
movsxd r9, r9d
mov r12, qword [rsp + 0x88]
lea rsi, [r12 + r9]
mov rdi, qword [rsp + 0x78]
mov r9d, dword [rsp + 0x34]
mov r12, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x68]
mov r10d, ecx
mov r11d, r8d
mov r8d, dword [rsp + 0x54]
mov ecx, eax
mov eax, dword [rsp + 0x38]
test ecx, ecx
je 0x563615
jmp 0x5639de
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, qword [rsp + 0xb8]
mov ebx, 0xb
mov ecx, 0x127be
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov eax, ecx
mov edi, r11d
jmp 0x5635a2
call sym.runtime.panicdivide
call sym.runtime.panicdivide
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov dword [rsp + 0x1c], edi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], r8d
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov edi, dword [rsp + 0x1c]
mov rsi, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._accessPayload