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

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x53b662
push rbp
mov rbp, rsp
sub rsp, 0xa8
movq qword [rsp + 0xa0], xmm15
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xd0], rdi
mov dword [rsp + 0xd8], esi
mov qword [rsp + 0xe0], r8
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x3c], 0
mov ebx, 0x20
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x70], rax
lea rcx, [sym.modernc.org_sqlite_lib._winOpen.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 + 0x33], 1
mov rdx, rax
mov dword [rax], 0
lea rsi, [rdx + 4]
mov qword [rsp + 0x88], rsi
mov dword [rsi], 0
lea rsi, [rdx + 8]
mov qword [rsp + 0x80], rsi
mov qword [rsi], 0
mov rax, rcx
mov rbx, qword [rsp + 0xd0]
xor ecx, ecx
mov edi, 0x60
call sym.modernc.org_libc.Xmemset
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x53b069
xor eax, eax
jmp 0x53b099
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._winGetTempname
test eax, eax
jne 0x53b216
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rdx]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x38], eax
mov rbx, rcx
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._winUtf8ToUnicode
test rax, rax
je 0x53b1d7
mov qword [rsp + 0x58], rax
mov rbx, rax
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._winIsDir
test eax, eax
jne 0x53b186
mov edx, dword [rsp + 0xd8]
test edx, 2
mov esi, 0x80000000
mov r8d, 0xc0000000
cmovne esi, r8d
mov dword [rsp + 0x48], esi
bt edx, 4
jae 0x53b106
mov r8d, 1
jmp 0x53b11c
test edx, 4
mov r8d, 3
mov r9d, 4
cmovne r8d, r9d
mov dword [rsp + 0x4c], r8d
mov rcx, qword [0x00a30e10]
add rcx, 0x1432
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc8]
xor edi, edi
call sym.modernc.org_sqlite_lib.Xsqlite3_uri_boolean
test eax, eax
mov edi, 0
mov edx, 3
cmove edi, edx
mov dword [rsp + 0x40], edi
mov edx, dword [rsp + 0xd8]
test edx, 8
mov r9d, pe_nt_image_headers64
mov esi, 0x4000102
cmovne r9d, esi
mov dword [rsp + 0x44], r9d
mov eax, 1
xor ecx, ecx
jmp 0x53b26d
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x58]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov dword [rsp + 0x3c], 0x20e
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov dword [rsp + 0x3c], 0xc0a
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call sym.modernc.org_sqlite_lib._winRetryIoerr
test eax, eax
setne al
mov edx, dword [rsp + 0xd8]
mov edi, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
test al, al
je 0x53b370
mov rdx, qword [0x00a33d80]
mov r11, qword [rdx]
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x48]
xor esi, esi
mov r8d, dword [rsp + 0x4c]
mov r10, rsi
call r11
nop dword [rax]
cmp rax, 0xffffffffffffffff
jne 0x53b36d
mov qword [rsp + 0x68], rax
mov r8d, dword [rsp + 0xd8]
bt r8d, 1
nop dword [rax]
jae 0x53b239
mov rsi, qword [rsp + 0x70]
lea r9, [rsi + 0x10]
mov qword [rsp + 0x78], r9
mov r10, r9
mov dword [r9], 0
nop
cmp qword [0x00a30ee0], 0
je 0x53b302
mov rdx, qword [0x00a30ee0]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0xb8]
call rcx
mov r10, qword [rsp + 0x78]
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
mov edi, 2
mov rsi, r10
nop
call sym.modernc.org_sqlite_lib._winAccess
nop
cmp qword [0x00a30ee8], 0
je 0x53b34c
mov dword [rsp + 0x34], eax
mov rdx, qword [0x00a30ee8]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0xb8]
call rcx
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x53b239
mov rdx, qword [rsp + 0x78]
cmp dword [rdx], 0
nop dword [rax]
je 0x53b239
mov rcx, qword [rsp + 0x68]
jmp 0x53b370
mov rcx, rax
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0x88]
mov ebx, dword [rdx]
mov rax, qword [rsp + 0xb8]
mov ecx, 0xcac1
call sym.modernc.org_sqlite_lib._winLogIoerr
mov rdx, qword [rsp + 0x68]
nop word [rax + rax]
nop
cmp rdx, 0xffffffffffffffff
je 0x53b528
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x53b3d2
mov esi, dword [rsp + 0xd8]
bt esi, 1
jae 0x53b3cc
mov dword [rcx], 2
jmp 0x53b3d2
mov dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x58]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x53b41c
mov rsi, qword [rcx]
jmp 0x53b423
lea rsi, [0x009bcb20]
mov r8, qword [rsp + 0xd0]
mov r9, r8
mov qword [r8], rsi
mov rsi, r9
mov r8, qword [rsp + 0xc0]
mov qword [r9 + 8], r8
mov r8, rsi
mov r9, qword [rsp + 0x68]
mov qword [rsi + 0x10], r9
mov esi, dword [rsp + 0xd8]
bt esi, 0
jae 0x53b468
lea r9, [r8 + 0x1c]
movzx r10d, byte [r9]
or r10d, 2
mov byte [r9], r10b
bt esi, 8
jae 0x53b4bb
mov rcx, qword [0x00a30e10]
add rcx, 0x1444
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc8]
mov edi, 1
call sym.modernc.org_sqlite_lib.Xsqlite3_uri_boolean
test eax, eax
je 0x53b4b3
mov rax, qword [rsp + 0xd0]
lea rcx, [rax + 0x1c]
movzx ebx, byte [rcx]
or ebx, 0x10
mov byte [rcx], bl
mov r8, rax
jmp 0x53b4bb
mov r8, qword [rsp + 0xd0]
mov rax, r8
mov dword [r8 + 0x20], 0
mov rcx, rax
mov rbx, qword [rsp + 0xc8]
mov qword [rax + 0x30], rbx
mov rax, rcx
mov qword [rcx + 0x40], 0
mov rcx, rax
mov qword [rax + 0x48], 0
mov rax, rcx
mov qword [rcx + 0x50], 0
mov rcx, qword [0x009c0448]
mov qword [rax + 0x58], rcx
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x58]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov esi, dword [rsp + 0xd8]
bt esi, 1
jae 0x53b5bc
bt esi, 4
jb 0x53b5bc
or esi, 1
and esi, 0xfffffff9
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._winOpen
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov r9, qword [rdx]
call r9
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov rdx, qword [rsp + 0xd0]
mov r9, rdx
mov r10, qword [rsp + 0x70]
mov r10d, dword [r10]
mov dword [rdx + 0x20], r10d
mov ecx, dword [r9 + 0x20]
mov rdi, qword [0x00a30e10]
add rdi, 0x143c
mov rax, qword [rsp + 0xb8]
mov ebx, 0xe
mov rsi, qword [rsp + 0x50]
mov r8d, 0xcad0
nop dword [rax]
call sym.modernc.org_sqlite_lib._winLogErrorAtLine
mov rdi, qword [0x00a30e10]
add rdi, 0x6691
mov rax, qword [rsp + 0xb8]
mov ebx, 0xe
mov ecx, 0xcad1
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xa0]
mov r9, qword [rdx]
nop
call r9
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], r8
nop
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov esi, dword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp sym.modernc.org_sqlite_lib._winOpen