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

Disassembly:
lea r12, [rsp - 0x98]
cmp r12, qword [r14 + 0x10]
jbe 0x66647d
push rbp
mov rbp, rsp
sub rsp, 0x110
movq qword [rsp + 0x108], xmm15
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rdi
mov dword [rsp + 0x140], esi
mov dword [rsp + 0x144], r8d
mov byte [rsp + 0x2b], 0
mov ebx, 0x50
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0xd8], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3WindowCodeStep.deferwrap1]
mov qword [rsp + 0xf8], rcx
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x100], rcx
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x108], rdx
mov byte [rsp + 0x2b], 1
mov rdx, qword [rsp + 0x130]
mov rdx, qword [rdx + 0x70]
mov qword [rsp + 0xc8], rdx
mov rbx, qword [rsp + 0x128]
lea r8, [rbx + 0x44]
mov qword [rsp + 0xb0], r8
mov rdx, qword [rdx + 0x18]
mov qword [rsp + 0xc0], rdx
mov rax, rcx
call sym.modernc.org_sqlite_lib._sqlite3GetVdbe
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx + 0x28]
add rcx, 8
mov rdx, qword [rcx + 0x20]
mov rsi, qword [rsp + 0xb0]
mov rdi, rsi
mov ecx, dword [rcx + 0x44]
mov dword [rsp + 0x60], ecx
movsx rdx, word [rdx + 0x36]
mov dword [rsp + 0xac], edx
nop
dec dword [rsi]
mov edi, dword [rdi]
mov dword [rsp + 0x4c], edi
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0x120]
xor ecx, ecx
mov edi, 0x48
call sym.modernc.org_libc.Xmemset
mov rcx, qword [rsp + 0xd8]
mov rdx, rcx
mov rbx, qword [rsp + 0x128]
mov qword [rcx], rbx
mov rcx, rdx
mov rsi, qword [rsp + 0xc8]
mov qword [rdx + 8], rsi
mov rdx, rcx
mov rdi, qword [rsp + 0xb8]
mov qword [rcx + 0x10], rdi
mov rcx, rdx
mov r8d, dword [rsp + 0x140]
mov dword [rdx + 0x1c], r8d
mov rdx, rcx
mov r8d, dword [rsp + 0x144]
mov dword [rcx + 0x18], r8d
mov rcx, rdx
mov r8, rsi
mov esi, dword [rsi + 0x58]
mov dword [rdx + 0x34], esi
mov rdx, rcx
mov esi, dword [rcx + 0x34]
mov dword [rsp + 0xa8], esi
lea r9d, [rsi + 2]
mov dword [rcx + 0x2c], r9d
mov rcx, rdx
mov r9d, dword [rdx + 0x34]
add r9d, 3
mov dword [rdx + 0x3c], r9d
mov rdx, r8
movzx r9d, byte [r8 + 0x21]
cmp r9d, 0x56
je 0x664e5e
cmp r9d, 0x5a
jne 0x664e4f
cmp dword [r8 + 0x84], 0
jne 0x664e45
mov rax, rdx
nop
jmp 0x666417
mov eax, 1
jmp 0x666361
mov r9, rcx
mov dword [rcx + 0x24], 2
jmp 0x664ede
movzx r9d, byte [r8 + 0x20]
cmp r9d, 0x59
je 0x664edb
mov rcx, qword [r8 + 0x28]
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowExprGtZero
test eax, eax
je 0x664eb4
mov rdx, qword [rsp + 0xd8]
mov r9, rdx
mov dword [rdx + 0x24], 1
mov rcx, r9
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x128]
mov esi, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
jmp 0x664edb
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x128]
mov esi, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
mov r9, rcx
mov r10, rbx
lea r11, [r10 + 0x38]
mov r12, r11
mov r13d, dword [rbx + 0x38]
mov r15d, dword [rsp + 0xac]
add dword [r11], r15d
mov r11, r12
inc dword [r12]
mov r12, r11
mov r8d, dword [r11]
lea eax, [r8 + 1]
mov dword [r11], eax
mov r11, r12
mov r12d, dword [r12]
mov rax, r9
mov dword [r9 + 0x28], r12d
mov r9, rdx
movzx edx, byte [rdx + 0x21]
cmp edx, 0x58
je 0x664f2a
cmp edx, 0x56
jne 0x664f37
mov rdx, r11
inc dword [r11]
mov r11, rdx
mov edx, dword [rdx]
jmp 0x664f39
xor edx, edx
mov r12, r9
movzx r9d, byte [r9 + 0x22]
cmp r9d, 0x58
je 0x664f4d
cmp r9d, 0x56
jne 0x664f5b
mov r9, r11
inc dword [r11]
mov r11, r9
mov r9d, dword [r9]
jmp 0x664f5e
xor r9d, r9d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x2c], edx
mov rcx, r12
movzx ebx, byte [r12 + 0x20]
cmp ebx, 0x4c
je 0x66505e
mov ebx, r9d
mov r9, qword [rsp + 0xc0]
test r9, r9
je 0x664f9b
mov r9d, dword [r9]
mov dword [rsp + 0x44], r9d
mov r9, qword [rsp + 0xc0]
jmp 0x664fb1
mov qword [rsp + 0xe8], rax
xor eax, eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [r12 + 0x78]
mov r12, qword [r12 + 0x10]
lea ebx, [r9 + r13]
lea r9d, [r9 + r13]
lea r9d, [r9 + 1]
test r12, r12
je 0x664fd8
mov r12d, dword [r12]
lea r9d, [rbx + r12]
lea r9d, [r9 + 1]
mov r12, r10
mov r10d, dword [r10 + 0x38]
mov rbx, r11
mov edx, dword [rsp + 0x44]
add dword [r11], edx
mov r11, rax
mov r12d, dword [r12 + 0x38]
inc r12d
mov dword [rax + 0x30], r12d
mov r12, rbx
add dword [rbx], edx
mov rax, r11
mov ebx, r13d
mov r13, qword [rsp + 0x128]
mov r13d, dword [r13 + 0x38]
inc r13d
mov dword [r11 + 0x38], r13d
mov r11, r12
add dword [r12], edx
mov r12, rax
mov r13, qword [rsp + 0x128]
mov r13d, dword [r13 + 0x38]
inc r13d
mov dword [rax + 0x40], r13d
mov r13, r11
add dword [r11], edx
lea edx, [r10 + 1]
mov rax, r12
mov r10, qword [rsp + 0x128]
mov r11, r13
mov r13d, ebx
mov ebx, edx
mov r12d, r9d
mov edx, dword [rsp + 0x2c]
mov r9d, dword [rsp + 0x40]
jmp 0x665063
xor ebx, ebx
xor r12d, r12d
mov dword [rsp + 0xa4], r13d
mov qword [rsp + 0xf0], r11
mov dword [rsp + 0xa0], r8d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0xe0], rax
xor eax, eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xe0]
jmp 0x665128
lea r8d, [r12 + r13]
lea r8d, [r8 + 1]
mov rax, qword [rsp + 0x120]
mov rbx, rdi
mov ecx, 0x5e
mov edi, dword [rsp + 0x60]
mov esi, r12d
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x58]
inc edx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc8]
mov ebx, dword [rsp + 0x30]
mov esi, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
mov r8d, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0x40]
mov r10, qword [rsp + 0x128]
mov r11, qword [rsp + 0xf0]
mov r12d, dword [rsp + 0x34]
mov r13d, dword [rsp + 0xa4]
mov r15d, dword [rsp + 0xac]
mov dword [rsp + 0x58], edx
mov edx, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x58]
cmp r12d, r15d
jl 0x66509f
lea edx, [r13 + 1]
mov rax, qword [rsp + 0x120]
mov rbx, rdi
mov ecx, 0x61
mov edi, edx
mov esi, r15d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rdx + 0x10]
test rcx, rcx
jne 0x66516e
xor eax, eax
xor ecx, ecx
jmp 0x6652c2
mov r8, rcx
mov r8d, dword [r8]
mov dword [rsp + 0x48], r8d
mov edx, dword [rdx + 0x78]
mov dword [rsp + 0xac], edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._sqlite3KeyInfoFromExprList
mov qword [rsp + 0xd0], rax
mov edx, dword [rsp + 0xa4]
mov r8d, dword [rsp + 0xac]
lea edi, [r8 + rdx]
lea edi, [rdi + 1]
mov dword [rsp + 0x38], edi
mov rdx, qword [rsp + 0xf0]
mov r8, rdx
inc dword [rdx]
mov edx, dword [r8]
mov dword [rsp + 0x3c], edx
mov r8, qword [rsp + 0xc8]
mov esi, dword [r8 + 0x6c]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x5a
mov r8d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x9c], eax
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xd0]
mov edi, 0xfffffff8
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAppendP4
mov esi, dword [rsp + 0x9c]
lea edx, [rsi + 4]
lea r8d, [rsi + 2]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0xe
mov edi, r8d
mov esi, edx
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov edx, dword [rsp + 0x48]
dec edx
mov dword [rsp + 0xac], edx
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0xa
mov edi, dword [rsp + 0x3c]
xor esi, esi
mov r8d, esi
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x7c], eax
mov rdx, qword [rsp + 0xc8]
mov esi, dword [rdx + 0x6c]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x50
mov edi, dword [rsp + 0x38]
mov rax, qword [rsp + 0x120]
mov r8d, dword [rsp + 0xac]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x7c], eax
mov edi, dword [rsp + 0xa8]
inc edi
mov dword [rsp + 0x5c], edi
mov rdx, qword [rsp + 0xd8]
mov esi, dword [rdx + 0x28]
mov rbx, qword [rsp + 0xb8]
xor r8d, r8d
mov rax, qword [rsp + 0x120]
mov ecx, 0x7f
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xd8]
mov r8d, dword [rdx + 0x28]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, pe_nt_image_headers64
mov edi, dword [rsp + 0x5c]
mov esi, dword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
mov edi, dword [rdx + 0x80]
mov rdx, qword [rsp + 0xd8]
mov r8d, dword [rdx + 0x28]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x34
xor esi, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x74], eax
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowInitAccum
mov rdx, qword [rsp + 0xd8]
mov r9, rdx
mov dword [rdx + 0x20], eax
mov r8d, dword [rsp + 0x2c]
test r8d, r8d
je 0x665407
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rdx + 0x28]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov edi, r8d
nop
call sym.modernc.org_sqlite_lib._sqlite3ExprCode
mov rdx, qword [rsp + 0xc8]
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
mov edi, 0
mov edx, 3
cmove edi, edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x2c]
call sym.modernc.org_sqlite_lib._windowCheckValue
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0xd8]
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x66547a
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rdx + 0x30]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov edi, esi
call sym.modernc.org_sqlite_lib._sqlite3ExprCode
mov rdx, qword [rsp + 0xc8]
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
mov edi, 0
mov edx, 3
cmove edi, edx
inc edi
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x40]
call sym.modernc.org_sqlite_lib._windowCheckValue
mov esi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc8]
mov r10, rdx
movzx r11d, byte [rdx + 0x20]
cmp r11d, 0x59
je 0x6655ef
movzx r11d, byte [rdx + 0x21]
movzx edx, byte [rdx + 0x22]
nop dword [rax]
cmp r11d, edx
jne 0x6655ef
test r8d, r8d
je 0x6655ef
cmp r11d, 0x56
mov ecx, 0x37
mov edx, 0x39
cmove ecx, edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov edi, r8d
mov r8d, esi
xor esi, esi
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x80], eax
mov rbx, qword [rsp + 0xd8]
xor ecx, ecx
mov rax, qword [rsp + 0x120]
nop
call sym.modernc.org_sqlite_lib._windowAggFinal
mov rdx, qword [rsp + 0xd8]
mov edi, dword [rdx + 0x34]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x24
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
nop
call sym.modernc.org_sqlite_lib._windowReturnOneRow
mov rdx, qword [rsp + 0xd8]
mov edi, dword [rdx + 0x34]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x92
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x4c]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov r9, qword [rdx]
nop
cmp byte [r9 + 0x67], 0
je 0x6655b2
lea r9, [0x00a30f90]
jmp 0x6655cc
mov r10d, dword [rsp + 0x80]
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
mov esi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xc8]
mov rdx, r10
movzx r11d, byte [r10 + 0x21]
cmp r11d, 0x56
jne 0x665642
movzx r10d, byte [r10 + 0x20]
cmp r10d, 0x59
je 0x665642
test esi, esi
je 0x665642
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x6b
mov edi, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
mov esi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x2c]
mov r9, qword [rsp + 0xd8]
movzx edx, byte [rdx + 0x21]
cmp edx, 0x5a
je 0x665676
mov edi, dword [r9 + 0x2c]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x24
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov r9, qword [rsp + 0xd8]
mov edi, dword [r9 + 0x34]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x24
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xd8]
mov edi, dword [rdx + 0x3c]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x24
xor esi, esi
mov r8d, esi
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x6657b5
mov rdx, qword [rsp + 0xc0]
nop dword [rax]
test rdx, rdx
je 0x6657bd
mov r8d, dword [rdx]
dec r8d
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x50
mov edi, dword [rsp + 0x34]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xd8]
mov esi, dword [rdx + 0x30]
mov rdx, qword [rsp + 0xc0]
mov r8d, dword [rdx]
dec r8d
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x50
mov edi, dword [rsp + 0x30]
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xd8]
mov esi, dword [rdx + 0x38]
mov rdx, qword [rsp + 0xc0]
mov r8d, dword [rdx]
dec r8d
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x50
mov edi, dword [rsp + 0x30]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xd8]
mov esi, dword [rdx + 0x40]
mov rdx, qword [rsp + 0xc0]
mov r8d, dword [rdx]
dec r8d
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x50
mov edi, dword [rsp + 0x30]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x6657bd
mov rdx, qword [rsp + 0xc0]
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x4c]
mov r8d, edi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r10, qword [rdx]
nop
cmp byte [r10 + 0x67], 0
je 0x66580a
lea r10, [0x00a30f90]
mov esi, dword [rsp + 0x30]
test esi, esi
jmp 0x665827
mov r11d, dword [rsp + 0x74]
movsxd r11, r11d
lea r10, [r11 + r11*2]
shl r10, 3
add r10, qword [rdx + 0x88]
mov esi, dword [rsp + 0x30]
test esi, esi
mov edx, dword [rdx + 0x90]
mov dword [r10 + 8], edx
je 0x665861
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xc0]
mov edi, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x4c]
call sym.modernc.org_sqlite_lib._windowIfNewPeer
mov r9, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc8]
movzx r10d, byte [rdx + 0x21]
cmp r10d, 0x56
je 0x665b76
movzx r11d, byte [rdx + 0x22]
nop dword [rax]
cmp r11d, 0x58
jne 0x66594c
cmp r10d, 0x58
jne 0x66589c
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
sete dl
jmp 0x66589e
xor edx, edx
mov byte [rsp + 0x2a], dl
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
mov edi, dword [rsp + 0x40]
xor esi, esi
nop dword [rax]
call sym.modernc.org_sqlite_lib._windowCodeOp
movzx edx, byte [rsp + 0x2a]
movzx edx, dl
mov dword [rsp + 0x64], edx
test edx, edx
je 0x6658f5
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov edx, dword [rsp + 0x64]
test edx, edx
jne 0x66593b
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov edx, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xb8]
jmp 0x665cd9
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rdx, qword [rsp + 0xc8]
movzx r9d, byte [rdx + 0x22]
nop word [rax + rax]
cmp r9d, 0x5a
je 0x665b65
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
jne 0x665a96
mov rdx, qword [rsp + 0xb8]
nop
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x98], edx
mov esi, dword [rsp + 0x40]
test esi, esi
jne 0x6659b9
xor eax, eax
jmp 0x6659f7
mov rdx, qword [rsp + 0xb0]
mov r10, rdx
nop
dec dword [rdx]
mov rbx, qword [rsp + 0xd8]
mov rdx, rbx
mov edi, dword [rdx + 0x34]
mov r8d, dword [rdx + 0x3c]
mov r9d, dword [r10]
mov dword [rsp + 0x50], r9d
mov rax, qword [rsp + 0x120]
mov ecx, 0x39
call sym.modernc.org_sqlite_lib._windowCodeRangeTest
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, edi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov edx, dword [rsp + 0x40]
nop dword [rax]
test edx, edx
je 0x665a89
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x98]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x50]
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
mov edx, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xb8]
jmp 0x665cd9
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x665aa2
xor eax, eax
jmp 0x665ac5
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x3b
xor esi, esi
mov r8d, 1
nop
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x98], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, edi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x665b57
mov rbx, qword [rsp + 0xb8]
mov rsi, rbx
mov rdi, qword [rsi]
cmp byte [rdi + 0x67], 0
je 0x665b2f
lea rdi, [0x00a30f90]
jmp 0x665b49
mov r8d, dword [rsp + 0x98]
movsxd r8, r8d
lea rdi, [r8 + r8*2]
shl rdi, 3
add rdi, qword [rsi + 0x88]
mov esi, dword [rsi + 0x90]
mov dword [rdi + 8], esi
jmp 0x665cd9
mov rbx, qword [rsp + 0xb8]
nop
jmp 0x665cd9
mov edx, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xb8]
jmp 0x665cd9
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rdx, qword [rsp + 0xc8]
mov r8, rdx
movzx r9d, byte [rdx + 0x22]
cmp r9d, 0x5a
je 0x665cd1
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
jne 0x665c89
mov rdx, qword [rsp + 0xb0]
mov r10, rdx
nop
dec dword [rdx]
mov rbx, qword [rsp + 0xd8]
mov rdx, rbx
mov edi, dword [rdx + 0x34]
mov r8d, dword [rdx + 0x3c]
mov r9d, dword [r10]
mov dword [rsp + 0x54], r9d
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x70], edx
nop
mov rax, qword [rsp + 0x120]
mov ecx, 0x39
mov esi, dword [rsp + 0x40]
call sym.modernc.org_sqlite_lib._windowCodeRangeTest
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x70]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x54]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
jmp 0x665cc9
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
mov edi, dword [rsp + 0x40]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov r8, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x4c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeResolveLabel
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x138]
call sym.modernc.org_sqlite_lib._sqlite3WhereEnd
mov rdx, qword [rsp + 0xc8]
cmp qword [rdx + 0x10], 0
jne 0x665d12
xor eax, eax
jmp 0x665d75
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x47
xor edi, edi
mov esi, dword [rsp + 0x3c]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov r9, qword [rdx]
cmp byte [r9 + 0x67], 0
je 0x665d54
lea r9, [0x00a30f90]
jmp 0x665d6b
mov r10d, dword [rsp + 0x7c]
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
mov dword [rsp + 0x78], eax
mov rdx, qword [rsp + 0xd8]
mov dword [rdx + 0x28], 0
nop
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x24
mov edi, dword [rsp + 0x5c]
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov dword [rsp + 0x84], eax
mov rdx, qword [rsp + 0xc8]
movzx r10d, byte [rdx + 0x22]
cmp r10d, 0x58
jne 0x665e5f
movzx r8d, byte [rdx + 0x21]
cmp r8d, 0x58
jne 0x665de2
movzx edx, byte [rdx + 0x20]
cmp edx, 0x59
sete dl
nop
jmp 0x665de4
xor edx, edx
mov byte [rsp + 0x29], dl
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
mov edi, dword [rsp + 0x40]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
movzx edx, byte [rsp + 0x29]
movzx edx, dl
test edx, edx
je 0x665e34
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rbx, qword [rsp + 0xb8]
jmp 0x66621c
movzx edx, byte [rdx + 0x21]
cmp edx, 0x56
jne 0x66613f
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rdx, qword [rsp + 0xc8]
movzx r9d, byte [rdx + 0x20]
nop word [rax + rax]
cmp r9d, 0x59
je 0x665f88
movzx edx, byte [rdx + 0x22]
cmp edx, 0x5a
jne 0x665f1e
mov rdx, qword [rsp + 0xb8]
nop
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x6c], edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
mov edi, dword [rsp + 0x2c]
mov esi, ecx
call sym.modernc.org_sqlite_lib._windowCodeOp
mov dword [rsp + 0x90], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
xor edi, edi
mov esi, 1
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowCodeOp
mov ecx, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x90]
jmp 0x665ff2
mov rdx, qword [rsp + 0xb8]
nop
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x6c], edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
mov edi, dword [rsp + 0x40]
mov esi, ecx
call sym.modernc.org_sqlite_lib._windowCodeOp
mov dword [rsp + 0x90], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
mov esi, 1
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowCodeOp
mov ecx, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x90]
jmp 0x665ff2
mov rdx, qword [rsp + 0xb8]
nop
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x6c], edx
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
mov esi, 1
call sym.modernc.org_sqlite_lib._windowCodeOp
mov dword [rsp + 0x8c], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, ecx
mov rax, qword [rsp + 0x120]
nop
call sym.modernc.org_sqlite_lib._windowCodeOp
mov ecx, dword [rsp + 0x6c]
mov edx, eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x90], edx
mov dword [rsp + 0x8c], eax
mov rbx, qword [rsp + 0xb8]
xor edi, edi
mov esi, ecx
mov r8d, edi
mov ecx, 9
mov rax, qword [rsp + 0x120]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r10, qword [rdx]
cmp byte [r10 + 0x67], 0
je 0x666043
lea r8, [0x00a30f90]
jmp 0x66605d
mov r10d, dword [rsp + 0x8c]
movsxd r10, r10d
lea r8, [r10 + r10*2]
shl r8, 3
add r8, qword [rdx + 0x88]
mov edx, dword [rdx + 0x90]
mov dword [r8 + 8], edx
mov r8d, dword [r9 + 0x90]
mov dword [rsp + 0x6c], r8d
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, ecx
call sym.modernc.org_sqlite_lib._windowCodeOp
mov dword [rsp + 0x88], eax
nop
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x6c]
mov r8d, edi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov r8, qword [rdx]
cmp byte [r8 + 0x67], 0
je 0x6660db
lea r9, [0x00a30f90]
jmp 0x6660f5
mov r10d, dword [rsp + 0x90]
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
mov rdx, rbx
mov r9, qword [rdx]
nop
cmp byte [r9 + 0x67], 0
je 0x666116
lea r9, [0x00a30f90]
jmp 0x666130
mov r10d, dword [rsp + 0x88]
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
jmp 0x66621c
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 3
xor edi, edi
mov esi, edi
call sym.modernc.org_sqlite_lib._windowCodeOp
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x90]
mov dword [rsp + 0x68], edx
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xd8]
mov ecx, 1
xor edi, edi
mov esi, ecx
call sym.modernc.org_sqlite_lib._windowCodeOp
mov dword [rsp + 0x94], eax
mov rbx, qword [rsp + 0xd8]
mov ecx, 2
mov edi, dword [rsp + 0x2c]
xor esi, esi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowCodeOp
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 9
xor edi, edi
mov esi, dword [rsp + 0x68]
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov r8, qword [rdx]
nop
cmp byte [r8 + 0x67], 0
je 0x6661f8
lea r9, [0x00a30f90]
jmp 0x666212
mov r10d, dword [rsp + 0x94]
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
mov rdx, rbx
mov r9, qword [rdx]
nop
cmp byte [r9 + 0x67], 0
je 0x666233
lea r9, [0x00a30f90]
jmp 0x66624d
mov r10d, dword [rsp + 0x84]
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
mov rdx, qword [rsp + 0xd8]
mov edi, dword [rdx + 0x34]
mov rax, qword [rsp + 0x120]
mov ecx, 0x92
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
cmp qword [rdx + 0x10], 0
je 0x666345
mov esi, dword [rdx + 0x84]
test esi, esi
je 0x6662e6
nop
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x47
mov edi, 1
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
mov esi, dword [rdx + 0x88]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xb8]
mov ecx, 0x47
xor edi, edi
mov r8d, edi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov r9, qword [rdx]
cmp byte [r9 + 0x67], 0
je 0x666304
lea r9, [0x00a30f90]
jmp 0x66631b
mov r10d, dword [rsp + 0x78]
movsxd r10, r10d
lea r9, [r10 + r10*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov edx, dword [rdx + 0x90]
mov dword [r9 + 4], edx
mov rax, qword [rsp + 0x120]
mov ecx, 0x43
mov edi, dword [rsp + 0x3c]
xor esi, esi
mov r8d, esi
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x108]
mov rax, qword [rdx]
call rax
add rsp, 0x110
pop rbp
nop
ret
test eax, eax
jne 0x66640b
movzx r9d, byte [r8 + 0x22]
cmp r9d, 0x58
jne 0x6663fe
movzx r9d, byte [r8 + 0x20]
nop dword [rax]
cmp r9d, 0x59
je 0x66640b
mov rcx, qword [r8 + 0x30]
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._windowExprGtZero
test eax, eax
je 0x6663d5
mov rdx, qword [rsp + 0xd8]
mov r9, rdx
mov dword [rdx + 0x24], 3
mov rcx, r9
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x128]
mov esi, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
jmp 0x66640b
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x128]
mov esi, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
jmp 0x66640b
mov r9, rcx
mov dword [rcx + 0x24], 1
mov rcx, r9
mov r9, rcx
jmp 0x664ede
mov rdx, qword [rdx + 0x40]
test rdx, rdx
je 0x666465
mov r9, qword [rdx + 0x50]
mov r9, qword [r9 + 0x38]
lea r10, str.nth_value
cmp r10, r9
je 0x666454
lea r10, str.first_value
cmp r10, r9
je 0x666454
lea r10, str.lead
cmp r10, r9
je 0x666454
lea r10, [0x009b8720]
cmp r10, r9
jne 0x666413
mov rdx, rax
mov eax, 1
nop dword [rax]
jmp 0x666361
mov rdx, rax
xor eax, eax
jmp 0x666361
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 dword [rsp + 0x2c], r8d
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 r8d, dword [rsp + 0x2c]
nop dword [rax]
jmp sym.modernc.org_sqlite_lib._sqlite3WindowCodeStep