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

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x56e1a1
push rbp
mov rbp, rsp
sub rsp, 0x90
movq qword [rsp + 0x88], xmm15
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rbx
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x34], 0
mov ebx, 0x10
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x60], rax
lea rcx, [sym.modernc.org_sqlite_lib._balance.deferwrap1]
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rcx
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x88], rdx
mov byte [rsp + 0x2b], 1
mov rdx, qword [rsp + 0xa8]
mov ebx, 1
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x56ddc0
test eax, eax
sete r9b
mov r10, qword [rsp + 0xa0]
mov ebx, r9d
mov esi, edx
mov rdi, rcx
mov r8d, eax
mov rax, qword [rsp + 0x60]
mov rcx, r10
mov rdx, qword [rsp + 0xa8]
nop dword [rax]
test bl, bl
je 0x56e14d
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x2c], esi
mov rbx, rdx
mov r9, qword [rdx + 0x88]
mov qword [rsp + 0x50], r9
mov r10, r9
cmp dword [r9 + 0x14], 0
jl 0x56ddee
xor edx, edx
jmp 0x56de2d
mov dword [rsp + 0x30], r8d
mov rax, rcx
mov rbx, r10
call sym.modernc.org_sqlite_lib._btreeComputeFreeSpace
test eax, eax
setne cl
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa8]
mov esi, dword [rsp + 0x2c]
mov rdi, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x30]
mov r10, qword [rsp + 0x50]
mov edx, ecx
mov rcx, qword [rsp + 0xa0]
test dl, dl
jne 0x56e14d
mov r9, r10
movzx r11d, byte [r10 + 0xc]
nop dword [rax]
test r11d, r11d
jne 0x56de69
mov r12d, dword [r10 + 0x14]
lea r12d, [r12 + r12*2]
mov r13, rbx
mov r13, qword [r13 + 0x20]
mov r13d, dword [r13 + 0x38]
shl r13d, 1
nop dword [rax + rax]
cmp r12d, r13d
jle 0x56e14d
mov r12, rbx
movsx r12, byte [r12 + 0x54]
test r12d, r12d
jne 0x56df4a
nop dword [rax + rax]
test r11b, r11b
je 0x56dec0
mov byte [rsp + 0x2a], r11b
mov rax, rcx
call sym.modernc.org_sqlite_lib._anotherValidCursor
movzx ecx, byte [rsp + 0x2a]
test cl, cl
mov rcx, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov esi, eax
mov r8d, esi
mov rax, qword [rsp + 0x60]
nop dword [rax]
je 0x56e14d
test esi, esi
jne 0x56e14d
mov dword [rsp + 0x2c], esi
lea rdx, [rbx + 0x98]
mov qword [rsp + 0x70], rdx
mov rax, rcx
mov rcx, rdx
mov rbx, r9
call sym.modernc.org_sqlite_lib._balance_deeper
test eax, eax
jne 0x56df34
mov rcx, qword [rsp + 0xa8]
mov rbx, rcx
mov byte [rcx + 0x54], 1
mov rcx, rbx
mov word [rbx + 0x56], 0
lea rsi, [rcx + 0x58]
mov word [rsi], 0
lea rsi, [rcx + 0x90]
mov r8, qword [rsp + 0x50]
mov qword [rsi], r8
mov rbx, rcx
mov rsi, qword [rsp + 0x70]
mov rsi, qword [rsi]
mov qword [rcx + 0x88], rsi
jmp 0x56df3c
mov rbx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
jmp 0x56dd94
mov rdx, qword [r10 + 0x70]
mov rdx, qword [rdx + 0x38]
nop
cmp edx, 1
jle 0x56df8a
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, rcx
mov ebx, 0xb
mov ecx, 0x136f3
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
jmp 0x56e144
mov dword [rsp + 0x44], r12d
lea edx, [r12 - 1]
movsxd rdx, edx
lea rsi, [rbx + rdx*8]
lea rsi, [rsi + 0x90]
mov rsi, qword [rsi]
mov qword [rsp + 0x48], rsi
lea rdx, [rbx + rdx*2]
lea rdx, [rdx + 0x58]
mov rsi, qword [rsi + 0x70]
movzx edx, word [rdx]
mov dword [rsp + 0x40], edx
mov rax, rcx
mov rbx, rsi
call sym.modernc.org_sqlite_lib._sqlite3PagerWrite
test eax, eax
jne 0x56dfee
mov rbx, qword [rsp + 0x48]
mov rsi, rbx
cmp dword [rsi + 0x14], 0
jge 0x56dff3
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._btreeComputeFreeSpace
mov rbx, qword [rsp + 0x48]
jmp 0x56dff3
mov rbx, qword [rsp + 0x48]
test eax, eax
je 0x56e005
mov rcx, qword [rsp + 0x58]
nop dword [rax]
jmp 0x56e0da
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
cmp byte [rdx + 2], 0
je 0x56e05d
movzx esi, byte [rdx + 0xc]
cmp esi, 1
jne 0x56e05d
lea rsi, [rcx + 0x1c]
movzx esi, word [rsi]
movzx edx, word [rdx + 0x18]
cmp esi, edx
jne 0x56e05d
mov rdx, rbx
cmp dword [rdx + 4], 1
je 0x56e05d
movzx edx, word [rdx + 0x18]
mov esi, dword [rsp + 0x40]
nop dword [rax]
cmp edx, esi
jne 0x56e05d
mov rax, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x60]
call sym.modernc.org_sqlite_lib._balance_quick
mov rcx, qword [rsp + 0x58]
jmp 0x56e0da
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + 0x20]
mov ebx, dword [rcx + 0x34]
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._pcache1Alloc
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0xa8]
movzx r8d, byte [rcx + 3]
and r8d, 1
mov ecx, dword [rsp + 0x44]
cmp ecx, 1
sete cl
movzx esi, cl
mov rbx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rdi, rax
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._balance_nonroot
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x56e0d5
mov dword [rsp + 0x3c], eax
nop
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._pcache1Free
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x50]
mov r8, rsi
mov byte [rsi + 0xc], 0
nop
test r8, r8
je 0x56e110
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x38], eax
mov rbx, qword [r8 + 0x70]
nop
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xa8]
mov rsi, rbx
movzx r8d, byte [rsi + 0x54]
dec r8d
mov byte [rsi + 0x54], r8b
mov rsi, rbx
movsx r8, byte [rsi + 0x54]
lea r8, [rbx + r8*8]
lea r8, [r8 + 0x90]
mov r8, qword [r8]
mov qword [rsi + 0x88], r8
mov edx, dword [rsp + 0x2c]
jmp 0x56dd94
test rdi, rdi
je 0x56e16a
mov dword [rsp + 0x30], r8d
nop
mov rax, rcx
mov rbx, rdi
nop
call sym.modernc.org_sqlite_lib._pcache1Free
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x34], r8d
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x88]
mov rax, qword [rdx]
nop
call rax
mov eax, dword [rsp + 0x34]
add rsp, 0x90
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.modernc.org_sqlite_lib._balance