Function at 0x1401c4f90
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 rsi, qword [rcx + 8]
mov rbp, qword [rcx]
mov r12, qword [rcx + 0x10]
movzx eax, byte [rsi + 0x20]
mov byte [rsp + 0x3f], al
mov eax, dword [rbp + 0x44]
mov rbx, rcx
mov edi, edx
mov dword [rsp + 0xb8], r9d
mov r13d, r8d
lea r14d, [rax - 1]
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x44], r14d
cmp edx, 2
je 0x1401c52c0
test r8d, r8d
jle 0x1401c5006
cmp byte [rsp + 0x3f], 0x59
je 0x1401c5510
mov r9d, r14d
mov r8d, r13d
mov edx, 0x3b
mov rcx, r12
mov dword [rsp + 0x20], 1
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x40], 0
cmp edi, 1
je 0x1401c5140
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x1401c5035
test r13d, r13d
jne 0x1401c5490
cmp edi, 2
je 0x1401c532e
mov eax, dword [rbx + 0x40]
mov r9d, dword [rsi + 0x84]
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x48], eax
test r9d, r9d
je 0x1401c53a8
mov r8d, dword [rsi + 0x88]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov edx, 0x56
mov rcx, r12
call sym.sqlite3VdbeAddOp3
cmp dword [rbx + 0x24], edi
jne 0x1401c5194
xor r9d, r9d
mov r8d, r13d
mov edx, 0x82
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov eax, dword [r12 + 0x90]
test eax, eax
jle 0x1401c519c
mov rcx, qword [r12 + 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 0x1401c51ab
nop dword [rax]
movzx edi, byte [rsp + 0x3f]
xor edx, edx
mov r8d, r13d
mov rcx, r12
mov dword [rsp + 0x20], 0
cmp dil, 0x4c
setne dl
xor r15d, r15d
lea r9d, [rax + rdx + 1]
mov edx, 0x27
call sym.sqlite3VdbeAddOp3
cmp dil, 0x4c
je 0x1401c526f
mov r9d, r14d
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c521a
mov r11d, dword [rsi + 0x84]
test r11d, r11d
je 0x1401c5548
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x1401c5178
test r13d, r13d
je 0x1401c5178
cmp byte [rsi + 0x20], 0x59
je 0x1401c53f8
nop dword [rax]
mov eax, dword [rbx + 0x38]
mov rcx, rbx
mov r13d, dword [rbx + 0x34]
mov dword [rsp + 0x48], eax
call dbg.windowReturnOneRow
cmp dword [rbx + 0x24], edi
je 0x1401c5084
mov eax, dword [r12 + 0x90]
mov edx, dword [rsp + 0xb8]
test edx, edx
je 0x1401c50e0
lea r9d, [rax + 2]
mov r8d, r13d
mov edx, 0x27
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r15d, dword [r12 + 0x90]
cmp r15d, dword [r12 + 0x94]
jge 0x1401c5560
lea eax, [r15 + 1]
mov dword [r12 + 0x90], eax
movsxd rax, r15d
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 + 0x3f], 0x4c
je 0x1401c526f
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1401c522f
mov r14d, dword [rax]
test r14d, r14d
jne 0x1401c54a0
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r13d
xor r14d, r14d
xor edi, edi
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
mov rdx, qword [rsi + 0x18]
xor r8d, r8d
mov r9d, dword [rsp + 0x48]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp dword [rbp + 0x28], r14d
jge 0x1401c526f
mov dword [rbp + 0x28], r14d
mov dword [rbp + 0x2c], edi
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401c5370
mov rcx, qword [r12 + 0x18]
mov r8d, dword [rsp + 0x44]
mov eax, dword [rcx + 0x44]
neg r8d
add eax, dword [rcx + 0x48]
js 0x1401c5398
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rdi, r8d
mov dword [rax + rdi*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 0x1401c52a6
test r8d, r8d
jle 0x1401c53c8
cmp byte [rsp + 0x3f], 0x59
jne 0x1401c4feb
mov eax, dword [r12 + 0x90]
cmp byte [rsi + 0x21], 0x56
mov r8d, dword [rbx + 0x2c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x34]
je 0x1401c55a0
mov dword [rsp + 0x28], r14d
mov r9d, r13d
mov edx, 0x39
mov rcx, rbx
mov dword [rsp + 0x20], eax
call dbg.windowCodeRangeTest
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsi + 0x22]
cmp byte [rsi + 0x21], al
je 0x1401c53ee
mov eax, dword [rbx + 0x30]
mov r8d, dword [rsi + 0x84]
mov r13d, dword [rbx + 0x2c]
mov dword [rsp + 0x48], eax
test r8d, r8d
jne 0x1401c5060
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
mov r9d, 1
mov r8d, r13d
mov rdx, rsi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401c518b
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c527b
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x1401c52a6
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r13d
mov rdx, rsi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401c518b
mov ecx, dword [r12 + 0x90]
cmp byte [rsi + 0x22], al
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x4c], ecx
jne 0x1401c532e
test r8d, r8d
je 0x1401c532e
cmp byte [rsi + 0x20], 0x59
jne 0x1401c532e
movzx eax, byte [rbp + 0x1f]
test al, al
je 0x1401c5588
lea edx, [rax - 1]
movzx ecx, dl
mov byte [rbp + 0x1f], dl
mov r13d, dword [rbp + rcx*4 + 0xe8]
test dl, dl
je 0x1401c565d
sub eax, 2
mov byte [rbp + 0x1f], al
movzx eax, al
mov r15d, dword [rbp + rax*4 + 0xe8]
cmp edi, 2
je 0x1401c5608
mov r10d, dword [rbx + 0x28]
test r10d, r10d
jne 0x1401c55c8
test r13d, r13d
je 0x1401c545f
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401c547a
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe8], r13d
test r15d, r15d
je 0x1401c547a
movzx eax, byte [rbp + 0x1f]
cmp al, 7
ja 0x1401c547a
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe8], r15d
cmp edi, 1
jne 0x1401c5035
jmp 0x1401c5178
cmp byte [rsi + 0x20], 0x59
jne 0x1401c5035
jmp 0x1401c53f8
mov edx, r14d
mov rcx, rbp
call sym.sqlite3GetTempRange
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r8d, r13d
mov r9d, eax
mov edi, eax
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
mov rdx, qword [rsi + 0x18]
mov r8d, edi
mov r9d, dword [rsp + 0x48]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp r14d, 1
jne 0x1401c5262
test edi, edi
je 0x1401c526f
movzx edx, byte [rbp + 0x1f]
cmp dl, 7
ja 0x1401c526f
lea ecx, [rdx + 1]
mov byte [rbp + 0x1f], cl
mov dword [rbp + rdx*4 + 0xe8], edi
jmp 0x1401c526f
mov r8d, dword [rbx + 0x3c]
mov r9d, r13d
mov edx, 0x36
mov rcx, rbx
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x20], eax
call dbg.windowCodeRangeTest
jmp 0x1401c500e
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r8d, r8d
call sym.windowAggFinal.isra.0
jmp 0x1401c5150
xor r9d, r9d
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov r15d, eax
jmp 0x1401c5213
mov eax, dword [rbp + 0x38]
lea r13d, [rax + 1]
mov r15d, r13d
add r15d, 1
mov dword [rbp + 0x38], r15d
jmp 0x1401c542e
mov dword [rsp + 0x20], r8d
mov r9d, r13d
mov r8d, eax
mov edx, 0x37
mov dword [rsp + 0x28], r14d
mov rcx, rbx
call dbg.windowCodeRangeTest
jmp 0x1401c5315
mov r8d, dword [rbx + 0x3c]
mov r9d, r13d
mov rcx, r12
mov edx, 0x87
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r13d
mov r9d, r14d
mov rcx, r12
mov r8d, dword [rbx + 0x28]
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
jmp 0x1401c5444
mov r8d, dword [rbx + 0x2c]
mov r9d, r13d
mov rcx, r12
mov edx, 0x87
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rbx + 0x3c]
mov r9d, r15d
mov rcx, r12
mov dword [rsp + 0x20], 0
mov edx, 0x87
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r13d
mov r9d, r14d
mov r8d, r15d
mov edx, 0x39
mov rcx, r12
call sym.sqlite3VdbeAddOp3
jmp 0x1401c5444
mov r15d, dword [rbp + 0x38]
jmp 0x1401c5592