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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x550792
push rbp
mov rbp, rsp
sub rsp, 0x70
movq qword [rsp + 0x68], xmm15
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x9c], esi
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x10
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x50], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3PagerMovepage.deferwrap1]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x2b], 1
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
cmp byte [rdx + 0x10], 0
jne 0x550458
xor edx, edx
jmp 0x550487
mov rax, rcx
mov rbx, qword [rsp + 0x90]
call sym.modernc.org_sqlite_lib._sqlite3PagerWrite
test eax, eax
jne 0x550766
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov edx, eax
mov rax, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x90]
mov rdi, rsi
movzx esi, word [rsi + 0x34]
bt esi, 1
jb 0x5504a3
mov esi, 0
jmp 0x5504db
mov dword [rsp + 0x3c], esi
mov rax, rcx
mov rbx, rdi
call sym.modernc.org_sqlite_lib._subjournalPageIfRequired
mov ecx, dword [rsp + 0x3c]
bt ecx, 1
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov esi, eax
mov edx, esi
mov rax, qword [rsp + 0x50]
jae 0x550501
nop dword [rax]
test esi, esi
je 0x550501
mov dword [rsp + 0x30], edx
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x68]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rbp
ret
mov rdx, rdi
movzx esi, word [rdi + 0x34]
bt esi, 3
jae 0x55051e
mov esi, dword [rsp + 0x9c]
test esi, esi
jne 0x55051e
mov esi, dword [rdi + 0x30]
jmp 0x550520
xor esi, esi
mov dword [rsp + 0x38], esi
lea rdi, [rdx + 0x34]
mov qword [rsp + 0x48], rdi
movzx r9d, word [rdi]
and r9d, 0xfffffff7
mov word [rdi], r9w
mov rax, rcx
mov ecx, dword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._sqlite3PagerLookup
mov qword [rsp + 0x40], rax
test rax, rax
je 0x5505f6
mov rbx, rax
cmp qword [rax + 0x38], 1
nop
jg 0x5505a7
mov rdx, qword [rsp + 0x48]
movzx esi, word [rdx]
movzx edi, word [rax + 0x34]
and edi, 8
or esi, edi
mov word [rdx], si
mov rdx, qword [rsp + 0x88]
cmp byte [rdx + 0x10], 0
je 0x550598
mov ecx, dword [rdx + 0x20]
inc ecx
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3PcacheMove
jmp 0x5505f6
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3PcacheDrop
jmp 0x5505f6
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, qword [rsp + 0x80]
mov ebx, 0xb
mov ecx, 0xfb39
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rbp
ret
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov edx, dword [rdx + 0x30]
mov dword [rsp + 0x34], edx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._sqlite3PcacheMove
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
call sym.modernc.org_sqlite_lib._sqlite3PcacheMakeDirty
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
cmp byte [rdx + 0x10], 0
je 0x55067f
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x55067f
mov rax, qword [rsp + 0x80]
mov rbx, r8
mov ecx, dword [rsp + 0x34]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3PcacheMove
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x40]
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov rbx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x550745
mov r8, rbx
mov rdx, qword [r8 + 0x110]
mov r8, qword [rdx]
nop
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x50]
xor esi, esi
call r8
test eax, eax
je 0x550706
mov rsi, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x38]
nop dword [rax + rax]
cmp dword [rsi + 0x24], ecx
jb 0x5506e9
mov dword [rsp + 0x2c], eax
mov rbx, qword [rsi + 0x40]
mov rdi, qword [rsi + 0x118]
mov rax, qword [rsp + 0x80]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3BitvecClear
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x68]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, qword [rcx]
add rcx, 0x34
movzx esi, word [rcx]
or esi, 8
mov word [rcx], si
mov rbx, qword [rdx]
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3PcacheMakeDirty
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0x80]
nop
call sym.modernc.org_sqlite_lib._sqlite3PagerUnrefNotNull
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x68]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rbp
ret
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x68]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
jmp sym.modernc.org_sqlite_lib._sqlite3PagerMovepage