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

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x619af6
push rbp
mov rbp, rsp
sub rsp, 0xc8
movq qword [rsp + 0xc0], xmm15
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rdi
mov dword [rsp + 0xf8], esi
mov qword [rsp + 0x100], r8
mov byte [rsp + 0x33], 0
mov ebx, 0x10
nop dword [rax]
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._generateSortTail.deferwrap1]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xa8], rcx
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xc0], rdx
mov byte [rsp + 0x33], 1
mov rdx, qword [rsp + 0xe0]
mov rsi, rdx
mov rdi, qword [rsp + 0xf0]
mov r8, rdi
lea r9, [rsi + 0x44]
mov r10, r9
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0x88], rdx
mov edi, dword [rdi + 0x1c]
mov dword [rsp + 0x70], edi
nop
dec dword [r9]
mov r9, r8
mov r11, qword [r8]
mov r12, qword [rsp + 0x100]
mov r13, r12
mov r15, qword [rsp + 0xe8]
mov rbx, r15
mov r11d, dword [r11]
mov r8d, dword [r8 + 8]
movzx edi, byte [r12]
mov dword [rsp + 0x80], edi
mov r12d, dword [r12 + 4]
mov dword [rsp + 0x58], r12d
mov r15, qword [r15 + 0x20]
mov qword [rsp + 0x90], r15
sub r11d, r8d
mov dword [rsp + 0x50], r11d
mov r10d, dword [r10]
mov dword [rsp + 0x6c], r10d
test r8d, r8d
je 0x619066
cmp r11d, 1
jne 0x6190e7
test r8d, r8d
je 0x619066
mov r8, qword [0x00a30e10]
add r8, 0x5067
jmp 0x619074
mov r8, qword [0x00a30e10]
add r8, 0x688
movups xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x98], r8
lea rdx, [0x00728cc0]
mov qword [rsp + 0xb0], rdx
add rax, 8
lea rdx, [rsp + 0x98]
mov qword [rsp + 0xb8], rdx
lea rbx, [rsp + 0xb0]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rdi, qword [0x00a30e10]
add rdi, 0x5075
mov rbx, qword [rsp + 0xe0]
xor ecx, ecx
mov rsi, rax
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeExplain
jmp 0x619158
movups xmmword [rsp + 0xb0], xmm15
mov dword [rsp + 0x84], r11d
lea rdx, [0x00728b40]
mov qword [rsp + 0xb0], rdx
add rax, 8
lea rdx, [rsp + 0x84]
mov qword [rsp + 0xb8], rdx
lea rbx, [rsp + 0xb0]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rdi, qword [0x00a30e10]
add rdi, 0x5094
mov rbx, qword [rsp + 0xe0]
xor ecx, ecx
mov rsi, rax
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeExplain
mov rdx, qword [rsp + 0xf0]
mov r9, rdx
mov esi, dword [rdx + 0x14]
test esi, esi
je 0x6191d6
mov edi, dword [rdx + 0x10]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0xa
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x70]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xf0]
mov ecx, dword [rdx + 0x14]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
mov r9, qword [rsp + 0xf0]
mov rdx, r9
mov edi, dword [r9 + 0xc]
mov dword [rsp + 0x54], edi
mov r9d, dword [rsp + 0x80]
cmp r9d, 9
jne 0x6191f9
mov r11, qword [rsp + 0xe8]
jmp 0x619268
cmp r9d, 0xd
jne 0x619209
mov r11, qword [rsp + 0xe8]
jmp 0x619268
cmp r9d, 0xa
jne 0x619285
mov r10, qword [rsp + 0xe8]
mov r11, r10
cmp dword [r10 + 0xc], 0
nop
je 0x619268
mov rdx, qword [rsp + 0x100]
mov esi, dword [rdx + 0xc]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x4b
xor edi, edi
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xf0]
mov edi, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x80]
mov r11, qword [rsp + 0xe8]
mov r10, qword [rsp + 0x100]
mov r12, r10
mov r10d, dword [r10 + 0xc]
mov eax, dword [rsp + 0xf8]
xor ecx, ecx
jmp 0x61937c
mov rbx, qword [rsp + 0xe0]
mov r10, rbx
movzx r10d, byte [r10 + 0x1f]
test r10d, r10d
jne 0x6192a9
lea r10, [rbx + 0x38]
mov r11, r10
inc dword [r10]
mov r10d, dword [r11]
jmp 0x6192cd
lea r11, [rbx + 0x1f]
mov r12, r11
movzx r13d, byte [r11]
dec r13d
mov byte [r11], r13b
movzx r11d, byte [r12]
lea r11, [rbx + r11*4]
lea r11, [r11 + 0xe8]
mov r10d, dword [r11]
cmp r9d, 0xc
je 0x6192d9
cmp r9d, 0xe
jne 0x619322
mov r11, rbx
movzx r12d, byte [rbx + 0x1f]
test r12d, r12d
jne 0x6192f7
lea r12, [r11 + 0x38]
mov r13, r12
inc dword [r12]
mov r12d, dword [r13]
jmp 0x61931c
lea r13, [r11 + 0x1f]
mov r15, r13
movzx eax, byte [r13]
dec eax
mov byte [r13], al
movzx r13d, byte [r15]
lea r13, [r11 + r13*4]
lea r13, [r13 + 0xe8]
mov r12d, dword [r13]
xor eax, eax
nop
jmp 0x619366
mov dword [rsp + 0x38], r10d
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3GetTempRange
mov rdx, qword [rsp + 0xf0]
mov edi, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x38]
mov r11, qword [rsp + 0xe0]
mov r12d, eax
mov eax, dword [rsp + 0xf8]
mov r11, qword [rsp + 0xe8]
mov ecx, r10d
mov r10d, r12d
mov r12, qword [rsp + 0x100]
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x4c], eax
mov r13, rdx
movzx edx, byte [rdx + 0x24]
bt edx, 0
jae 0x6194d7
mov rdx, qword [rsp + 0xe0]
lea r11, [rdx + 0x38]
mov r15, r11
inc dword [r11]
lea r11, [rdx + 0x34]
mov ebx, dword [r11]
mov dword [rsp + 0x7c], ebx
lea esi, [rbx + 1]
mov r15d, dword [r15]
mov dword [rsp + 0x34], r15d
mov dword [r11], esi
cmp dword [r13 + 0x14], 0
jne 0x6193d0
xor esi, esi
jmp 0x619401
nop
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0xf
xor edi, edi
mov esi, edi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov ebx, dword [rsp + 0x7c]
mov r15d, dword [rsp + 0x34]
mov esi, eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x68], esi
mov edx, dword [rsp + 0x50]
lea r8d, [rdx + rax]
lea r8d, [r8 + 1]
mov ecx, 0x79
mov edi, ebx
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xd8]
mov esi, r15d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x619476
mov rbx, qword [rsp + 0x88]
mov r9, rbx
mov r10, qword [r9]
nop
cmp byte [r10 + 0x67], 0
je 0x619457
lea rdx, [0x00a30f90]
jmp 0x619469
movsxd r10, edx
lea rdx, [r10 + r10*2]
shl rdx, 3
add rdx, qword [r9 + 0x88]
mov r9d, dword [r9 + 0x90]
mov dword [rdx + 8], r9d
jmp 0x61947e
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xd8]
mov ecx, 0x22
mov edi, dword [rsp + 0x54]
mov esi, dword [rsp + 0x70]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x48], eax
mov rbx, qword [rsp + 0x88]
mov ecx, 0x85
mov edi, dword [rsp + 0x54]
mov esi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x7c]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x48]
inc edx
xor eax, eax
mov ecx, dword [rsp + 0x7c]
jmp 0x61957b
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x23
mov esi, dword [rsp + 0x70]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x44], eax
mov rdx, qword [rsp + 0xe8]
mov r9, rdx
mov edi, dword [rdx + 0xc]
test edi, edi
jle 0x61953e
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x3b
mov esi, dword [rsp + 0x6c]
mov r8d, 1
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x44]
mov r9, qword [rsp + 0xe8]
cmp dword [r9 + 0xc], 0
jle 0x61956f
mov edi, dword [r9 + 8]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x56
mov esi, 0xffffffff
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x44]
lea edx, [rax + 1]
mov eax, 1
mov ecx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x50]
lea esi, [r11 + rax]
lea r11d, [rax + r11]
lea r11d, [r11 - 1]
mov r12, qword [rsp + 0x90]
mov r10d, dword [rsp + 0x4c]
xor eax, eax
jmp 0x6195c0
movsxd r13, eax
shl r13, 5
lea r13, [r13 + r12]
lea r13, [r13 + 0x20]
movzx r13d, word [r13]
lea r15d, [r11 + 1]
inc eax
test r13d, r13d
cmove r11d, r15d
nop
cmp eax, r10d
jl 0x61959d
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x74], edx
mov dword [rsp + 0x78], ecx
lea r13d, [r10 - 1]
jmp 0x61962e
mov dword [rsp + 0x5c], r11d
mov dword [rsp + 0x64], r13d
mov edx, dword [rsp + 0x3c]
lea r8d, [rdx + r13]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov edi, ecx
mov esi, r9d
mov ecx, 0x5e
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov r13d, dword [rsp + 0x64]
dec r13d
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x74]
mov esi, dword [rsp + 0x7c]
mov r10d, dword [rsp + 0x4c]
mov r12, qword [rsp + 0x90]
mov r11d, dword [rsp + 0x5c]
test r13d, r13d
jl 0x619665
movsxd r9, r13d
shl r9, 5
lea r9, [r9 + r12]
lea r9, [r9 + 0x20]
movzx r9d, word [r9]
test r9w, r9w
je 0x619651
dec r9d
jmp 0x6195d7
lea r15d, [r11 - 1]
mov r9d, r11d
mov r11d, r15d
nop dword [rax + rax]
jmp 0x6195d7
mov r11d, dword [rsp + 0x80]
cmp r11d, 0xb
jg 0x61970d
nop word [rax + rax]
cmp r11d, 0xa
je 0x619958
cmp r11d, 0xb
je 0x619699
cmp r11d, 9
jmp 0x6198ee
mov rdx, qword [rsp + 0x100]
mov r9, qword [rdx + 0x18]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x61
mov edi, dword [rsp + 0x3c]
mov esi, r10d
mov r8d, dword [rsp + 0x38]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x8a
mov edi, dword [rsp + 0x58]
mov esi, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x4c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x80]
jmp 0x619958
cmp r11d, 0xc
je 0x61971d
cmp r11d, 0xe
jne 0x6197e0
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov edi, ecx
mov r8d, dword [rsp + 0x3c]
mov ecx, 0x5e
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x7f
mov edi, dword [rsp + 0x58]
mov esi, dword [rsp + 0x38]
xor r8d, r8d
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, pe_nt_image_headers64
mov edi, dword [rsp + 0x58]
mov esi, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
mov r9d, dword [rdx + 0x90]
nop
test r9d, r9d
jle 0x6197c1
lea esi, [r9 - 1]
movsxd rsi, esi
lea rsi, [rsi + rsi*2]
shl rsi, 3
add rsi, qword [rdx + 0x88]
mov word [rsi + 2], 8
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x80]
jmp 0x619958
cmp r11d, 0xf
jne 0x6198ea
mov r9, qword [rsp + 0x100]
mov r12, qword [rsp + 0xe0]
mov r13, r12
movzx r12d, byte [r12 + 0x1f]
mov r9d, dword [r9 + 8]
test r12d, r12d
jne 0x61981c
lea r12, [r13 + 0x38]
mov r15, r12
inc dword [r12]
mov r12d, dword [r15]
jmp 0x61983f
lea r15, [r13 + 0x1f]
mov rax, r15
movzx ecx, byte [r15]
dec ecx
mov byte [r15], cl
movzx r15d, byte [rax]
lea r15, [r13 + r15*4]
lea r15, [r15 + 0xe8]
mov r12d, dword [r15]
mov dword [rsp + 0x60], r9d
mov dword [rsp + 0x40], r12d
test r9d, r9d
setl dl
movzx edx, dl
mov r11d, dword [rsp + 0x3c]
lea edi, [rdx + r11]
mov esi, r10d
sub esi, edx
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x61
mov r8d, r12d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x60]
test r9d, r9d
jge 0x6198b0
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, pe_nt_image_headers64
mov edi, dword [rsp + 0x58]
mov esi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x6198d7
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x8a
mov edi, dword [rsp + 0x58]
mov esi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x80]
jmp 0x619958
cmp r11d, 9
jne 0x61991d
mov rdx, qword [rsp + 0x100]
mov edi, dword [rdx + 0xc]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x54
mov esi, r10d
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x619947
mov rdx, qword [rsp + 0x100]
mov edi, dword [rdx + 4]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0xc
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x80]
mov esi, dword [rsp + 0x38]
nop dword [rax]
test esi, esi
je 0x619a0c
cmp r11d, 0xb
je 0x6199b5
mov edi, dword [rsp + 0x3c]
test edi, edi
je 0x6199ab
mov r8, qword [rsp + 0xe0]
mov r9, r8
movzx r8d, byte [r8 + 0x1f]
cmp r8d, 8
jge 0x6199e1
lea r8, [r9 + 0x1f]
movzx r10d, byte [r8]
lea r11d, [r10 + 1]
mov byte [r8], r11b
lea r8, [r9 + r10*4]
lea r8, [r8 + 0xe8]
mov dword [r8], edi
jmp 0x6199e1
mov r9, qword [rsp + 0xe0]
jmp 0x6199e1
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x3c]
mov edi, r10d
call sym.modernc.org_sqlite_lib._sqlite3ReleaseTempRange
mov edx, dword [rsp + 0x74]
mov esi, dword [rsp + 0x38]
mov r9, qword [rsp + 0xe0]
mov rdi, r9
movzx r8d, byte [r9 + 0x1f]
nop
cmp r8d, 8
jge 0x619a0c
lea r8, [rdi + 0x1f]
movzx r9d, byte [r8]
lea r10d, [r9 + 1]
mov byte [r8], r10b
lea rdi, [rdi + r9*4]
lea rdi, [rdi + 0xe8]
mov dword [rdi], esi
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x6c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
mov rdx, qword [rsp + 0xf0]
movzx edx, byte [rdx + 0x24]
bt edx, 0
jae 0x619a5e
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x25
mov edi, dword [rsp + 0x54]
mov esi, dword [rsp + 0x74]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x619a85
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x27
mov edi, dword [rsp + 0x54]
mov esi, dword [rsp + 0x74]
xor r8d, r8d
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xf0]
mov edi, dword [rdx + 0x10]
test edi, edi
je 0x619ab4
nop
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, 0x43
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x70]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xc0]
mov rsi, qword [rdx]
call rsi
add rsp, 0xc8
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
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._generateSortTail