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

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x58d946
push rbp
mov rbp, rsp
sub rsp, 0x90
nop word [rax + rax]
cmp edi, 0x80
jb 0x58d4af
lea edx, [rdi - 0xc]
shr edx, 1
jmp 0x58d4ca
mov edx, edi
cmp rdx, 0x80
jae 0x58d938
lea r11, [0x009bc2c0]
movzx edx, byte [r11 + rdx]
mov r11, r10
mov r12, qword [r10 + 0x18]
lea r13, [r12 + 0x88]
nop dword [rax]
cmp dword [r13], edx
jl 0x58d92a
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xb4], edi
mov qword [rsp + 0x68], r11
mov dword [rsp + 0x3c], edx
movzx r10d, byte [r10 + 0x16]
mov byte [rsp + 0x37], r10b
cmp edx, 0xfa0
jle 0x58d878
mov r13, rbx
cmp qword [rbx + 0x38], 0
jne 0x58d87b
mov qword [rsp + 0x60], r13
mov dword [rsp + 0xb0], ecx
mov qword [rsp + 0xb8], rsi
mov dword [rsp + 0xc0], r8d
mov dword [rsp + 0xc4], r9d
lea r15, [r13 + 8]
mov rbx, r15
movzx r15d, byte [r15]
and r15d, 0x10
shr r15b, 4
movzx r15d, r15b
test r15d, r15d
jne 0x58d5e2
mov qword [rsp + 0x58], rbx
mov rbx, r12
mov ecx, 0x20
call sym.modernc.org_sqlite_lib._sqlite3DbMallocZero
mov rdx, qword [rsp + 0x60]
mov rsi, rdx
mov qword [rdx + 0x70], rax
cmp qword [rsi + 0x70], 0
je 0x58d86a
mov r9, qword [rsp + 0x58]
movzx r10d, byte [r9]
or r10d, 0x10
nop
mov byte [r9], r10b
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0xb0]
mov edx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0xb8]
mov edi, dword [rsp + 0xb4]
mov r8d, dword [rsp + 0xc0]
mov r9d, dword [rsp + 0xc4]
movzx r10d, byte [rsp + 0x37]
mov r11, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov r12, r13
mov r13, qword [r13 + 0x70]
mov qword [rsp + 0x40], r13
mov r15, r13
cmp qword [r13], 0
jne 0x58d605
mov ebx, 1
nop dword [rax]
jmp 0x58d691
cmp dword [r13 + 0x10], ecx
je 0x58d615
mov ebx, 1
jmp 0x58d691
cmp dword [r13 + 0x14], r8d
je 0x58d622
mov ebx, 1
jmp 0x58d691
cmp dword [r13 + 0x18], r9d
je 0x58d62f
mov ebx, 1
jmp 0x58d691
lea rcx, [r12 + 0x30]
mov rbx, qword [rcx]
call sym.modernc.org_sqlite_lib._sqlite3BtreeOffset
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + 8], rax
setne cl
mov rax, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0xb8]
mov edi, dword [rsp + 0xb4]
mov r8d, dword [rsp + 0xc0]
mov r9d, dword [rsp + 0xc4]
movzx r10d, byte [rsp + 0x37]
mov r11, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x40]
mov ebx, ecx
mov ecx, dword [rsp + 0xb0]
test bl, bl
je 0x58d7ca
mov rbx, qword [r15]
nop dword [rax]
test rbx, rbx
je 0x58d6b6
call sym.modernc.org_sqlite_lib._sqlite3RCStrUnref
mov rax, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x3c]
lea ecx, [rdx + 3]
movsxd rbx, ecx
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3RCStrNew
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
test rax, rax
je 0x58d7bc
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x60]
add rdx, 0x30
mov qword [rsp + 0x60], rdx
mov rbx, qword [rdx]
mov rcx, qword [rsp + 0xb8]
mov edi, dword [rsp + 0x3c]
mov rsi, rax
xor r8d, r8d
mov rax, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._accessPayload
test eax, eax
jne 0x58d7b3
mov ecx, dword [rsp + 0x3c]
movsxd rdx, ecx
mov rsi, qword [rsp + 0x48]
add rdx, rsi
mov byte [rdx], 0
lea edx, [rcx + 1]
movsxd rdx, edx
add rdx, rsi
mov byte [rdx], 0
lea edx, [rcx + 2]
movsxd rdx, edx
add rdx, rsi
mov byte [rdx], 0
mov rdx, qword [rsp + 0x40]
mov rdi, rdx
mov r8d, dword [rsp + 0xb0]
mov dword [rdx + 0x10], r8d
mov rdx, rdi
mov r8d, dword [rsp + 0xc0]
mov dword [rdi + 0x14], r8d
mov r8d, dword [rsp + 0xc4]
mov dword [rdx + 0x18], r8d
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0xa0]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3BtreeOffset
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0xb4]
movzx r10d, byte [rsp + 0x37]
mov r11, qword [rsp + 0x68]
mov r9, qword [rsp + 0x48]
jmp 0x58d7cd
add rsp, 0x90
pop rbp
ret
mov eax, 7
add rsp, 0x90
pop rbp
ret
mov r9, qword [r15]
lea r12, [r9 - 8]
inc qword [r12]
bt edi, 0
jae 0x58d834
movsxd rdi, edx
lea rdx, [0x0072ce00]
mov qword [rsp + 0x80], rdx
lea rdx, sym.modernc.org_sqlite_lib._sqlite3RCStrUnref
mov qword [rsp + 0x88], rdx
lea rdx, [r11 + 0x14]
mov qword [rsp + 0x50], rdx
mov r8, qword [rsp + 0x88]
mov rbx, r11
mov rcx, r9
mov esi, r10d
call sym.modernc.org_sqlite_lib._sqlite3VdbeMemSetStr
mov rdx, qword [rsp + 0x50]
movzx r9d, word [rdx]
or r9d, 0x200
mov word [rdx], r9w
jmp 0x58d903
movsxd rdi, edx
lea rdx, [0x0072ce00]
mov qword [rsp + 0x70], rdx
lea rdx, sym.modernc.org_sqlite_lib._sqlite3RCStrUnref
mov qword [rsp + 0x78], rdx
mov r8, qword [rsp + 0x78]
mov rbx, r11
mov rcx, r9
xor esi, esi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeMemSetStr
jmp 0x58d903
mov eax, 7
add rsp, 0x90
pop rbp
ret
mov r13, rbx
lea r8, [r13 + 0x30]
mov rbx, qword [r8]
mov rcx, rsi
mov edi, edx
mov rsi, r11
call sym.modernc.org_sqlite_lib._sqlite3VdbeMemFromBtree
test eax, eax
jne 0x58d921
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rbx, qword [rdx + 8]
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0xb4]
call sym.modernc.org_sqlite_lib._sqlite3VdbeSerialGet
mov edx, dword [rsp + 0xb4]
bt edx, 0
jae 0x58d8fa
movzx ecx, byte [rsp + 0x37]
cmp ecx, 1
jne 0x58d8fa
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
mov ebx, dword [rsp + 0x3c]
movsxd rbx, ebx
add rbx, qword [rcx + 8]
mov byte [rbx], 0
lea rcx, [rdx + 0x14]
movzx ebx, word [rcx]
or ebx, 0x200
mov word [rcx], bx
jmp 0x58d8ff
mov rdx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
add rcx, 0x14
movzx edx, word [rcx]
and edx, 0xffffbfff
mov word [rcx], dx
add rsp, 0x90
pop rbp
ret
add rsp, 0x90
pop rbp
ret
mov eax, 0x12
add rsp, 0x90
pop rbp
ret
mov rax, rdx
mov ecx, pe_nt_image_headers64
call sym.runtime.panicIndex
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov dword [rsp + 0x1c], edi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x2c], r9d
mov qword [rsp + 0x30], r10
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 rsi, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x2c]
mov r10, qword [rsp + 0x30]
jmp sym.modernc.org_sqlite_lib._vdbeColumnFromOverflow