Function at 0x81fa60
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 rbp, qword [rcx]
mov rsi, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbp + 0x44]
cmp edx, 2
mov r15, rcx
mov r14d, edx
movzx r13d, byte [rsi + 0x20]
mov r12d, r8d
mov dword [rsp + 0xa8], r9d
lea edi, [rax - 1]
mov dword [rbp + 0x44], edi
je 0x81fd20
test r8d, r8d
jle 0x81facd
cmp byte [rsi + 0x20], 0x59
je 0x81ff50
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, r12d
mov edx, 0x30
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
mov dword [rsp + 0x34], 0
cmp r14d, 1
je 0x81fc10
movzx eax, byte [rsi + 0x21]
mov ecx, dword [rbx + 0x90]
cmp byte [rsi + 0x22], al
mov dword [rsp + 0x3c], ecx
jne 0x81fafb
test r12d, r12d
jne 0x81fe20
cmp r14d, 1
je 0x81fc2a
cmp r14d, 2
je 0x81fd8e
mov r9d, dword [rsi + 0x84]
mov eax, dword [r15 + 0x3c]
mov r12d, dword [r15 + 0x38]
test r9d, r9d
mov dword [rsp + 0x38], eax
je 0x81fdf2
mov r8d, dword [rsi + 0x88]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov edx, 0x52
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
cmp dword [r15 + 0x24], r14d
jne 0x81fc48
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, r12d
mov edx, 0x7b
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x90]
test eax, eax
jle 0x81fc4e
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 + 0xa8]
test edx, edx
jne 0x81fc5d
nop dword [rax]
xor edx, edx
mov dword [rsp + 0x20], 0
mov r8d, r12d
mov rcx, rbx
cmp r13b, 0x4c
setne dl
lea r9d, [rax + rdx + 1]
mov edx, 5
call dbg.sqlite3VdbeAddOp3
cmp r13b, 0x4c
mov dword [rsp + 0x30], 0
je 0x81fcf5
mov dword [rsp + 0x20], 0
mov r9d, edi
xor r8d, r8d
mov edx, 0xb
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
jmp 0x81fc9e
mov r10d, dword [rsi + 0x84]
test r10d, r10d
je 0x81ff80
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x3c], eax
mov eax, dword [r15 + 0x34]
mov rcx, r15
mov r12d, dword [r15 + 0x30]
mov dword [rsp + 0x38], eax
call dbg.windowReturnOneRow
cmp dword [r15 + 0x24], r14d
je 0x81fb57
mov eax, dword [rbx + 0x90]
mov edx, dword [rsp + 0xa8]
test edx, edx
je 0x81fbb0
lea r9d, [rax + 2]
mov r8d, r12d
mov edx, 5
mov dword [rsp + 0x20], 0
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb
mov dword [rsp + 0x20], 0
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
cmp r13b, 0x4c
mov dword [rsp + 0x30], eax
je 0x81fcf5
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x81fcb3
mov r13d, dword [rax]
test r13d, r13d
jne 0x81fef0
mov rdx, qword [r15 + 8]
xor r9d, r9d
mov r8d, r12d
xor r13d, r13d
mov rcx, qword [r15]
xor r14d, r14d
call sym.windowReadPeerValues.isra.377
mov eax, dword [rsp + 0x3c]
xor r8d, r8d
mov rcx, rbp
mov rdx, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp dword [rbp + 0x28], r13d
jge 0x81fcf5
mov dword [rbp + 0x28], r13d
mov dword [rbp + 0x2c], r14d
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x81fdd0
mov edx, edi
mov rcx, rbx
call dbg.sqlite3VdbeResolveLabel
mov eax, dword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsi + 0x21]
mov dword [rsp + 0x30], 0
cmp al, 0x5a
je 0x81fd0b
test r8d, r8d
jle 0x81fe10
cmp byte [rsi + 0x20], 0x59
jne 0x81fab2
mov eax, dword [rbx + 0x90]
cmp byte [rsi + 0x21], 0x56
mov r8d, dword [r15 + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [r15 + 0x30]
je 0x81ffa3
mov dword [rsp + 0x28], edi
mov r9d, r12d
mov edx, 0x39
mov rcx, r15
mov dword [rsp + 0x20], eax
call dbg.windowCodeRangeTest
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsi + 0x22]
cmp byte [rsi + 0x21], al
je 0x81ff94
mov r8d, dword [rsi + 0x84]
mov eax, dword [r15 + 0x2c]
mov r12d, dword [r15 + 0x28]
test r8d, r8d
mov dword [rsp + 0x38], eax
jne 0x81fb32
mov eax, dword [r15 + 0x20]
mov r9d, 1
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [r15]
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.664
jmp 0x81fc3e
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov edx, 0xb
mov rcx, rbx
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
jmp 0x81fd01
mov eax, dword [r15 + 0x20]
xor r9d, r9d
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [r15]
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.664
jmp 0x81fc3e
mov dword [rsp + 0x34], 0
jmp 0x81fae3
cmp byte [rsi + 0x20], 0x59
jne 0x81fafb
cmp r14d, 2
jne 0x81fafb
movzx eax, byte [rbp + 0x1f]
test al, al
je 0x81ffc4
lea edx, [rax - 1]
movzx ecx, dl
test dl, dl
mov byte [rbp + 0x1f], dl
mov r12d, dword [rbp + rcx*4 + 0xd4]
je 0x81ffdd
sub eax, 2
mov byte [rbp + 0x1f], al
movzx eax, al
mov eax, dword [rbp + rax*4 + 0xd4]
mov dword [rsp + 0x30], eax
mov r8d, dword [r15 + 0x28]
mov r9d, r12d
mov edx, pe_nt_image_headers64
mov rcx, rbx
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x30]
mov edx, pe_nt_image_headers64
mov rcx, rbx
mov r8d, dword [r15 + 0x38]
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
mov r8d, dword [rsp + 0x30]
mov r9d, edi
mov rcx, rbx
mov dword [rsp + 0x20], r12d
mov edx, 0x39
call dbg.sqlite3VdbeAddOp3
test r12d, r12d
je 0x81fed1
mov edx, r12d
mov rcx, rbp
call sym.sqlite3ReleaseTempReg.part.180
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x81fd8e
mov edx, eax
mov rcx, rbp
call sym.sqlite3ReleaseTempReg.part.180
jmp 0x81fd8e
mov edx, r13d
mov rcx, rbp
call sym.sqlite3GetTempRange
mov rdx, qword [r15 + 8]
mov r8d, r12d
mov rcx, qword [r15]
mov r9d, eax
mov r14d, eax
call sym.windowReadPeerValues.isra.377
mov eax, dword [rsp + 0x3c]
mov r8d, r14d
mov rcx, rbp
mov rdx, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp r13d, 1
jne 0x81fce7
mov edx, r14d
mov rcx, rbp
call sym.sqlite3ReleaseTempRange.part.182
jmp 0x81fcf5
mov r8d, dword [r15 + 0x38]
mov r9d, r12d
mov edx, 0x36
mov rcx, r15
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x34], eax
mov eax, dword [r15 + 0x30]
mov dword [rsp + 0x20], eax
call dbg.windowCodeRangeTest
jmp 0x81fad5
mov rdx, qword [r15 + 8]
xor r8d, r8d
mov rcx, qword [r15]
call sym.windowAggFinal.isra.376
jmp 0x81fc20
cmp byte [rsi + 0x20], 0x59
jne 0x81fd8e
jmp 0x81fe34
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, eax
mov edx, 0x37
mov dword [rsp + 0x28], edi
mov rcx, r15
call dbg.windowCodeRangeTest
jmp 0x81fd77
mov eax, dword [rbp + 0x38]
lea r12d, [rax + 1]
mov eax, r12d
add eax, 1
mov dword [rsp + 0x30], eax
mov dword [rbp + 0x38], eax
jmp 0x81fe6d
mov eax, dword [rbp + 0x38]
jmp 0x81ffce