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

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x5396d8
push rbp
mov rbp, rsp
sub rsp, 0x88
movq qword [rsp + 0x80], xmm15
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0xa8], ecx
mov dword [rsp + 0xac], edi
mov dword [rsp + 0xb0], esi
mov qword [rsp + 0xb8], r8
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x38], 0
mov ebx, 0x10
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x60], rax
lea rcx, [sym.modernc.org_sqlite_lib._winShmMap.deferwrap1]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x80], rdx
mov byte [rsp + 0x33], 1
mov rbx, qword [rsp + 0xa0]
mov rdx, rbx
mov rdx, qword [rdx + 0x28]
test rdx, rdx
je 0x539190
xor esi, esi
jmp 0x5391c9
mov rax, rcx
call sym.modernc.org_sqlite_lib._winOpenSharedMemory
nop dword [rax + rax]
test eax, eax
jne 0x53941f
mov rsi, qword [rsp + 0xa0]
mov rdi, rsi
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rsp + 0x98]
mov rbx, rdi
mov esi, eax
mov rax, qword [rsp + 0x60]
mov rdi, qword [rdx]
mov qword [rsp + 0x50], rdi
mov r8, rdi
mov rdi, qword [rdi]
test rdi, rdi
je 0x539210
mov dword [rsp + 0x34], esi
mov rdx, qword [0x009c03a0]
mov rsi, qword [rdx]
mov rax, rcx
mov rbx, rdi
call rsi
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x34]
mov r8, qword [rsp + 0x50]
mov rdi, r8
cmp byte [r8 + 0x79], 0
je 0x53925d
mov rax, rcx
mov rbx, rdi
call sym.modernc.org_sqlite_lib._winLockSharedMemory
test eax, eax
je 0x539235
mov esi, dword [rsp + 0xac]
jmp 0x539442
mov rbx, qword [rsp + 0x50]
mov rdi, rbx
mov byte [rdi + 0x79], 0
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x50]
mov esi, eax
mov rax, qword [rsp + 0x60]
mov r8, rdi
mov r9d, dword [rsp + 0xa8]
cmp dword [rdi + 0x74], r9d
jg 0x5396b0
mov edx, dword [rsp + 0xac]
mov dword [rdi + 0x70], edx
lea esi, [r9 + 1]
mov dword [rsp + 0x4c], esi
lea rbx, [r8 + 0x10]
mov qword [rsp + 0x68], rbx
mov rdi, rax
mov rax, rcx
mov rcx, rdi
call sym.modernc.org_sqlite_lib._winFileSize
mov edx, dword [rsp + 0x4c]
mov esi, dword [rsp + 0xac]
mov edi, edx
imul edx, esi
test eax, eax
jne 0x5393ce
mov dword [rsp + 0x40], edx
mov r8, qword [rsp + 0x60]
movsxd rcx, edx
nop
cmp qword [r8], rcx
jl 0x5392c9
xor eax, eax
jmp 0x5392f8
mov r8d, dword [rsp + 0xb0]
test r8d, r8d
je 0x539442
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._winTruncate
test eax, eax
jne 0x53937a
mov edi, dword [rsp + 0x4c]
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rdx + 0x80]
movsxd rcx, edi
shl rcx, 4
mov rax, qword [rsp + 0x98]
call sym.modernc.org_sqlite_lib.Xsqlite3_realloc64
nop dword [rax]
test rax, rax
je 0x539369
mov r10, qword [rsp + 0x50]
mov r11, r10
mov qword [r10 + 0x80], rax
mov r10, r11
cmp byte [r11 + 0x78], 0
mov edi, 4
mov r11d, 2
cmovne edi, r11d
mov dword [rsp + 0x3c], edi
mov r11d, 6
mov r12d, 4
cmovne r11d, r12d
mov dword [rsp + 0x44], r11d
jmp 0x539554
mov esi, dword [rsp + 0xac]
mov eax, 0xc0a
jmp 0x539442
mov rdx, qword [0x00a33f78]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x98]
call rcx
mov rdi, qword [0x00a30e10]
add rdi, 0x1390
mov rcx, qword [rsp + 0xa0]
mov rsi, qword [rcx + 0x30]
mov ebx, 0x130a
mov ecx, eax
mov r8d, 0xc6ea
mov rax, qword [rsp + 0x98]
nop dword [rax]
call sym.modernc.org_sqlite_lib._winLogErrorAtLine
mov esi, dword [rsp + 0xac]
jmp 0x539442
mov rdx, qword [0x00a33f78]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x98]
call rcx
mov rdi, qword [0x00a30e10]
add rdi, 0x1385
mov rcx, qword [rsp + 0xa0]
mov rsi, qword [rcx + 0x30]
mov ebx, 0x130a
mov ecx, eax
mov r8d, 0xc6db
mov rax, qword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._winLogErrorAtLine
mov esi, dword [rsp + 0xac]
jmp 0x539442
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x80]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x88
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rdi, rcx
mov r8d, dword [rsp + 0xa8]
cmp dword [rcx + 0x74], r8d
jle 0x539499
mov r9d, dword [0x00a31468]
imul esi, r8d
test r9d, r9d
je 0x539509
mov edx, eax
mov eax, esi
mov ebx, edx
xor edx, edx
div r9d
movsxd rsi, r8d
shl rsi, 4
add rsi, qword [rcx + 0x80]
mov rcx, qword [rsp + 0xb8]
movsxd r8, edx
add r8, qword [rsi + 8]
mov qword [rcx], r8
jmp 0x5394aa
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], 0
mov ebx, eax
cmp byte [rdi + 0x78], 0
je 0x5394b9
test ebx, ebx
jne 0x5394b9
mov ebx, 8
mov rcx, qword [rdi]
nop dword [rax]
test rcx, rcx
je 0x5394e6
mov dword [rsp + 0x34], ebx
mov rdx, qword [0x009c03b0]
mov rsi, qword [rdx]
mov rax, qword [rsp + 0x98]
mov rbx, rcx
nop
call rsi
mov ebx, dword [rsp + 0x34]
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x80]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x88
pop rbp
ret
call sym.runtime.panicdivide
mov r10, qword [rsp + 0x50]
mov r12, r10
movsxd r13, dword [r12 + 0x74]
shl r13, 4
add r13, qword [r12 + 0x80]
mov qword [r13 + 8], rcx
mov r12, r10
movsxd r13, dword [r12 + 0x74]
shl r13, 4
add r13, qword [r12 + 0x80]
mov qword [r13], rax
mov r12, r10
inc dword [r12 + 0x74]
mov edi, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x44]
mov r12, r10
mov eax, dword [rsp + 0xa8]
nop
cmp dword [r10 + 0x74], eax
jg 0x53969e
mov rdx, qword [0x00a33db0]
mov r10, qword [rdx]
mov rbx, qword [r12 + 0x20]
mov rax, qword [rsp + 0x98]
xor ecx, ecx
xor esi, esi
mov r8d, dword [rsp + 0x40]
mov r9, rcx
call r10
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x53959e
xor ecx, ecx
jmp 0x539605
mov r9, qword [rsp + 0x50]
mov esi, dword [r9 + 0x74]
mov r9d, dword [0x00a31468]
mov r11d, dword [rsp + 0xac]
imul esi, r11d
nop word [rax + rax]
test r9d, r9d
je 0x5396be
mov rcx, rax
mov eax, esi
xor edx, edx
div r9d
mov r9, qword [0x00a341a0]
mov r10, qword [r9]
sub esi, edx
lea r12d, [r11 + rdx]
movsxd r8, r12d
mov rax, qword [rsp + 0x98]
mov rbx, rcx
mov ecx, dword [rsp + 0x44]
xor edi, edi
mov rdx, r9
call r10
mov rcx, rax
mov rax, qword [rsp + 0x58]
test rcx, rcx
jne 0x53950e
mov rdx, qword [0x00a33f78]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x98]
call rcx
mov rcx, qword [rsp + 0x50]
mov rbx, rcx
mov dword [rcx + 0x88], eax
mov ebx, dword [rbx + 0x88]
mov rdi, qword [0x00a30e10]
add rdi, 0x139b
mov rsi, qword [rsp + 0xa0]
mov rsi, qword [rsi + 0x30]
mov rax, qword [rsp + 0x98]
mov r8d, 0xc725
mov edx, ebx
mov ebx, 0x150a
mov ecx, edx
call sym.modernc.org_sqlite_lib._winLogErrorAtLine
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x539692
mov dword [rsp + 0x48], eax
mov rdx, qword [0x00a33d50]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x98]
call rcx
mov eax, dword [rsp + 0x48]
mov esi, dword [rsp + 0xac]
jmp 0x539442
mov rcx, qword [rsp + 0x98]
mov r8, r12
mov r9d, eax
mov esi, dword [rsp + 0x34]
mov eax, esi
mov esi, dword [rsp + 0xac]
jmp 0x539442
nop
call sym.runtime.panicdivide
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x88
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov dword [rsp + 0x1c], edi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], r8
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 esi, dword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._winShmMap