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

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x553b5c
push rbp
mov rbp, rsp
sub rsp, 0xa0
movq qword [rsp + 0x98], xmm15
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov dword [rsp + 0xc0], ecx
mov qword [rsp + 0xc8], rdi
mov byte [rsp + 0x2f], 0
mov dword [rsp + 0x34], 0
mov ebx, 0x20
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x50], rax
lea rcx, [sym.modernc.org_sqlite_lib._walIteratorInit.deferwrap1]
mov qword [rsp + 0x88], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x90], rcx
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x98], rdx
mov byte [rsp + 0x2f], 1
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x58]
mov dword [rsp + 0x3c], edx
lea edi, [rdx + 0x1000]
add rdi, 0xfffffffffffff021
shr rdi, 0xc
mov qword [rsp + 0x80], rdi
movsxd r8, edi
shl r8, 5
lea r9, [r8 + rdx*2]
mov qword [rsp + 0x78], r9
lea r8, [r8 + rdx*2]
lea r8, [r8 + 0x28]
mov qword [rsp + 0x70], r8
cmp edx, 0x1000
mov r10d, 0x1000
cmova edx, r10d
mov edx, edx
lea rbx, [r9 + rdx*2]
lea rbx, [rbx + 0x28]
mov rax, rcx
call sym.modernc.org_sqlite_lib.Xsqlite3_malloc64
test rax, rax
je 0x553958
mov qword [rsp + 0x48], rax
mov rbx, rax
xor ecx, ecx
mov rdi, qword [rsp + 0x70]
mov rax, qword [rsp + 0xb0]
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0x80]
inc edx
mov dword [rsp + 0x38], edx
mov rbx, qword [rsp + 0x48]
mov rsi, rbx
mov dword [rsi + 4], edx
mov esi, dword [rsp + 0xc0]
add esi, 0x1001
add rsi, 0xfffffffffffff021
mov r8, qword [rsp + 0x78]
lea r8, [rbx + r8]
lea r8, [r8 + 0x28]
mov qword [rsp + 0x58], r8
nop
shr rsi, 0xc
mov rax, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0xb8]
xor ecx, ecx
jmp 0x5539ad
mov dword [rsp + 0x34], 7
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x34]
add rsp, 0xa0
pop rbp
ret
mov esi, dword [rsp + 0x40]
inc esi
mov r11, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x50]
mov edx, dword [rsp + 0x38]
mov r10, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov ecx, eax
mov rax, r11
mov dword [rsp + 0x30], ecx
test ecx, ecx
jne 0x553a72
nop dword [rax]
cmp esi, edx
jge 0x553a6e
mov dword [rsp + 0x40], esi
mov rbx, r10
mov ecx, esi
mov rdi, r9
call sym.modernc.org_sqlite_lib._walHashGet
test eax, eax
jne 0x55397f
mov edx, dword [rsp + 0x40]
lea r8d, [rdx + 1]
mov r9d, dword [rsp + 0x38]
cmp r8d, r9d
jne 0x553a0f
mov rsi, qword [rsp + 0x50]
lea r8, [rsi + 0x18]
mov r10, rsi
mov r10d, dword [r10 + 0x10]
mov r11d, dword [rsp + 0x3c]
mov r12d, r11d
sub r11d, r10d
mov dword [r8], r11d
jmp 0x553a3c
mov rsi, qword [rsp + 0x50]
lea r8, [rsi + 0x18]
mov r10, rsi
mov r11, qword [r10]
sub r11, qword [r10 + 8]
mov r10, r11
sar r11, 0x3f
shr r11, 0x3e
add r10, r11
sar r10, 2
mov dword [r8], r10d
mov r12d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x48]
mov r10, r8
movsxd r8, dword [r8 + 4]
shl r8, 5
add r8, r10
mov r11, rsi
mov r13d, dword [r11 + 0x10]
lea r15d, [r13 + 1]
mov dword [r11 + 0x10], r15d
lea rdi, [r8 + r13*2]
lea rdi, [rdi + 8]
lea r8, [r8 + r13*2]
xor ecx, ecx
jmp 0x553abd
test ecx, ecx
je 0x553a7e
nop
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov ecx, dword [rsp + 0x30]
xor ebx, ebx
mov rax, qword [rsp + 0xc8]
mov qword [rax], rbx
mov dword [rsp + 0x34], ecx
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x34]
add rsp, 0xa0
pop rbp
ret
movsxd r11, ecx
lea r11, [r8 + r11*2]
lea r11, [r11 + 8]
mov word [r11], cx
inc ecx
lea r11, [rsi + 0x18]
mov r13, r11
cmp dword [r11], ecx
jg 0x553aac
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r13
mov rbx, qword [rsi + 8]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
mov rsi, r13
call sym.modernc.org_sqlite_lib._walMergesort
mov edx, dword [rsp + 0x40]
movsxd r8, edx
shl r8, 5
mov rbx, qword [rsp + 0x48]
lea r8, [rbx + r8]
lea r8, [r8 + 8]
mov r9, r8
mov rdi, qword [rsp + 0x50]
mov r10, rdi
mov r10d, dword [r10 + 0x10]
mov dword [r8 + 0x1c], r10d
mov r8, r9
mov r10, qword [rsp + 0x68]
mov r10d, dword [r10]
mov dword [r9 + 0x18], r10d
mov r9, r8
mov r10, qword [rsp + 0x60]
mov qword [r8 + 8], r10
mov r8, rdi
mov r8, qword [r8 + 8]
mov qword [r9 + 0x10], r8
mov eax, dword [rsp + 0x44]
jmp 0x55397f
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
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]
jmp sym.modernc.org_sqlite_lib._walIteratorInit