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

Disassembly:
lea r12, [rsp - 0x38]
cmp r12, qword [r14 + 0x10]
jbe 0x5857a4
push rbp
mov rbp, rsp
sub rsp, 0xb0
movq qword [rsp + 0xa8], xmm15
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], ebx
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], esi
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x50
nop dword [rax]
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x78], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3VdbeRecordCompareWithSkip.deferwrap1]
mov qword [rsp + 0x98], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xa0], rcx
lea rdx, [rsp + 0x98]
mov qword [rsp + 0xa8], rdx
mov byte [rsp + 0x2b], 1
mov rsi, qword [rsp + 0xd8]
mov rdx, rsi
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x68], rdx
mov edi, dword [rsp + 0xe0]
nop dword [rax]
test edi, edi
je 0x584d3f
lea r8, [rax + 0x40]
mov r9, r8
mov rbx, qword [rsp + 0xd0]
lea r10, [rbx + 1]
mov r11, r10
movzx r10d, byte [r10]
mov dword [r8], r10d
mov r8, r9
cmp dword [r9], 0x80
jae 0x584cb8
mov edi, 2
jmp 0x584cff
mov qword [rsp + 0x90], r8
mov rax, rcx
mov rbx, r11
mov rcx, r8
call sym.modernc.org_sqlite_lib._sqlite3GetVarint32
movzx edx, al
inc edx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov r8, qword [rsp + 0x90]
mov edi, edx
mov rdx, qword [rsp + 0x68]
mov r9, rax
mov r10, rbx
movzx r11d, byte [rbx]
mov dword [rax], r11d
mov r8d, dword [r8]
cmp r8d, 0x80
jb 0x584d22
add r8d, 0xfffffff4
shr r8d, 1
nop
jmp 0x584d2e
lea r11, [0x009bc2c0]
movzx r8d, byte [r11 + r8]
mov rbx, r9
add r8d, dword [r9]
add rdx, 0x38
mov eax, 1
jmp 0x584dab
mov rbx, qword [rsp + 0xd0]
mov r8, rbx
movzx r8d, byte [r8]
mov rdi, rax
mov dword [rax], r8d
cmp r8d, 0x80
jae 0x584d64
mov eax, 1
jmp 0x584d96
mov rax, rcx
mov rcx, rdi
call sym.modernc.org_sqlite_lib._sqlite3GetVarint32
movzx edx, al
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x78]
mov eax, edx
mov rdx, qword [rsp + 0x68]
mov r9, rdi
mov r8d, dword [r9]
mov rbx, rdi
mov r10, qword [rsp + 0xd0]
mov edi, eax
xor eax, eax
mov r9d, dword [rsp + 0xc8]
cmp r9d, r8d
jb 0x584dc2
xor r11d, r11d
xor r12d, r12d
nop
jmp 0x584e34
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, rcx
mov ebx, 0xb
mov ecx, 0x15dec
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov rdx, qword [rsp + 0xd8]
mov byte [rdx + 0x1f], al
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
add r13, 0x38
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov edi, r15d
mov eax, r12d
mov r12d, edx
mov rdx, r13
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x70], r11
mov dword [rsp + 0x2c], r12d
mov qword [rsp + 0x68], rdx
mov r13, rdx
movzx r15d, word [rdx + 0x14]
nop dword [rax + rax]
test r15d, 0x24
je 0x584f8e
mov r15d, edi
add r15, r10
movzx r15d, byte [r15]
lea rdx, [rbx + 0x44]
mov qword [rsp + 0x90], rdx
mov dword [rdx], r15d
mov r15, qword [rsp + 0x90]
mov r15d, dword [r15]
cmp r15d, 0xa
jb 0x584eaf
mov r12d, 1
mov r15d, 0xffffffff
cmove r12d, r15d
mov edx, r12d
jmp 0x585420
test r15d, r15d
jne 0x584ec0
mov edx, 0xffffffff
jmp 0x585420
cmp r15d, 7
jne 0x584f12
lea rdx, [r8 + r10]
lea rsi, [rbx + 8]
mov qword [rsp + 0x90], rsi
mov rax, rcx
mov rcx, rsi
mov rbx, rdx
nop
call sym.modernc.org_sqlite_lib._serialGet7
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rdx]
mov rdx, qword [rsp + 0x90]
movsd xmm0, qword [rdx]
mov rax, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._sqlite3IntFloatCompare
neg eax
mov rsi, qword [rsp + 0x68]
mov r8d, eax
jmp 0x584f4c
lea rdx, [r8 + r10]
mov rax, rcx
mov ebx, r15d
mov rcx, rdx
nop
call sym.modernc.org_sqlite_lib._vdbeRecordDecodeInt
mov rdx, qword [rsp + 0x68]
mov rsi, rdx
mov rdx, qword [rdx]
cmp rax, rdx
jge 0x584f3d
mov r8d, 0xffffffff
jmp 0x584f4c
mov r8d, dword [rsp + 0x2c]
mov r9d, 1
cmovg r8d, r9d
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov edi, dword [rsp + 0x34]
mov r9d, dword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r11, qword [rsp + 0x70]
mov r13, rsi
mov edx, r8d
mov rsi, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x40]
jmp 0x585420
bt r15d, 3
jae 0x5850e5
lea r15, [rbx + 0x44]
mov rdx, r15
mov r12d, edi
add r12, r10
movzx r12d, byte [r12]
mov dword [r15], r12d
mov r12d, dword [rdx]
cmp r12d, 0xa
jb 0x584fcf
mov r12d, 1
mov r15d, 0xffffffff
cmove r12d, r15d
mov edx, r12d
jmp 0x585420
test r12d, r12d
jne 0x584fe0
mov edx, 0xffffffff
jmp 0x585420
cmp r12d, 7
jne 0x585057
lea rdx, [r8 + r10]
lea rsi, [rbx + 8]
mov qword [rsp + 0x90], rsi
mov rax, rcx
mov rcx, rsi
mov rbx, rdx
nop
call sym.modernc.org_sqlite_lib._serialGet7
test eax, eax
je 0x585019
mov r9, qword [rsp + 0x68]
mov r8d, 0xffffffff
jmp 0x58509e
mov r8, qword [rsp + 0x90]
movsd xmm0, qword [r8]
mov r8, qword [rsp + 0x68]
mov r9, r8
movsd xmm1, qword [r8]
ucomisd xmm1, xmm0
jbe 0x585042
mov r8d, 0xffffffff
nop
jmp 0x58509e
ucomisd xmm0, xmm1
mov r8d, dword [rsp + 0x2c]
mov r10d, 1
cmova r8d, r10d
jmp 0x58509e
lea rdx, [r8 + r10]
lea rdi, [rbx + 8]
mov qword [rsp + 0x90], rdi
mov rax, rcx
mov ecx, r12d
mov rbx, rdx
call sym.modernc.org_sqlite_lib._sqlite3VdbeSerialGet
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
mov rdx, qword [rsp + 0x68]
movsd xmm0, qword [rdx]
mov rax, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._sqlite3IntFloatCompare
mov r9, qword [rsp + 0x68]
mov r8d, eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xd8]
mov edi, dword [rsp + 0x34]
mov r10, qword [rsp + 0xd0]
mov r11, qword [rsp + 0x70]
mov r13, r9
mov edx, r8d
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0xc8]
nop dword [rax + rax]
jmp 0x585420
bt r15d, 1
jae 0x585274
mov r12d, edi
add r12, r10
mov r15, r12
movzx r12d, byte [r12]
lea rdx, [rbx + 0x44]
mov qword [rsp + 0x90], rdx
mov dword [rdx], r12d
mov r12, qword [rsp + 0x90]
mov rdx, r12
cmp dword [r12], 0x80
jb 0x585174
mov rax, rcx
mov rbx, r15
mov rcx, rdx
call sym.modernc.org_sqlite_lib._sqlite3GetVarint32
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xd8]
mov edi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r11, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov r12d, dword [rdx]
cmp r12d, 0xc
jae 0x585187
mov edx, 0xffffffff
jmp 0x5856ef
bt r12d, 0
jae 0x58526a
lea r15, [rbx + 8]
mov rdx, r15
add r12d, 0xfffffff4
shr r12d, 1
mov dword [r15 + 0x10], r12d
mov r12, rdx
mov r15d, dword [rdx + 0x10]
lea edi, [r15 + r8]
cmp r9d, edi
jb 0x5851c0
mov rdi, rsi
mov r11, qword [rdi]
nop word [rax + rax]
jb 0x58548e
mov rdi, r11
movzx r9d, word [r11 + 8]
cmp eax, r9d
jge 0x58548e
mov qword [rsp + 0x90], rdi
movsxd r9, eax
lea r9, [rdi + r9*8]
lea r9, [r9 + 0x20]
mov qword [rsp + 0x88], r9
cmp qword [r9], 0
jne 0x585219
mov r9, r13
mov r11d, dword [r13 + 0x10]
lea r12, [r8 + r10]
mov r13, qword [r13 + 8]
cmp r11d, r15d
mov edx, r11d
cmovg r11d, r15d
movsxd r11, r11d
jmp 0x58574d
movzx r9d, byte [r11 + 4]
mov byte [rdx + 0x16], r9b
mov rbx, r12
mov r9, qword [rdi + 0x10]
mov qword [r12 + 0x18], r9
mov r9, rbx
mov word [r9 + 0x14], 2
mov r9, rbx
lea r11, [r8 + r10]
mov qword [r9 + 8], r11
mov r9, qword [rsp + 0x88]
mov rdi, qword [r9]
lea r9, [rsi + 0x1f]
mov rax, rcx
mov rcx, r13
mov rsi, r9
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._vdbeCompareMemString
jmp 0x5856f7
mov edx, 1
jmp 0x5856ef
bt r15d, 4
jae 0x585385
lea r12, [rbx + 0x44]
mov r15, r12
mov edx, edi
add rdx, r10
mov qword [rsp + 0x90], rdx
movzx edx, byte [rdx]
mov dword [r12], edx
mov r12, r15
cmp dword [r15], 0x80
jb 0x585309
mov qword [rsp + 0x88], r12
mov rax, rcx
mov rbx, qword [rsp + 0x90]
mov rcx, r12
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3GetVarint32
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xd8]
mov edi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r11, qword [rsp + 0x70]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x68]
mov r12d, dword [r12]
cmp r12d, 0xc
jb 0x58531a
bt r12d, 0
jae 0x585325
mov edx, 0xffffffff
nop
jmp 0x585689
add r12d, 0xfffffff4
shr r12d, 1
lea r15d, [r12 + r8]
cmp r9d, r15d
jb 0x5854e1
mov r15, r13
movzx edx, word [r13 + 0x14]
bt edx, 0xa
jae 0x585365
lea rdx, [r8 + r10]
mov dword [rsp + 0x80], eax
xor eax, eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
nop
jmp 0x5856a9
mov edx, dword [r13 + 0x10]
mov dword [rsp + 0x44], edx
lea rcx, [r8 + r10]
mov r13, qword [r13 + 8]
cmp edx, r12d
cmovg edx, r12d
movsxd rdx, edx
nop
jmp 0x585640
lea r15, [rbx + 0x44]
mov rdx, r15
mov edi, edi
add rdi, r10
movzx edi, byte [rdi]
mov dword [r15], edi
mov r15d, dword [rdx]
test r15d, r15d
je 0x585412
nop
cmp r15d, 0xa
je 0x585412
cmp r15d, 7
je 0x5853b0
xor edx, edx
jmp 0x585408
lea rdx, [r8 + r10]
lea rsi, [rbx + 8]
mov rax, rcx
mov rcx, rsi
mov rbx, rdx
call sym.modernc.org_sqlite_lib._serialGet7
test eax, eax
setne dl
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r11, qword [rsp + 0x70]
mov r12d, dword [rsp + 0x2c]
mov r13, qword [rsp + 0x68]
test dl, dl
jne 0x585412
mov r12d, 1
mov edi, dword [rsp + 0x34]
mov edx, r12d
nop dword [rax]
test edx, edx
jne 0x585564
lea r12d, [rax + 1]
mov r15, rsi
movzx eax, word [r15 + 0x1c]
cmp eax, r12d
je 0x585537
lea rax, [rbx + 0x44]
mov eax, dword [rax]
cmp eax, 0x80
jb 0x585451
lea ecx, [rax - 0xc]
shr ecx, 1
jmp 0x585465
lea r10, [0x009bc2c0]
movzx ecx, byte [r10 + rax]
mov r10, qword [rsp + 0xd0]
add r8d, ecx
cmp r9d, r8d
jb 0x585537
mov ecx, 1
jmp 0x5855c4
lea r15d, [rcx + rdi]
nop
cmp dword [rbx], r15d
ja 0x584e17
jmp 0x5855d2
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, rcx
mov ebx, 0xb
mov ecx, 0x15e3d
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov rdx, qword [rsp + 0xd8]
mov byte [rdx + 0x1f], al
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
nop
ret
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, rcx
mov ebx, 0xb
mov ecx, 0x15e5b
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov rdx, qword [rsp + 0xd8]
mov byte [rdx + 0x1f], al
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov byte [r15 + 0x22], 1
movsx rax, byte [rsi + 0x1e]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov rcx, qword [rsi]
movsxd rax, eax
add rax, qword [rcx + 0x18]
movzx eax, byte [rax]
test eax, eax
je 0x58559f
bt eax, 1
jae 0x58559d
lea rcx, [rbx + 0x44]
cmp dword [rcx], 0
jne 0x58558b
mov ecx, 1
jmp 0x585593
movzx ecx, word [r13 + 0x14]
and ecx, 1
and eax, 1
movzx ecx, cl
cmp ecx, eax
je 0x58559f
neg edx
mov dword [rsp + 0x30], edx
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
inc ecx
shr rax, 7
test rax, rax
jne 0x5855c2
jmp 0x58547b
mov rdi, qword [0x00a30e10]
add rdi, 0x6676
mov rax, qword [rsp + 0xc0]
mov ebx, 0xb
mov ecx, 0x15e8e
call sym.modernc.org_sqlite_lib._sqlite3ReportError
mov rdx, qword [rsp + 0xd8]
mov byte [rdx + 0x1f], al
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
dec rdx
mov rcx, qword [rsp + 0x58]
inc rcx
mov r13, qword [rsp + 0x48]
inc r13
nop dword [rax]
test rdx, rdx
je 0x58566c
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], rcx
movzx ecx, byte [rcx]
movzx r13d, byte [r13]
cmp r13b, cl
ja 0x585665
jae 0x585629
mov ecx, 1
jmp 0x58566e
mov ecx, 0xffffffff
jmp 0x58566e
xor ecx, ecx
mov r13d, dword [rsp + 0x44]
sub r12d, r13d
test ecx, ecx
cmove ecx, r12d
mov r13, r15
mov edx, ecx
mov rcx, qword [rsp + 0xc0]
mov r12d, edx
jmp 0x585412
lea ecx, [r10 + 1]
mov r10, qword [rsp + 0xd0]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0xc0]
mov r10d, dword [rsp + 0x38]
cmp r10d, r12d
jge 0x5856ca
movsxd rcx, r10d
add rcx, rdx
cmp byte [rcx], 0
je 0x585691
mov rcx, qword [rsp + 0xc0]
xor edx, edx
jmp 0x5856cf
mov edx, 1
test edx, edx
je 0x5856dc
mov r10d, dword [r13]
sub r12d, r10d
jmp 0x5856e2
mov r12d, 1
mov r10, qword [rsp + 0xd0]
mov ecx, r12d
jmp 0x58567c
mov r12d, edx
jmp 0x585412
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xd8]
mov edi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x68]
mov r11, qword [rsp + 0x90]
mov edx, eax
mov eax, dword [rsp + 0x3c]
jmp 0x5856ef
dec r11
mov r12, qword [rsp + 0x60]
inc r12
mov r13, qword [rsp + 0x50]
inc r13
test r11, r11
je 0x58577d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r12
movzx r12d, byte [r12]
movzx r13d, byte [r13]
cmp r13b, r12b
ja 0x585775
jae 0x58573a
mov r11d, 1
jmp 0x585780
mov r11d, 0xffffffff
jmp 0x585780
xor r11d, r11d
sub r15d, edx
test r11d, r11d
cmove r11d, r15d
mov eax, r11d
jmp 0x5856f7
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
nop dword [rax + rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov esi, dword [rsp + 0x28]
nop dword [rax]
jmp sym.modernc.org_sqlite_lib._sqlite3VdbeRecordCompareWithSkip