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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [rcx + 8]
mov r15, qword [rcx + 0x10]
mov rbx, qword [rcx]
cmp dword [rdi + 0x84], 0
mov rsi, rdi
mov rbp, rcx
je 0x140271efc
mov eax, dword [rdi + 0x64]
xor esi, esi
mov dword [rsp + 0x38], eax
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140271c32
mov esi, dword [rax]
mov r13d, dword [rbx + 0x44]
mov rcx, rbx
lea eax, [r13 - 1]
sub r13d, 2
mov dword [rbx + 0x44], r13d
mov dword [rsp + 0x3c], eax
call sym.sqlite3GetTempReg
mov dword [rsp + 0x40], eax
call sym.sqlite3GetTempReg
mov r12d, eax
test esi, esi
je 0x140271c74
mov edx, esi
call sym.sqlite3GetTempRange
mov dword [rsp + 0x44], eax
call sym.sqlite3GetTempRange
mov dword [rsp + 0x48], eax
jmp 0x140271c7e
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rdi + 0x58]
mov rcx, r15
mov r14, rdi
mov edx, 0x87
call sym.sqlite3VdbeAddOp2
mov edx, dword [rdi + 0x58]
mov r8d, dword [rsp + 0x44]
mov rcx, rbp
call sym.windowReadPeerValues
mov r9d, dword [r14 + 0x5c]
xor r8d, r8d
mov edx, 0x4b
mov rcx, r15
call sym.sqlite3VdbeAddOp2
mov r14, qword [r14 + 0x40]
test r14, r14
jne 0x140271ca7
mov r8d, dword [rsp + 0x38]
mov r9d, r13d
mov edx, 0x17
mov rcx, r15
mov eax, dword [rdi + 0x84]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsp + 0x38]
mov r9d, r12d
mov rcx, r15
mov eax, dword [r15 + 0x90]
mov edx, 0x87
mov dword [rsp + 0x4c], eax
call sym.sqlite3VdbeAddOp2
mov r9d, r13d
mov edx, 0x36
mov rcx, r15
mov r8d, dword [rdi + 0x88]
mov dword [rsp + 0x20], r12d
call sym.sqlite3VdbeAddOp3
mov al, byte [rdi + 0x24]
cmp al, 0x55
jne 0x140271d47
mov dword [rsp + 0x20], r12d
mov r9d, dword [rsp + 0x3c]
mov edx, 0x35
mov rcx, r15
mov r8d, dword [rsp + 0x40]
call sym.sqlite3VdbeAddOp3
jmp 0x140271e1d
cmp al, 0x42
je 0x140271e1d
mov r14, qword [rdi + 0x18]
test r14, r14
je 0x140271d6c
mov rdx, r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call sym.sqlite3KeyInfoFromExprList
mov r14, rax
xor r13d, r13d
cmp byte [rdi + 0x24], 0x5e
jne 0x140271d92
mov dword [rsp + 0x20], r12d
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, r15
mov edx, 0x35
call sym.sqlite3VdbeAddOp3
mov r13d, eax
test r14, r14
je 0x140271df8
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x38]
mov rcx, rbp
call sym.windowReadPeerValues
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x44]
mov rcx, r15
mov r8d, dword [rsp + 0x48]
mov edx, 0x5a
call sym.sqlite3VdbeAddOp3
mov rdx, r14
mov rcx, r15
mov r8d, 0xfffffff8
call sym.sqlite3VdbeAppendP4
mov eax, dword [r15 + 0x90]
mov r9d, dword [rsp + 0x3c]
mov rcx, r15
mov edx, 0xe
lea r8d, [rax + 1]
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
jmp 0x140271e0d
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
mov edx, 9
mov rcx, r15
call sym.sqlite3VdbeAddOp2
test r13d, r13d
je 0x140271e1d
mov edx, r13d
mov rcx, r15
call sym.sqlite3VdbeJumpHere
mov eax, dword [rbp + 0x20]
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x20], eax
mov rcx, qword [rbp]
call sym.windowAggStep.isra.0
mov edx, dword [rsp + 0x3c]
mov rcx, r15
call sym.sqlite3VdbeResolveLabel
mov r8d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x4c]
mov rcx, r15
mov edx, 0x27
call sym.sqlite3VdbeAddOp2
mov eax, dword [rsp + 0x4c]
mov rcx, r15
lea edx, [rax - 1]
call sym.sqlite3VdbeJumpHere
mov eax, dword [rsp + 0x4c]
lea edx, [rax + 1]
call sym.sqlite3VdbeJumpHere
mov edx, r12d
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
mov edx, dword [rsp + 0x40]
call sym.sqlite3ReleaseTempReg
test esi, esi
je 0x140271ea6
mov edx, dword [rsp + 0x48]
mov r8d, esi
call sym.sqlite3ReleaseTempRange
mov edx, dword [rsp + 0x44]
mov r8d, esi
call sym.sqlite3ReleaseTempRange
mov edx, 1
mov rcx, rbp
call sym.windowAggFinal
jmp 0x140272150
mov r13, qword [rsi + 0x50]
lea rdx, str.first_value
mov rax, qword [r13 + 0x38]
cmp rax, rdx
je 0x140271f06
lea rcx, str.nth_value
cmp rax, rcx
je 0x140271f06
lea rdx, [0x1403697e0]
cmp rax, rdx
je 0x140271fee
lea rdx, str.lead
cmp rax, rdx
je 0x140271fee
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x140271eb8
jmp 0x140272150
mov eax, dword [rsi + 0x64]
mov rcx, rbx
xor r8d, r8d
mov edx, 0x4b
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x44]
lea r14d, [rax - 1]
mov dword [rbx + 0x44], r14d
call sym.sqlite3GetTempReg
mov r9d, dword [rsi + 0x60]
mov rcx, r15
mov r12d, eax
call sym.sqlite3VdbeAddOp2
lea rax, str.nth_value
cmp qword [r13 + 0x38], rax
jne 0x140271f74
mov eax, dword [rsi + 0x7c]
mov r8d, dword [rdi + 0x58]
mov dword [rsp + 0x20], r12d
mov rcx, r15
mov edx, 0x5e
lea r9d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov r8d, 2
mov edx, r12d
mov rcx, rbx
call sym.windowCheckValue
jmp 0x140271f8a
mov r9d, r12d
mov r8d, 1
mov edx, 0x47
mov rcx, r15
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x68]
mov dword [rsp + 0x20], r12d
mov r8d, r12d
mov rcx, r15
mov edx, 0x6a
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x68]
mov dword [rsp + 0x20], r12d
mov r9d, r14d
mov edx, 0x36
mov rcx, r15
lea r8d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov rcx, r15
mov r8d, dword [rsp + 0x38]
mov edx, 0x1e
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x60]
mov r9d, dword [rsi + 0x7c]
mov r8d, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x140272128
mov rax, qword [rsi + 0x70]
mov rcx, rbx
mov rax, qword [rax + 0x20]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsi + 0x64]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x44]
lea r14d, [rax - 1]
mov dword [rbx + 0x44], r14d
call sym.sqlite3GetTempReg
cmp dword [rsp + 0x3c], 2
mov r9d, dword [rsi + 0x60]
mov r12d, eax
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x38], eax
jg 0x14027203d
xor r8d, r8d
mov edx, 0x4b
mov rcx, r15
call sym.sqlite3VdbeAddOp2
jmp 0x14027205b
mov eax, dword [rsi + 0x7c]
mov dword [rsp + 0x20], r9d
mov edx, 0x5e
mov rcx, r15
mov r8d, dword [rsp + 0x38]
lea r9d, [rax + 2]
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsp + 0x38]
mov r9d, r12d
mov edx, 0x87
mov rcx, r15
call sym.sqlite3VdbeAddOp2
cmp dword [rsp + 0x3c], 1
lea rax, str.lead
jg 0x14027209f
cmp qword [r13 + 0x38], rax
mov r8d, r12d
mov edx, 0x56
mov rcx, r15
sete al
movzx eax, al
lea r9d, [rax + rax - 1]
call sym.sqlite3VdbeAddOp2
jmp 0x1402720fe
xor r10d, r10d
cmp qword [r13 + 0x38], rax
mov rcx, rbx
mov edx, 0x5e
setne r10b
add r10d, 0x6a
mov dword [rsp + 0x3c], r10d
call sym.sqlite3GetTempReg
mov r8d, dword [rsp + 0x38]
mov rcx, r15
mov r13d, eax
mov eax, dword [rsi + 0x7c]
mov dword [rsp + 0x20], r13d
lea r9d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r12d
mov rcx, r15
mov r9d, r12d
mov edx, dword [rsp + 0x3c]
mov r8d, r13d
call sym.sqlite3VdbeAddOp3
mov edx, r13d
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
mov dword [rsp + 0x20], r12d
mov r8d, dword [rsp + 0x40]
mov r9d, r14d
mov rcx, r15
mov edx, 0x1e
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x60]
mov r9d, dword [rsi + 0x7c]
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov rcx, r15
mov edx, 0x5e
call sym.sqlite3VdbeAddOp3
mov edx, r14d
mov rcx, r15
call sym.sqlite3VdbeResolveLabel
mov edx, r12d
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
jmp 0x140271ef8
mov r9d, dword [rbp + 0x18]
mov r8d, dword [rbp + 0x1c]
mov edx, 0xa
mov rcx, r15
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3VdbeAddOp2