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

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x5767f2
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 qword [rsp + 0xd0], rdi
mov dword [rsp + 0xd8], esi
mov byte [rsp + 0x2f], 0
mov dword [rsp + 0x38], 0
mov ebx, 0x10
nop dword [rax]
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x70], rax
lea rcx, [sym.modernc.org_sqlite_lib._backupOnePage.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 + 0x2f], 1
mov rdx, qword [rsp + 0xc0]
mov rsi, rdx
mov rdi, qword [rdx + 8]
mov rdx, qword [rdx + 0x28]
mov r8d, dword [rsp + 0xc8]
mov r8d, r8d
mov rdx, qword [rdx + 8]
mov edx, dword [rdx + 0x34]
movsxd r9, edx
mov qword [rsp + 0x88], r9
imul r8, r9
mov qword [rsp + 0x68], r8
mov rdi, qword [rdi + 8]
mov r10d, dword [rdi + 0x34]
mov dword [rsp + 0x4c], r10d
mov r11, r8
sub r8, r9
mov rbx, qword [rdi]
mov qword [rsp + 0x58], rbx
cmp r10d, edx
mov edi, r10d
cmovg r10d, edx
mov dword [rsp + 0x3c], r10d
xor edx, edx
xor r12d, r12d
jmp 0x576480
add r8, r15
mov r15, qword [rsp + 0xc0]
mov rax, r13
mov r10d, edx
mov edx, esi
mov rsi, r15
nop
test edx, edx
jne 0x57679f
cmp r8, r11
jge 0x57679f
mov r13, rax
mov qword [rax], 0
movsxd r15, edi
nop
test r15, r15
je 0x5767d7
mov rax, r8
cmp r15, 0xffffffffffffffff
jne 0x5764b9
neg rax
xor edx, edx
jmp 0x5764be
cqo
idiv r15
mov rsi, qword [rsi + 8]
mov rsi, qword [rsi + 8]
mov esi, dword [rsi + 0x34]
test esi, esi
je 0x5767d2
mov qword [rsp + 0x80], rdx
inc eax
mov dword [rsp + 0x40], eax
mov edx, dword [0x009b86f4]
mov eax, edx
xor edx, edx
div esi
inc eax
mov edx, r10d
mov r10d, dword [rsp + 0x40]
cmp eax, r10d
jne 0x576505
xor esi, esi
nop dword [rax]
jmp 0x576468
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x60], r8
mov r8, rbx
mov rdx, qword [r8 + 0x110]
mov r8, qword [rdx]
nop
mov rax, rcx
mov ecx, r10d
mov rdi, r13
xor esi, esi
call r8
test eax, eax
je 0x57653a
mov ecx, dword [rsp + 0x30]
jmp 0x57655b
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3PagerWrite
mov ecx, dword [rsp + 0x34]
test ecx, ecx
mov ecx, eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x44], eax
jne 0x5766df
test ecx, ecx
jne 0x5766df
mov r8, qword [rsp + 0x88]
nop dword [rax]
test r8, r8
je 0x5767cd
mov edx, eax
mov rax, qword [rsp + 0x60]
mov rbx, rax
mov esi, edx
cmp r8, 0xffffffffffffffff
jne 0x5765a2
neg rax
xor edx, edx
jmp 0x5765a7
cqo
idiv r8
mov rdi, qword [rsp + 0x70]
mov r9, rdi
mov r9, qword [r9]
mov r10d, dword [rsp + 0x3c]
movsxd r11, r10d
mov r12, qword [rsp + 0xd0]
lea r13, [r12 + rdx]
mov rax, qword [rsp + 0x80]
add rax, qword [r9 + 8]
test r11, r11
je 0x576644
movabs r9, 0x3ffffffffffff
cmp r9, r11
jb 0x5767c2
mov r15, rax
test byte [r15], al
test byte [r13], al
cmp r13, r15
je 0x57664e
mov qword [rsp + 0x50], rax
mov rax, r15
mov rbx, r13
mov rcx, r11
call sym.runtime.memmove
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
mov esi, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
movabs r9, 0x3ffffffffffff
mov r10d, dword [rsp + 0x3c]
mov r12, qword [rsp + 0xd0]
jmp 0x57664e
movabs r9, 0x3ffffffffffff
mov r11, rdi
mov r11, qword [r11]
mov r11, qword [r11 + 0x10]
mov byte [r11], 0
nop dword [rax]
test rbx, rbx
jne 0x5766d5
mov r11d, dword [rsp + 0xd8]
test r11d, r11d
jne 0x576712
lea rbx, [rax + 0x1c]
mov rdx, qword [rsp + 0xc0]
mov rdx, qword [rdx + 0x28]
mov rdx, qword [rdx + 8]
mov ecx, dword [rdx + 0x40]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3Put4byte
mov ecx, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
mov esi, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
movabs r9, 0x3ffffffffffff
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
jmp 0x576712
mov r11d, dword [rsp + 0xd8]
jmp 0x576712
mov rbx, qword [rsp + 0x60]
mov esi, eax
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
movabs r9, 0x3ffffffffffff
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
mov r13, rdi
mov r13, qword [r13]
test r13, r13
je 0x576767
mov rax, qword [rsp + 0xb8]
mov rbx, r13
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov ecx, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
mov esi, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
movabs r9, 0x3ffffffffffff
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
mov edx, r10d
mov edi, dword [rsp + 0x4c]
mov r8, rbx
mov r9, qword [rsp + 0x88]
mov r11, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
jmp 0x576468
mov dword [rsp + 0x38], edx
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0xa8
pop rbp
ret
mov rdx, r11
mov rbx, r9
call sym.runtime.panicSlice3AlenU
call sym.runtime.panicdivide
call sym.runtime.panicdivide
call sym.runtime.panicdivide
nop
nop dword [rax]
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov esi, dword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._backupOnePage