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

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x662715
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0xac], esi
mov dword [rsp + 0xb0], r8d
mov rbx, qword [rbx]
mov qword [rsp + 0x58], rbx
call sym.modernc.org_sqlite_lib._sqlite3GetVdbe
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xa8]
mov esi, dword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, rdi
jmp 0x661fc0
mov r9, qword [rsp + 0x68]
mov rdi, qword [r9 + 0x40]
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xa8]
mov esi, dword [rsp + 0xb0]
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
nop dword [rax]
test rdi, rdi
je 0x66243b
mov r9, rdi
cmp byte [rdi + 0x8c], 0
je 0x661fda
xor r10d, r10d
jmp 0x661ff3
mov r10, qword [rdi + 0x70]
add r10, 0x20
mov r10, qword [r10]
nop
test r10, r10
je 0x661ff0
mov r10d, dword [r10]
jmp 0x661ff3
xor r10d, r10d
mov dword [rsp + 0x3c], r10d
mov qword [rsp + 0x68], r9
mov r11, qword [rdi + 0x50]
mov qword [rsp + 0x60], r11
xor edi, edi
jmp 0x662480
mov r12, rbx
cmp dword [rbx + 0x84], 0
jne 0x66220a
mov r13, r11
mov r11d, dword [r11 + 4]
bt r11d, 0xc
jae 0x662205
mov r11, r9
movzx r9d, byte [r9 + 0x21]
nop word [rax + rax]
cmp r9d, 0x5a
je 0x662212
nop
mov rbx, rax
mov edi, esi
xor esi, esi
mov r8d, esi
mov rax, rcx
mov ecx, 0x32
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x48], eax
mov edx, dword [rsp + 0xac]
test edx, edx
jne 0x66212f
mov rdx, qword [rsp + 0x68]
mov edi, dword [rdx + 0x68]
inc edi
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x56
mov esi, 1
xor r8d, r8d
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x68]
mov esi, dword [rdx + 0x68]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x51
mov edi, dword [rsp + 0xb0]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx + 0x68]
lea edx, [r8 + 2]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x61
mov edi, r8d
mov esi, 2
mov r8d, edx
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x68]
mov edi, dword [rdx + 0x64]
mov esi, dword [rdx + 0x68]
add esi, 2
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x8a
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0x50]
jmp 0x6621c4
mov rdx, qword [rsp + 0x68]
mov edi, dword [rdx + 0x64]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x17
xor esi, esi
mov r8d, dword [rsp + 0xb0]
mov r9d, 1
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov rdx, qword [rsp + 0x68]
mov edi, dword [rdx + 0x64]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x82
xor esi, esi
mov r8d, esi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov r10, qword [rdx]
mov r11d, dword [rdx + 0x90]
cmp byte [r10 + 0x67], 0
je 0x6621a7
lea rdx, [0x00a30f90]
jmp 0x6621c0
lea r9d, [r11 - 2]
movsxd r9, r9d
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov rdx, r9
mov dword [rdx + 8], r11d
mov rdx, rbx
mov r9, qword [rdx]
nop
cmp byte [r9 + 0x67], 0
je 0x6621db
lea r9, [0x00a30f90]
jmp 0x6621f2
mov r10d, dword [rsp + 0x48]
movsxd r10, r10d
lea r9, [r10 + r10*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov edx, dword [rdx + 0x90]
mov dword [r9 + 8], edx
nop dword [rax]
jmp 0x661f92
mov r11, r9
jmp 0x662212
mov r11, r9
mov r13, qword [rsp + 0x60]
mov r9, r11
mov edi, dword [r11 + 0x68]
nop dword [rax]
test edi, edi
jne 0x66240e
lea r11, [0x00731cc0]
mov qword [rsp + 0x70], r11
lea r15, vtable.UHHpH1f_.0
mov qword [rsp + 0x78], r15
mov rbx, r13
mov r13, qword [r13 + 0x18]
cmp qword [rsp + 0x78], r13
je 0x662431
mov r13, r9
cmp qword [r9 + 0x48], 0
nop word [rax + rax]
je 0x662373
mov r9, qword [rsp + 0x58]
mov rdi, r9
movzx r9d, byte [r9 + 0x1f]
test r9d, r9d
jne 0x662287
lea r9, [rdi + 0x38]
mov r8, r9
inc dword [r9]
mov r9d, dword [r8]
jmp 0x6622aa
lea r8, [rdi + 0x1f]
mov r9, r8
movzx r15d, byte [r8]
dec r15d
mov byte [r8], r15b
movzx r15d, byte [r9]
lea r15, [rdi + r15*4]
lea r15, [r15 + 0xe8]
mov r9d, dword [r15]
mov dword [rsp + 0x34], r9d
mov r12d, dword [r13 + 0x7c]
lea esi, [r10 + r12]
mov rbx, rax
mov edi, edx
mov r8d, r9d
mov rax, rcx
mov ecx, 0x5e
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x11
mov edi, dword [rsp + 0x34]
xor esi, esi
mov r8d, 1
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x66232a
mov rbx, qword [rsp + 0x58]
mov r9, rbx
movzx r9d, byte [r9 + 0x1f]
cmp r9d, 8
jge 0x66232f
lea r9, [rbx + 0x1f]
movzx r10d, byte [r9]
lea r11d, [r10 + 1]
mov byte [r9], r11b
lea r9, [rbx + r10*4]
lea r9, [r9 + 0xe8]
mov dword [r9], edx
jmp 0x66232f
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xa8]
mov rbx, qword [rsp + 0x60]
mov esi, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0x3c]
lea r11, [0x00731cc0]
mov r12, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x68]
lea r15, vtable.UHHpH1f_.0
mov edi, eax
mov rax, qword [rsp + 0x50]
jmp 0x662375
xor edi, edi
mov dword [rsp + 0x4c], edi
mov r9, r13
cmp byte [r13 + 0x8c], 0
jne 0x66238e
mov r8d, esi
jmp 0x662580
mov rdx, qword [r13 + 0x70]
add rdx, 0x20
mov rdx, qword [rdx]
mov edx, dword [rdx]
mov dword [rsp + 0x3c], edx
nop
mov edi, dword [rax + 0x90]
mov dword [rsp + 0x40], edi
mov rax, rcx
mov rbx, qword [rsp + 0x58]
mov ecx, edx
call sym.modernc.org_sqlite_lib._sqlite3GetTempRange
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x68]
mov rdx, qword [rdx + 0x70]
add rdx, 0x20
mov rcx, qword [rdx]
mov rbx, qword [rsp + 0x58]
mov edi, eax
xor r8d, r8d
mov rax, qword [rsp + 0x90]
xor esi, esi
call sym.modernc.org_sqlite_lib._sqlite3ExprCodeExprList
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
nop
mov edx, dword [rdx + 0x90]
mov rsi, qword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0x40]
jmp 0x6624f1
mov edx, dword [rsp + 0xac]
sub edi, edx
inc edi
mov rbx, rax
mov esi, 1
xor r8d, r8d
mov rax, rcx
mov ecx, 0x56
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0x50]
jmp 0x661f92
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov edi, dword [rsp + 0x44]
inc edi
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0xb0]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x3c]
mov r11, qword [rsp + 0x60]
nop dword [rax]
cmp edi, r10d
jge 0x66200d
mov dword [rsp + 0x44], edi
cmp edi, 1
jne 0x66249f
lea r13, str.nth_value
cmp qword [r11 + 0x38], r13
je 0x6624c5
mov r9d, dword [r9 + 0x7c]
add r9d, edi
lea r8d, [rdi + rsi]
mov rbx, rax
mov rax, rcx
mov ecx, 0x5e
mov edi, edx
mov esi, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
jmp 0x662441
mov edi, dword [rbx + 0x58]
mov r9d, dword [r9 + 0x7c]
inc r9d
lea r8d, [rsi + 1]
mov rbx, rax
mov rax, rcx
mov ecx, 0x5e
mov esi, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x662441
inc r8d
mov rsi, r11
cmp r8d, edx
jge 0x662543
mov r9, rbx
mov r10, qword [r9]
cmp byte [r10 + 0x67], 0
je 0x66250c
lea r9, [0x00a30f90]
jmp 0x662521
movsxd r10, r8d
lea r10, [r10 + r10*2]
shl r10, 3
add r10, qword [r9 + 0x88]
mov r9, r10
movzx r10d, byte [r9]
cmp r10d, 0x5e
jne 0x66253e
mov r10d, dword [r9 + 4]
mov r11, rsi
cmp dword [rsi + 0x58], r10d
jne 0x6624eb
mov dword [r9 + 4], edi
jmp 0x6624eb
mov r11, rsi
jmp 0x6624eb
mov rax, rbx
mov rcx, qword [rsp + 0x90]
mov edx, edi
mov rbx, qword [rsp + 0x60]
mov edi, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0xb0]
mov r9, qword [rsp + 0x68]
lea r11, [0x00731cc0]
mov r12, rsi
lea r15, vtable.UHHpH1f_.0
mov esi, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x3c]
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], esi
mov ebx, dword [rbx + 4]
bt ebx, 5
jae 0x6625f1
mov rsi, qword [r9 + 0x70]
add rsi, 0x20
mov rsi, qword [rsi]
add rsi, 8
mov rsi, qword [rsi]
mov rax, rcx
mov rbx, qword [rsp + 0x58]
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3ExprNNCollSeq
mov rbx, qword [rsp + 0x50]
mov ecx, 0x55
xor edi, edi
mov esi, edi
mov r8d, esi
mov r9, rax
mov r10d, 0xfffffffe
mov rax, qword [rsp + 0x90]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
mov esi, dword [rsp + 0x38]
mov r9, qword [rsp + 0x68]
mov r8d, dword [r9 + 0x5c]
mov edi, dword [rsp + 0xac]
test edi, edi
mov r9d, 0xa2
mov r10d, 0xa1
cmovne r9d, r10d
mov rbx, rax
mov rax, rcx
mov ecx, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov edi, 0xfffffff9
call sym.modernc.org_sqlite_lib._sqlite3VdbeAppendP4
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov r9d, dword [rdx + 0x90]
test r9d, r9d
jle 0x662670
mov edi, dword [rsp + 0x3c]
movzx r10d, dil
dec r9d
movsxd r9, r9d
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov word [r9 + 2], r10w
jmp 0x662674
mov edi, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x68]
mov r9, rdx
cmp byte [rdx + 0x8c], 0
je 0x6626a5
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x38]
call sym.modernc.org_sqlite_lib._sqlite3ReleaseTempRange
mov rbx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
mov edx, dword [rsp + 0x4c]
test edx, edx
je 0x6626e1
mov r10, rbx
mov r11, qword [r10]
nop
cmp byte [r11 + 0x67], 0
je 0x6626c4
lea rdx, [0x00a30f90]
jmp 0x6626d6
movsxd r11, edx
lea rdx, [r11 + r11*2]
shl rdx, 3
add rdx, qword [r10 + 0x88]
mov r10d, dword [r10 + 0x90]
mov dword [rdx + 8], r10d
mov rax, rbx
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xa8]
mov esi, dword [rsp + 0xb0]
lea r11, [0x00731cc0]
mov r12, qword [rsp + 0xa0]
lea r15, vtable.UHHpH1f_.0
jmp 0x662431
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x28], r8d
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._windowAggStep