Function at 0x1401af7d0
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 rbp, qword [rcx]
mov rsi, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbp + 0x44]
mov r13, rcx
mov edi, edx
mov r14d, r8d
movzx r12d, byte [rsi + 0x20]
mov dword [rsp + 0xb8], r9d
mov dword [rsp + 0x40], eax
sub eax, 1
cmp edx, 2
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x44], eax
je 0x1401afc00
test r8d, r8d
jle 0x1401afa2d
cmp r12b, 0x59
jne 0x1401afa10
mov ecx, dword [rbx + 0x90]
mov dword [rsp + 0x28], eax
mov r9d, r8d
mov edx, 0x36
mov eax, dword [r13 + 0x34]
mov dword [rsp + 0x3c], ecx
mov rcx, r13
mov dword [rsp + 0x20], eax
mov r8d, dword [r13 + 0x3c]
call dbg.windowCodeRangeTest
test r14d, r14d
setne r14b
cmp edi, 1
je 0x1401afa45
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x22]
cmp byte [rsi + 0x21], al
jne 0x1401af883
test r14b, r14b
jne 0x1401afcf0
cmp edi, 2
je 0x1401afc6c
mov r9d, dword [rsi + 0x84]
mov eax, dword [r13 + 0x40]
mov r14d, dword [r13 + 0x3c]
test r9d, r9d
mov dword [rsp + 0x48], eax
je 0x1401afcc0
mov r8d, dword [rsi + 0x88]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov edx, 0x56
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
cmp dword [r13 + 0x24], edi
jne 0x1401afb2e
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, r14d
mov edx, 0x82
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x90]
test eax, eax
jle 0x1401afb34
mov rcx, qword [rbx + 0x88]
movsxd rdx, eax
mov r8d, 2
lea rdx, [rdx + rdx*2]
lea rdx, [rcx + rdx*8]
mov word [rdx - 0x16], r8w
mov edx, dword [rsp + 0xb8]
test edx, edx
jne 0x1401afb43
nop dword [rax]
xor edx, edx
mov dword [rsp + 0x20], 0
mov r8d, r14d
mov rcx, rbx
cmp r12b, 0x4c
setne dl
xor r15d, r15d
lea r9d, [rax + rdx + 1]
mov edx, 0x27
call sym.sqlite3VdbeAddOp3
cmp r12b, 0x4c
je 0x1401afbb0
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
mov edx, 9
mov rcx, rbx
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1401af993
mov edi, dword [rax]
test edi, edi
jne 0x1401afd00
mov rdx, qword [r13 + 8]
xor r9d, r9d
mov r8d, r14d
xor edi, edi
mov rcx, qword [r13]
xor r12d, r12d
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
xor r8d, r8d
mov rcx, rbp
mov rdx, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp dword [rbp + 0x28], edi
jge 0x1401afbb0
mov eax, dword [rsp + 0x3c]
mov dword [rbp + 0x28], edi
mov dword [rbp + 0x2c], r12d
test eax, eax
je 0x1401afbbc
nop dword [rax + rax]
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
mov edx, 9
mov rcx, rbx
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401afbbc
mov r9d, dword [rsp + 0x44]
mov r8d, r14d
mov edx, 0x3b
mov rcx, rbx
mov dword [rsp + 0x20], 1
call sym.sqlite3VdbeAddOp3
test r14d, r14d
mov dword [rsp + 0x3c], 0
setne r14b
cmp edi, 1
jne 0x1401af867
mov r11d, dword [rsi + 0x84]
test r11d, r11d
je 0x1401afd70
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x1401afb10
test r14b, r14b
je 0x1401afb10
cmp byte [rsi + 0x20], 0x59
jne 0x1401afb10
movzx eax, byte [rbp + 0x1f]
test al, al
je 0x1401afde0
lea edx, [rax - 1]
movzx ecx, dl
test dl, dl
mov byte [rbp + 0x1f], dl
mov r14d, dword [rbp + rcx*4 + 0xe4]
je 0x1401aff18
sub eax, 2
mov byte [rbp + 0x1f], al
movzx eax, al
mov r15d, dword [rbp + rax*4 + 0xe4]
cmp edi, 2
je 0x1401afe60
mov r10d, dword [r13 + 0x28]
test r10d, r10d
jne 0x1401afe20
test r14d, r14d
je 0x1401afaea
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401afee0
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe4], r14d
test r15d, r15d
je 0x1401afb05
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401afb05
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe4], r15d
cmp edi, 1
jne 0x1401af883
nop
mov eax, dword [r13 + 0x38]
mov rcx, r13
mov r14d, dword [r13 + 0x34]
mov dword [rsp + 0x48], eax
call dbg.windowReturnOneRow
cmp dword [r13 + 0x24], edi
je 0x1401af8d4
mov eax, dword [rbx + 0x90]
mov edx, dword [rsp + 0xb8]
test edx, edx
je 0x1401af930
mov dword [rsp + 0x20], 0
lea r9d, [rax + 2]
mov r8d, r14d
mov rcx, rbx
mov edx, 0x27
call sym.sqlite3VdbeAddOp3
mov r15d, dword [rbx + 0x90]
cmp r15d, dword [rbx + 0x94]
jge 0x1401afda0
lea eax, [r15 + 1]
mov dword [rbx + 0x90], eax
movsxd rax, r15d
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
cmp r12b, 0x4c
jne 0x1401af980
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x1401af9e8
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x40]
mov eax, dword [rcx + 0x44]
neg r8d
add eax, dword [rcx + 0x48]
js 0x1401afcb0
mov edx, dword [rbx + 0x90]
movsxd r8, r8d
mov rax, qword [rcx + 0x50]
mov dword [rax + r8*4], edx
mov eax, r15d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsi + 0x21]
xor r15d, r15d
cmp al, 0x5a
je 0x1401afbe5
test r8d, r8d
jle 0x1401afce0
cmp r12b, 0x59
jne 0x1401afa10
mov edx, dword [rbx + 0x90]
cmp al, 0x56
mov eax, dword [rsp + 0x44]
mov r8d, dword [rcx + 0x2c]
mov dword [rsp + 0x3c], edx
mov edx, dword [rcx + 0x34]
mov dword [rsp + 0x28], eax
je 0x1401afe00
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x39
call dbg.windowCodeRangeTest
movzx eax, byte [rsi + 0x21]
mov ecx, dword [rbx + 0x90]
cmp byte [rsi + 0x22], al
mov dword [rsp + 0x4c], ecx
jne 0x1401afc6c
test r14d, r14d
jne 0x1401afdc8
mov r8d, dword [rsi + 0x84]
mov eax, dword [r13 + 0x30]
mov r14d, dword [r13 + 0x2c]
test r8d, r8d
mov dword [rsp + 0x48], eax
jne 0x1401af8af
mov eax, dword [r13 + 0x20]
mov r9d, 1
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [r13]
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401afb24
mov rdx, rbx
call dbg.resizeResolveLabel
jmp 0x1401afbe5
mov eax, dword [r13 + 0x20]
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [r13]
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401afb24
mov dword [rsp + 0x3c], 0
jmp 0x1401afc54
cmp byte [rsi + 0x20], 0x59
jne 0x1401af883
jmp 0x1401afa7f
mov edx, edi
mov rcx, rbp
call sym.sqlite3GetTempRange
mov rdx, qword [r13 + 8]
mov r8d, r14d
mov rcx, qword [r13]
mov r9d, eax
mov r12d, eax
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
mov r8d, r12d
mov rcx, rbp
mov rdx, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp edi, 1
jne 0x1401af9c7
test r12d, r12d
je 0x1401afbb0
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401afbb0
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe4], r12d
jmp 0x1401afbb0
mov rdx, qword [r13 + 8]
xor r8d, r8d
mov rcx, qword [r13]
call sym.windowAggFinal.isra.0
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x22]
cmp byte [rsi + 0x21], al
je 0x1401afa6c
jmp 0x1401afb10
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 9
mov rcx, rbx
call dbg.growOp3
mov r15d, eax
jmp 0x1401afba6
cmp byte [rsi + 0x20], 0x59
jne 0x1401afc6c
jmp 0x1401afa7f
mov eax, dword [rbp + 0x38]
lea r14d, [rax + 1]
mov eax, r14d
lea r15d, [rax + 1]
mov dword [rbp + 0x38], r15d
jmp 0x1401afab5
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, edx
mov edx, 0x37
call dbg.windowCodeRangeTest
movzx eax, byte [rsi + 0x21]
jmp 0x1401afc54
mov dword [rsp + 0x20], 0
mov r8d, dword [r13 + 0x3c]
mov r9d, r14d
mov rcx, rbx
mov edx, 0x87
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsp + 0x44]
mov rcx, rbx
mov r8d, dword [r13 + 0x28]
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
jmp 0x1401afacb
mov dword [rsp + 0x20], 0
mov r8d, dword [r13 + 0x2c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
mov r9d, r15d
mov edx, 0x87
mov rcx, rbx
mov dword [rsp + 0x20], 0
mov r8d, dword [r13 + 0x3c]
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x44]
mov r8d, r15d
mov rcx, rbx
mov dword [rsp + 0x20], r14d
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
test r14d, r14d
je 0x1401afef0
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401afc6c
lea edx, [rax + 1]
test r15d, r15d
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe4], r14d
jne 0x1401afaef
jmp 0x1401afc6c
cmp edi, 1
jne 0x1401af88c
jmp 0x1401afb10
test r15d, r15d
je 0x1401afc6c
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401afc6c
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe4], r15d
jmp 0x1401afc6c
mov eax, dword [rbp + 0x38]
jmp 0x1401afdea