Function at 0x1402b3670
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, 0x48
mov r13, qword [rcx]
mov rsi, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
mov edi, dword [r13 + 0x44]
movzx eax, byte [rsi + 0x20]
lea r14d, [rdi - 1]
mov byte [rsp + 0x30], al
mov rbx, rcx
mov ebp, edx
mov dword [rsp + 0xa8], r9d
mov r15d, r8d
mov dword [r13 + 0x44], r14d
cmp edx, 2
je 0x1402b39d0
test r8d, r8d
jle 0x1402b36e3
cmp byte [rsp + 0x30], 0x59
je 0x1402b3ca0
mov r9d, r14d
mov r8d, r15d
mov edx, 0x3b
mov rcx, r12
mov dword [rsp + 0x20], 1
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x34], 0
cmp ebp, 1
je 0x1402b37a0
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x1402b3712
test r15d, r15d
jne 0x1402b3c10
cmp ebp, 2
je 0x1402b3a42
mov eax, dword [rbx + 0x40]
mov r10d, dword [rsi + 0x84]
mov r15d, dword [rbx + 0x3c]
mov dword [rsp + 0x38], eax
test r10d, r10d
je 0x1402b3b20
mov r8d, dword [rsi + 0x88]
mov r9d, 1
mov edx, 0x56
mov rcx, r12
call sym.sqlite3VdbeAddOp3.constprop.0
cmp dword [rbx + 0x24], ebp
jne 0x1402b37f4
nop dword [rax]
xor r9d, r9d
mov r8d, r15d
mov edx, 0x82
mov rcx, r12
call sym.sqlite3VdbeAddOp3.constprop.0
movsxd rax, dword [r12 + 0x90]
test eax, eax
jle 0x1402b37fc
mov r8, qword [r12 + 0x88]
movsxd rdx, eax
mov r9d, 2
lea rdx, [rdx + rdx*2]
lea rdx, [r8 + rdx*8]
mov word [rdx - 0x16], r9w
jmp 0x1402b37fc
mov eax, dword [rsi + 0x84]
test eax, eax
je 0x1402b3cd8
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsi + 0x22]
cmp byte [rsi + 0x21], al
jne 0x1402b37d8
test r15d, r15d
je 0x1402b37d8
cmp byte [rsi + 0x20], 0x59
je 0x1402b3b70
nop word [rax + rax]
mov eax, dword [rbx + 0x38]
mov rcx, rbx
mov r15d, dword [rbx + 0x34]
mov dword [rsp + 0x38], eax
call sym.windowReturnOneRow
cmp dword [rbx + 0x24], ebp
je 0x1402b3760
movsxd rax, dword [r12 + 0x90]
mov ecx, dword [rsp + 0xa8]
mov edx, dword [r12 + 0x94]
test ecx, ecx
je 0x1402b3950
lea r9d, [rax + 2]
cmp eax, edx
jge 0x1402b3d10
lea r10d, [rax + 1]
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
mov dword [r12 + 0x90], r10d
lea rax, [rax + rcx*8]
mov dword [rax + 4], r15d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x27
cmp r10d, edx
jge 0x1402b3d40
lea eax, [r10 + 1]
mov dword [r12 + 0x90], eax
movsxd rax, r10d
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
cmp byte [rsp + 0x30], 0x4c
je 0x1402b3907
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1402b38b1
mov ebp, dword [rax]
test ebp, ebp
jne 0x1402b3c20
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov dword [rsp + 0x30], r10d
xor ebp, ebp
xor r14d, r14d
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x3c]
mov rdx, qword [rsi + 0x18]
xor r8d, r8d
mov r9d, dword [rsp + 0x38]
mov rcx, r13
mov dword [rsp + 0x20], eax
call sym.windowIfNewPeer
mov r10d, dword [rsp + 0x30]
cmp dword [r13 + 0x28], ebp
jge 0x1402b3907
movd xmm0, ebp
movd xmm1, r14d
punpckldq xmm0, xmm1
movq qword [r13 + 0x28], xmm0
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x1402b3a78
mov rcx, qword [r12 + 0x18]
neg edi
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x1402b3ad9
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rdi, edi
mov dword [rax + rdi*4], edx
mov eax, r10d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
cmp byte [rsp + 0x30], 0x4c
lea ecx, [rax + 1]
setne r9b
add r9d, ecx
cmp eax, edx
jge 0x1402b3cf0
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
mov dword [r12 + 0x90], ecx
lea rax, [rax + rdx*8]
mov dword [rax + 4], r15d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x27
xor r10d, r10d
cmp byte [rsp + 0x30], 0x4c
je 0x1402b3907
mov r9d, r14d
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x30], r10d
call sym.sqlite3VdbeAddOp3.constprop.0
mov r10d, dword [rsp + 0x30]
jmp 0x1402b389e
movzx eax, byte [rsi + 0x21]
xor r10d, r10d
cmp al, 0x5a
je 0x1402b3938
test r8d, r8d
jle 0x1402b3b40
cmp byte [rsp + 0x30], 0x59
jne 0x1402b36c8
mov eax, dword [r12 + 0x90]
cmp byte [rsi + 0x21], 0x56
mov r8d, dword [rbx + 0x2c]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x34]
je 0x1402b3db0
mov dword [rsp + 0x28], r14d
mov r9d, r15d
mov edx, 0x39
mov rcx, rbx
mov dword [rsp + 0x20], eax
call sym.windowCodeRangeTest
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
je 0x1402b3b66
mov eax, dword [rbx + 0x30]
mov r8d, dword [rsi + 0x84]
mov r15d, dword [rbx + 0x2c]
mov dword [rsp + 0x38], eax
test r8d, r8d
je 0x1402b3af8
mov r9d, 1
mov edx, 0x56
mov rcx, r12
call sym.sqlite3VdbeAddOp3.constprop.0
jmp 0x1402b37eb
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jge 0x1402b3d68
lea edx, [rax + 1]
mov esi, dword [rsp + 0x34]
neg edi
mov dword [r12 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov rcx, qword [r12 + 0x18]
mov dword [rax + 8], esi
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
jns 0x1402b3926
mov r8d, edi
mov rdx, r12
mov dword [rsp + 0x30], r10d
call sym.resizeResolveLabel
mov r10d, dword [rsp + 0x30]
jmp 0x1402b3938
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
mov r9d, 1
mov r8d, r15d
mov rdx, rsi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1402b37eb
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov rdx, rsi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1402b37eb
mov ecx, dword [r12 + 0x90]
cmp byte [rsi + 0x22], al
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x3c], ecx
jne 0x1402b3a42
test r8d, r8d
je 0x1402b3a42
cmp byte [rsi + 0x20], 0x59
jne 0x1402b3a42
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x1402b3d98
lea edx, [rax - 1]
movzx ecx, dl
mov byte [r13 + 0x1f], dl
mov r15d, dword [r13 + rcx*4 + 0xe8]
test dl, dl
je 0x1402b3e71
sub eax, 2
mov byte [r13 + 0x1f], al
movzx eax, al
mov r10d, dword [r13 + rax*4 + 0xe8]
cmp ebp, 2
je 0x1402b3e18
mov r11d, dword [rbx + 0x28]
test r11d, r11d
jne 0x1402b3dd8
test r15d, r15d
je 0x1402b3bdc
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x1402b3bf9
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r15d
test r10d, r10d
je 0x1402b3bf9
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x1402b3bf9
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r10d
cmp ebp, 1
jne 0x1402b3712
jmp 0x1402b37d8
cmp byte [rsi + 0x20], 0x59
jne 0x1402b3712
jmp 0x1402b3b70
mov edx, ebp
mov rcx, r13
mov dword [rsp + 0x30], r10d
call sym.sqlite3GetTempRange
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r8d, r15d
mov r9d, eax
mov r14d, eax
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x3c]
mov rdx, qword [rsi + 0x18]
mov r8d, r14d
mov r9d, dword [rsp + 0x38]
mov rcx, r13
mov dword [rsp + 0x20], eax
call sym.windowIfNewPeer
cmp ebp, 1
mov r10d, dword [rsp + 0x30]
jne 0x1402b38ee
test r14d, r14d
je 0x1402b3907
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x1402b3907
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r14d
jmp 0x1402b3907
mov r8d, dword [rbx + 0x3c]
mov r9d, r15d
mov edx, 0x36
mov rcx, rbx
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x20], eax
call sym.windowCodeRangeTest
jmp 0x1402b36eb
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r8d, r8d
call sym.windowAggFinal.isra.0
jmp 0x1402b37ae
mov dword [rsp + 0x20], 0
mov r8d, r15d
mov edx, 0x27
mov rcx, r12
call sym.growOp3
jmp 0x1402b399f
mov dword [rsp + 0x20], 0
mov edx, 0x27
mov r8d, r15d
mov rcx, r12
call sym.growOp3
mov r10d, dword [r12 + 0x90]
mov edx, dword [r12 + 0x94]
jmp 0x1402b3858
xor r9d, r9d
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.growOp3
mov r10d, eax
jmp 0x1402b3897
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], r10d
call sym.growOp3
mov r10d, dword [rsp + 0x30]
jmp 0x1402b3913
mov eax, dword [r13 + 0x38]
lea r15d, [rax + 1]
mov r10d, r15d
add r10d, 1
mov dword [r13 + 0x38], r10d
jmp 0x1402b3ba9
mov dword [rsp + 0x20], r8d
mov r9d, r15d
mov r8d, eax
mov edx, 0x37
mov dword [rsp + 0x28], r14d
mov rcx, rbx
call sym.windowCodeRangeTest
jmp 0x1402b3a29
mov r8d, dword [rbx + 0x3c]
mov r9d, r15d
mov edx, 0x87
mov rcx, r12
mov dword [rsp + 0x38], r10d
call sym.sqlite3VdbeAddOp3.constprop.0
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov rcx, r12
mov r8d, dword [rbx + 0x28]
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x38]
jmp 0x1402b3bbf
mov r8d, dword [rbx + 0x2c]
mov r9d, r15d
mov edx, 0x87
mov rcx, r12
mov dword [rsp + 0x38], r10d
call sym.sqlite3VdbeAddOp3.constprop.0
mov r10d, dword [rsp + 0x38]
mov r8d, dword [rbx + 0x3c]
mov rcx, r12
mov edx, 0x87
mov r9d, r10d
call sym.sqlite3VdbeAddOp3.constprop.0
mov r10d, dword [rsp + 0x38]
mov r9d, r14d
mov rcx, r12
mov dword [rsp + 0x20], r15d
mov edx, 0x39
mov r8d, r10d
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x38]
jmp 0x1402b3bbf
mov r10d, dword [r13 + 0x38]
jmp 0x1402b3da3