Function at 0x140211f10
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 rbp, rcx
mov rsi, rdi
je 0x14021221c
mov eax, dword [rdi + 0x64]
xor esi, esi
mov dword [rsp + 0x38], eax
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140211f52
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
test esi, esi
mov r12d, eax
je 0x140211f94
mov edx, esi
call sym.sqlite3GetTempRange
mov dword [rsp + 0x44], eax
call sym.sqlite3GetTempRange
mov dword [rsp + 0x48], eax
jmp 0x140211f9e
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
mov r9d, dword [rsp + 0x40]
mov edx, 0x87
mov rcx, r15
mov r14, rdi
mov r8d, dword [rdi + 0x58]
call sym.sqlite3VdbeAddOp2
mov edx, dword [rdi + 0x58]
mov rcx, rbp
mov r8d, dword [rsp + 0x44]
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 0x140211fc7
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 0x140212067
mov r9d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], r12d
mov edx, 0x35
mov rcx, r15
mov r8d, dword [rsp + 0x40]
call sym.sqlite3VdbeAddOp3
jmp 0x14021213d
cmp al, 0x42
je 0x14021213d
mov r14, qword [rdi + 0x18]
test r14, r14
je 0x14021208c
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 0x1402120b2
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov rcx, r15
mov edx, 0x35
call sym.sqlite3VdbeAddOp3
mov r13d, eax
test r14, r14
je 0x140212118
mov r8d, dword [rsp + 0x48]
mov rcx, rbp
mov edx, dword [rsp + 0x38]
call sym.windowReadPeerValues
mov r9d, dword [rsp + 0x44]
mov rcx, r15
mov dword [rsp + 0x20], esi
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 edx, 0xe
mov rcx, r15
mov r9d, dword [rsp + 0x3c]
lea r8d, [rax + 1]
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
jmp 0x14021212d
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
mov edx, 9
mov rcx, r15
call sym.sqlite3VdbeAddOp2
test r13d, r13d
je 0x14021213d
mov edx, r13d
mov rcx, r15
call sym.sqlite3VdbeJumpHere
mov eax, dword [rbp + 0x20]
xor r9d, r9d
mov rdx, rdi
mov r8d, dword [rsp + 0x38]
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 edx, 0x27
mov rcx, r15
mov r9d, dword [rsp + 0x4c]
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 0x1402121c6
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 0x140212470
mov r13, qword [rsi + 0x50]
lea rdx, str.first_value
mov rax, qword [r13 + 0x38]
cmp rax, rdx
je 0x140212226
lea rcx, str.nth_value
cmp rax, rcx
je 0x140212226
lea rdx, [0x1402fc140]
cmp rax, rdx
je 0x14021230e
lea rdx, str.lead
cmp rax, rdx
je 0x14021230e
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x1402121d8
jmp 0x140212470
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 0x140212294
mov eax, dword [rsi + 0x7c]
mov rcx, r15
mov edx, 0x5e
mov r8d, dword [rdi + 0x58]
mov dword [rsp + 0x20], r12d
lea r9d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov r8d, 2
mov edx, r12d
mov rcx, rbx
call sym.windowCheckValue
jmp 0x1402122aa
mov r9d, r12d
mov r8d, 1
mov edx, 0x47
mov rcx, r15
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x68]
mov r8d, r12d
mov edx, 0x6a
mov rcx, r15
mov dword [rsp + 0x20], r12d
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x68]
mov r9d, r14d
mov edx, 0x36
mov rcx, r15
mov dword [rsp + 0x20], r12d
lea r8d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rcx, r15
mov dword [rsp + 0x20], r12d
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 0x140212448
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 r12d, eax
mov eax, dword [rdi + 0x58]
mov r9d, dword [rsi + 0x60]
mov dword [rsp + 0x38], eax
jg 0x14021235d
xor r8d, r8d
mov edx, 0x4b
mov rcx, r15
call sym.sqlite3VdbeAddOp2
jmp 0x14021237b
mov eax, dword [rsi + 0x7c]
mov edx, 0x5e
mov dword [rsp + 0x20], r9d
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 0x1402123bf
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 0x14021241e
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 edx, dword [rsp + 0x3c]
mov rcx, r15
mov r9d, r12d
mov dword [rsp + 0x20], r12d
mov r8d, r13d
call sym.sqlite3VdbeAddOp3
mov edx, r13d
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
mov r8d, dword [rsp + 0x40]
mov r9d, r14d
mov dword [rsp + 0x20], r12d
mov rcx, r15
mov edx, 0x1e
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x60]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsi + 0x7c]
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 0x140212218
mov r9d, dword [rbp + 0x18]
mov edx, 0xa
mov rcx, r15
mov r8d, dword [rbp + 0x1c]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3VdbeAddOp2