Function at 0x1401c4570
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 rax, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
mov rsi, qword [rcx]
mov edx, dword [rax + 0x84]
mov rbx, rax
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x30], rax
test edx, edx
je 0x1401c45e9
jmp 0x1401c49c0
lea rdi, str.first_value
cmp rax, rdi
je 0x1401c45fd
lea rdi, str.lead
cmp rax, rdi
je 0x1401c4768
lea rcx, [0x14038c15c]
cmp rax, rcx
je 0x1401c4768
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x1401c472b
mov r13, qword [rbx + 0x50]
lea rdi, str.nth_value
mov rax, qword [r13 + 0x38]
cmp rax, rdi
jne 0x1401c45b0
mov ebp, dword [rsi + 0x44]
movzx eax, byte [rsi + 0x1f]
mov r14d, dword [rbx + 0x64]
lea r15d, [rbp - 1]
mov dword [rsi + 0x44], r15d
test al, al
je 0x1401c4890
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov edi, dword [rsi + rax*4 + 0xe8]
mov r9d, dword [rbx + 0x60]
xor r8d, r8d
mov edx, 0x4b
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
lea rax, str.nth_value
cmp qword [r13 + 0x38], rax
je 0x1401c48a0
mov dword [rsp + 0x20], 0
mov r9d, edi
mov edx, 0x47
mov rcx, r12
mov r8d, 1
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rbx + 0x68]
mov dword [rsp + 0x20], edi
mov r8d, edi
mov edx, 0x6a
mov rcx, r12
neg ebp
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x68]
mov dword [rsp + 0x20], edi
mov r9d, r15d
mov edx, 0x36
mov rcx, r12
lea r8d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, r14d
mov edx, 0x1e
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x60]
mov r9d, dword [rbx + 0x7c]
mov rcx, r12
mov r8d, r14d
mov edx, 0x5e
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [r12 + 0x18]
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x1401c4876
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
test edi, edi
je 0x1401c45dc
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c45dc
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov rbx, qword [rbx + 0x40]
mov dword [rsi + rax*4 + 0xe8], edi
test rbx, rbx
jne 0x1401c45e9
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xa
mov rcx, r12
mov r9d, dword [rax + 0x18]
mov r8d, dword [rax + 0x1c]
call sym.sqlite3VdbeAddOp3
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rbx + 0x70]
mov r14d, dword [rbx + 0x64]
mov rax, qword [rax + 0x20]
mov r11d, dword [rax]
mov eax, dword [rsi + 0x44]
lea r15d, [rax - 1]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsi + 0x1f]
mov dword [rsi + 0x44], r15d
test al, al
je 0x1401c49b0
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov edi, dword [rsi + rax*4 + 0xe8]
mov rax, qword [rsp + 0x30]
cmp r11d, 2
mov dword [rsp + 0x40], r11d
mov r9d, dword [rbx + 0x60]
mov ebp, dword [rax + 0x58]
jg 0x1401c48e0
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x4b
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov r9d, edi
mov r8d, ebp
mov edx, 0x87
mov dword [rsp + 0x20], 0
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov r11d, dword [rsp + 0x40]
cmp r11d, 2
je 0x1401c4917
lea rax, str.lead
cmp qword [r13 + 0x38], rax
mov r8d, edi
mov edx, 0x56
sete al
mov dword [rsp + 0x20], 0
mov rcx, r12
movzx eax, al
lea r9d, [rax + rax - 1]
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], edi
mov r9d, r15d
mov r8d, r14d
mov edx, 0x1e
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x60]
mov r9d, dword [rbx + 0x7c]
mov rcx, r12
mov r8d, r14d
mov edx, 0x5e
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [r12 + 0x18]
mov ebp, dword [rsp + 0x3c]
mov eax, dword [rcx + 0x44]
neg ebp
add eax, dword [rcx + 0x48]
jns 0x1401c46eb
mov r8d, ebp
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x1401c46fd
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x1401c4628
mov rdx, qword [rsp + 0x30]
mov eax, dword [rbx + 0x7c]
mov rcx, r12
mov r8d, dword [rdx + 0x58]
mov dword [rsp + 0x20], edi
lea r9d, [rax + 1]
mov edx, 0x5e
call sym.sqlite3VdbeAddOp3
mov r8d, 2
mov edx, edi
mov rcx, rsi
call dbg.windowCheckValue
jmp 0x1401c4673
mov eax, dword [rbx + 0x7c]
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov edx, 0x5e
mov rcx, r12
lea r9d, [rax + 2]
call sym.sqlite3VdbeAddOp3
mov r9d, edi
mov r8d, ebp
mov edx, 0x87
mov dword [rsp + 0x20], 0
mov rcx, r12
call sym.sqlite3VdbeAddOp3
lea rax, str.lead
xor r11d, r11d
cmp qword [r13 + 0x38], rax
movzx eax, byte [rsi + 0x1f]
setne r11b
add r11d, 0x6a
test al, al
je 0x1401c4d60
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r13d, dword [rsi + rax*4 + 0xe8]
mov eax, dword [rbx + 0x7c]
mov dword [rsp + 0x20], r13d
mov r8d, ebp
mov edx, 0x5e
mov rcx, r12
mov dword [rsp + 0x40], r11d
lea r9d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov r11d, dword [rsp + 0x40]
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], edi
mov rcx, r12
mov edx, r11d
call sym.sqlite3VdbeAddOp3
test r13d, r13d
je 0x1401c482d
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c482d
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], r13d
jmp 0x1401c482d
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x1401c47a2
mov ebp, dword [rax + 0x64]
mov rax, qword [rax + 0x18]
xor edi, edi
test rax, rax
je 0x1401c49d0
mov edi, dword [rax]
mov eax, dword [rsi + 0x44]
lea ebx, [rax - 1]
lea r13d, [rax - 2]
mov dword [rsp + 0x44], eax
movzx eax, byte [rsi + 0x1f]
mov dword [rsp + 0x48], ebx
mov dword [rsi + 0x44], r13d
test al, al
je 0x1401c4d88
lea edx, [rax - 1]
movzx ecx, dl
mov byte [rsi + 0x1f], dl
mov r14d, dword [rsi + rcx*4 + 0xe8]
test dl, dl
je 0x1401c4f7b
sub eax, 2
mov byte [rsi + 0x1f], al
movzx eax, al
mov ebx, dword [rsi + rax*4 + 0xe8]
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
test edi, edi
jne 0x1401c4dc0
mov r15, qword [rsp + 0x30]
mov r9d, r14d
mov rcx, r12
mov edx, 0x87
mov r8d, dword [r15 + 0x58]
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x3c]
mov r8d, dword [r15 + 0x58]
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowReadPeerValues.isra.0
jmp 0x1401c4ab6
lea edx, [rax + 1]
mov dword [r12 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 0x4b
mov r15, qword [r15 + 0x40]
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
test r15, r15
je 0x1401c4aed
mov r9d, dword [r15 + 0x5c]
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jl 0x1401c4a78
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x4b
mov rcx, r12
call dbg.growOp3
mov r15, qword [r15 + 0x40]
test r15, r15
jne 0x1401c4ab6
mov rax, qword [rsp + 0x30]
mov r9d, r13d
mov r8d, ebp
mov edx, 0x17
mov rcx, r12
mov eax, dword [rax + 0x84]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r9d, ebx
mov r8d, ebp
mov edx, 0x87
mov r15d, dword [r12 + 0x90]
mov dword [rsp + 0x20], 0
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x30]
mov r9d, r13d
mov rcx, r12
mov edx, 0x36
mov r8d, dword [rax + 0x88]
mov dword [rsp + 0x20], ebx
call sym.sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x24]
cmp al, 0x55
je 0x1401c4e20
cmp al, 0x42
je 0x1401c4c5f
mov rdx, qword [rsp + 0x30]
mov r13, qword [rdx + 0x18]
test r13, r13
je 0x1401c4df0
mov rdx, r13
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call dbg.sqlite3KeyInfoFromExprList
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x4c], 0
mov r13, rax
cmp byte [rdx + 0x24], 0x5e
je 0x1401c4e71
test r13, r13
je 0x1401c4f59
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rsp + 0x40]
mov r8d, ebp
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowReadPeerValues.isra.0
mov dword [rsp + 0x20], edi
mov r9d, dword [rsp + 0x3c]
mov rcx, r12
mov r8d, dword [rsp + 0x40]
mov edx, 0x5a
call sym.sqlite3VdbeAddOp3
mov rax, qword [r12]
cmp byte [rax + 0x67], 0
jne 0x1401c4e56
movsxd rax, dword [r12 + 0x90]
lea rdx, [rax + rax*2]
mov r8, rax
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8 - 0x18]
mov byte [rax + 1], 0xf8
mov qword [rax + 0x10], r13
add r8d, 1
mov r9d, dword [rsp + 0x48]
mov edx, 0xe
mov rcx, r12
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x4c]
test r10d, r10d
je 0x1401c4c5f
mov rcx, qword [r12]
mov edx, dword [r12 + 0x90]
lea rax, [0x1403f0300]
cmp byte [rcx + 0x67], 0
je 0x1401c4e3e
mov dword [rax + 8], edx
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call sym.windowAggStep.isra.0
mov rcx, qword [r12 + 0x18]
mov r8d, dword [rsp + 0x44]
mov eax, dword [rcx + 0x44]
neg r8d
add eax, dword [rcx + 0x48]
js 0x1401c4de0
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd r8, r8d
mov dword [rax + r8*4], edx
mov edx, 0x27
mov r9d, r15d
mov r8d, ebp
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov rdx, qword [r12]
mov eax, dword [r12 + 0x90]
cmp byte [rdx + 0x67], 0
jne 0x1401c4d70
sub r15d, 1
mov rcx, qword [r12 + 0x88]
movsxd r15, r15d
lea rdx, [r15 + r15*2]
shl rdx, 3
mov dword [rcx + rdx + 8], eax
lea rdx, [rcx + rdx + 0x30]
mov dword [rdx + 8], eax
test ebx, ebx
je 0x1401c4d22
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c4d3d
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], ebx
test r14d, r14d
je 0x1401c4d3d
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c4d3d
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], r14d
test edi, edi
jne 0x1401c4da0
mov rax, qword [rsp + 0xa0]
mov r8d, 1
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowAggFinal.isra.0
jmp 0x1401c472b
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
mov dword [rsi + 0x38], r13d
jmp 0x1401c494a
mov dword [0x1403f0308], eax
lea rdx, [0x1403f0300]
jmp 0x1401c4d06
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
mov ebx, r14d
add ebx, 1
mov dword [rsi + 0x38], ebx
jmp 0x1401c4a1b
cmp edi, 1
je 0x1401c4ece
cmp edi, dword [rsi + 0x28]
jle 0x1401c4d41
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0x28], edi
mov dword [rsi + 0x2c], eax
jmp 0x1401c4d41
mov edx, edi
mov rcx, rsi
call sym.sqlite3GetTempRange
mov edx, edi
mov dword [rsp + 0x3c], eax
call sym.sqlite3GetTempRange
mov dword [rsp + 0x40], eax
jmp 0x1401c4a33
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x1401c4cb5
cmp al, 0x5e
je 0x1401c4e71
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c4c5f
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x48]
mov r8d, r14d
mov rcx, r12
mov edx, 0x35
call sym.sqlite3VdbeAddOp3
jmp 0x1401c4c5f
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
jmp 0x1401c4c5c
cmp qword [rax + 0x2f8], 0
je 0x1401c4f3d
mov r8d, dword [r12 + 0x90]
jmp 0x1401c4c1a
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
cmp eax, dword [r12 + 0x94]
jge 0x1401c4f1d
mov edx, dword [rsp + 0x4c]
lea eax, [rdx + 1]
mov dword [r12 + 0x90], eax
movsxd rax, edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r14d
mov dword [rax + 8], 0
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x35
jmp 0x1401c4ba8
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x1401c4eef
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c4d41
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], ebx
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1401c4d41
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c4d41
mov ebx, dword [rsp + 0x3c]
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], ebx
jmp 0x1401c4d41
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, r14d
mov edx, 0x35
mov rcx, r12
call dbg.growOp3
mov dword [rsp + 0x4c], eax
jmp 0x1401c4ba8
sub dword [r13], 1
jne 0x1401c4e64
mov rcx, qword [r13 + 0x10]
mov rdx, r13
call sym.sqlite3DbNNFreeNN
jmp 0x1401c4e64
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c4c35
mov ebx, dword [rsi + 0x38]
jmp 0x1401c4d92