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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x6635c5
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbx
mov rdx, rbx
mov r9, qword [rdx + 8]
mov r10, r9
mov r11, qword [rdx + 0x10]
mov qword [rsp + 0x48], r11
cmp dword [r9 + 0x84], 0
jne 0x663031
mov qword [rsp + 0x68], r10
mov rdx, qword [rdx]
mov qword [rsp + 0x58], rdx
mov rcx, r10
jmp 0x663068
call sym.modernc.org_sqlite_lib._windowFullScan
mov rdx, qword [rsp + 0x88]
mov edi, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x18]
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0xa
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
add rsp, 0x70
pop rbp
ret
mov r10, qword [r9 + 0x40]
test r10, r10
je 0x663036
mov qword [rsp + 0x50], r10
mov r9, r10
mov r12, qword [r10 + 0x50]
mov qword [rsp + 0x60], r12
mov r13, r12
mov r12, qword [r12 + 0x38]
lea r15, str.nth_value
cmp r15, r12
je 0x6633b1
lea r15, str.first_value
nop dword [rax]
cmp r15, r12
je 0x6633b1
lea r15, str.lead
cmp r15, r12
je 0x6630c5
lea r15, [0x009b8720]
nop dword [rax]
cmp r15, r12
jne 0x663064
mov r12, qword [r10 + 0x70]
add r12, 0x20
mov r12, qword [r12]
lea r15, [rdx + 0x44]
mov rsi, r15
mov r12d, dword [r12]
mov r10d, dword [r10 + 0x64]
nop
dec dword [r15]
mov r15, rdx
movzx edx, byte [rdx + 0x1f]
mov esi, dword [rsi]
test edx, edx
jne 0x6630fe
lea rdx, [r15 + 0x38]
mov rdi, rdx
inc dword [rdx]
mov edx, dword [rdi]
jmp 0x66311f
lea rdx, [r15 + 0x1f]
mov rdi, rdx
movzx r8d, byte [rdx]
dec r8d
mov byte [rdx], r8b
movzx edx, byte [rdi]
lea rdx, [r15 + rdx*4]
lea rdx, [rdx + 0xe8]
mov edx, dword [rdx]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x24], edx
mov ecx, dword [rcx + 0x58]
mov dword [rsp + 0x3c], ecx
cmp r12d, 3
jge 0x663156
mov esi, dword [r9 + 0x60]
mov rbx, r11
mov ecx, 0x4b
xor edi, edi
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x663170
mov esi, dword [r9 + 0x7c]
add esi, 2
mov r8d, dword [r9 + 0x60]
mov rbx, r11
mov edi, ecx
mov ecx, 0x5e
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x87
mov edi, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x24]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
cmp edx, 2
jl 0x6632ac
mov rdx, qword [rsp + 0x60]
lea r9, str.lead
mov r10, qword [rsp + 0x58]
mov r11, r10
movzx r10d, byte [r10 + 0x1f]
cmp qword [rdx + 0x38], r9
mov edx, 0x6b
mov r9d, 0x6a
cmove edx, r9d
mov dword [rsp + 0x2c], edx
test r10d, r10d
jne 0x6631ee
lea r10, [r11 + 0x38]
mov r12, r10
inc dword [r10]
mov r10d, dword [r12]
jmp 0x663216
lea r12, [r11 + 0x1f]
mov r13, r12
movzx r15d, byte [r12]
dec r15d
mov byte [r12], r15b
movzx r12d, byte [r13]
lea r12, [r11 + r12*4]
lea r12, [r12 + 0xe8]
mov r10d, dword [r12]
mov dword [rsp + 0x20], r10d
mov rdx, qword [rsp + 0x50]
mov esi, dword [rdx + 0x7c]
inc esi
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x5e
mov edi, dword [rsp + 0x3c]
mov r8d, r10d
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x2c]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
mov edx, dword [rsp + 0x20]
test edx, edx
je 0x6632a5
mov r9, qword [rsp + 0x58]
mov r10, r9
movzx r9d, byte [r9 + 0x1f]
nop dword [rax]
cmp r9d, 8
jge 0x6632e8
lea r9, [r10 + 0x1f]
movzx r11d, byte [r9]
lea r12d, [r11 + 1]
mov byte [r9], r12b
lea r9, [r10 + r11*4]
lea r9, [r9 + 0xe8]
mov dword [r9], edx
jmp 0x6632e8
mov r10, qword [rsp + 0x58]
jmp 0x6632e8
mov rdx, qword [rsp + 0x60]
lea r9, str.lead
nop
cmp qword [rdx + 0x38], r9
mov esi, 0xffffffff
mov edx, 1
cmove esi, edx
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x56
mov edi, dword [rsp + 0x24]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x1e
mov edi, dword [rsp + 0x40]
mov esi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x24]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x50]
mov esi, dword [rdx + 0x7c]
mov r8d, dword [rdx + 0x60]
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x5e
mov edi, dword [rsp + 0x40]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
nop
mov edx, dword [rsp + 0x24]
test edx, edx
je 0x663385
mov r9, qword [rsp + 0x58]
mov r10, r9
movzx r9d, byte [r9 + 0x1f]
nop
cmp r9d, 8
jge 0x66338a
lea r9, [r10 + 0x1f]
movzx r11d, byte [r9]
lea r12d, [r11 + 1]
mov byte [r9], r12b
lea r9, [r10 + r11*4]
lea r9, [r9 + 0xe8]
mov dword [r9], edx
jmp 0x66338a
mov r10, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
mov rdx, r10
mov rbx, qword [rsp + 0x88]
mov r9, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
jmp 0x663064
lea r12, [rdx + 0x44]
mov r15, r12
mov r10d, dword [r10 + 0x64]
mov dword [rsp + 0x44], r10d
nop
dec dword [r12]
mov r12, rdx
movzx edx, byte [rdx + 0x1f]
mov r15d, dword [r15]
mov dword [rsp + 0x38], r15d
test edx, edx
jne 0x6633e7
lea rdx, [r12 + 0x38]
mov rsi, rdx
inc dword [rdx]
mov edx, dword [rsi]
jmp 0x663407
lea rdx, [r12 + 0x1f]
mov rsi, rdx
movzx edi, byte [rdx]
dec edi
mov byte [rdx], dil
movzx edx, byte [rsi]
lea rdx, [r12 + rdx*4]
lea rdx, [rdx + 0xe8]
mov edx, dword [rdx]
mov dword [rsp + 0x28], edx
mov esi, dword [r9 + 0x60]
mov rbx, r11
mov ecx, 0x4b
xor edi, edi
mov r8d, edi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x60]
lea r9, str.nth_value
cmp qword [rdx + 0x38], r9
jne 0x663487
mov rdx, qword [rsp + 0x68]
mov edi, dword [rdx + 0x58]
mov rdx, qword [rsp + 0x50]
mov esi, dword [rdx + 0x7c]
inc esi
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x5e
mov r8d, dword [rsp + 0x28]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x28]
mov edi, 2
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._windowCheckValue
jmp 0x6634ab
nop
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x47
mov edi, 1
mov esi, dword [rsp + 0x28]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x50]
mov esi, dword [rdx + 0x68]
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x6a
mov edi, dword [rsp + 0x28]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x50]
mov edi, dword [rdx + 0x68]
inc edi
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x36
mov esi, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x28]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x1e
mov edi, dword [rsp + 0x44]
xor esi, esi
mov r8d, dword [rsp + 0x28]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0x50]
mov esi, dword [rdx + 0x7c]
mov r8d, dword [rdx + 0x60]
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, 0x5e
mov edi, dword [rsp + 0x44]
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x38]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
nop
mov edx, dword [rsp + 0x28]
test edx, edx
je 0x663596
mov r9, qword [rsp + 0x58]
mov r10, r9
movzx r9d, byte [r9 + 0x1f]
cmp r9d, 8
jge 0x66359b
lea r9, [r10 + 0x1f]
movzx r11d, byte [r9]
lea r12d, [r11 + 1]
mov byte [r9], r12b
lea r9, [r10 + r11*4]
lea r9, [r9 + 0xe8]
mov dword [r9], edx
jmp 0x66359b
mov r10, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
mov rdx, r10
mov rbx, qword [rsp + 0x88]
mov r9, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
nop dword [rax]
jmp 0x663064
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.modernc.org_sqlite_lib._windowReturnOneRow