Function at 0x1401c9420
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 0x1401c9499
jmp 0x1401c9870
lea rdi, str.first_value
cmp rax, rdi
je 0x1401c94ad
lea rdi, str.lead
cmp rax, rdi
je 0x1401c9618
lea rcx, [0x14039d3fc]
cmp rax, rcx
je 0x1401c9618
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x1401c95db
mov r13, qword [rbx + 0x50]
lea rdi, str.nth_value
mov rax, qword [r13 + 0x38]
cmp rax, rdi
jne 0x1401c9460
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 0x1401c9740
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 0x1401c9750
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 0x1401c9726
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
test edi, edi
je 0x1401c948c
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c948c
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 0x1401c9499
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 0x1401c9860
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 0x1401c9790
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 0x1401c97c7
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 0x1401c959b
mov r8d, ebp
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x1401c95ad
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x1401c94d8
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 0x1401c9523
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 0x1401c9c10
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 0x1401c96dd
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c96dd
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], r13d
jmp 0x1401c96dd
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x1401c9652
mov ebp, dword [rax + 0x64]
mov rax, qword [rax + 0x18]
xor edi, edi
test rax, rax
je 0x1401c9880
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 0x1401c9c38
lea edx, [rax - 1]
movzx ecx, dl
mov byte [rsi + 0x1f], dl
mov r14d, dword [rsi + rcx*4 + 0xe8]
test dl, dl
je 0x1401c9e2b
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 0x1401c9c70
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 0x1401c9966
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 0x1401c999d
mov r9d, dword [r15 + 0x5c]
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jl 0x1401c9928
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 0x1401c9966
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 0x1401c9cd0
cmp al, 0x42
je 0x1401c9b0f
mov rdx, qword [rsp + 0x30]
mov r13, qword [rdx + 0x18]
test r13, r13
je 0x1401c9ca0
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 0x1401c9d21
test r13, r13
je 0x1401c9e09
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 0x1401c9d06
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 0x1401c9b0f
mov rcx, qword [r12]
mov edx, dword [r12 + 0x90]
lea rax, [0x1404013a0]
cmp byte [rcx + 0x67], 0
je 0x1401c9cee
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 0x1401c9c90
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 0x1401c9c20
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 0x1401c9bd2
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c9bed
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], ebx
test r14d, r14d
je 0x1401c9bed
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c9bed
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], r14d
test edi, edi
jne 0x1401c9c50
mov rax, qword [rsp + 0xa0]
mov r8d, 1
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowAggFinal.isra.0
jmp 0x1401c95db
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
mov dword [rsi + 0x38], r13d
jmp 0x1401c97fa
mov dword [0x1404013a8], eax
lea rdx, [0x1404013a0]
jmp 0x1401c9bb6
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
mov ebx, r14d
add ebx, 1
mov dword [rsi + 0x38], ebx
jmp 0x1401c98cb
cmp edi, 1
je 0x1401c9d7e
cmp edi, dword [rsi + 0x28]
jle 0x1401c9bf1
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0x28], edi
mov dword [rsi + 0x2c], eax
jmp 0x1401c9bf1
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 0x1401c98e3
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x1401c9b65
cmp al, 0x5e
je 0x1401c9d21
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c9b0f
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x48]
mov r8d, r14d
mov rcx, r12
mov edx, 0x35
call sym.sqlite3VdbeAddOp3
jmp 0x1401c9b0f
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
jmp 0x1401c9b0c
cmp qword [rax + 0x2f8], 0
je 0x1401c9ded
mov r8d, dword [r12 + 0x90]
jmp 0x1401c9aca
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
cmp eax, dword [r12 + 0x94]
jge 0x1401c9dcd
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 0x1401c9a58
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x1401c9d9f
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c9bf1
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 0x1401c9bf1
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1401c9bf1
mov ebx, dword [rsp + 0x3c]
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], ebx
jmp 0x1401c9bf1
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 0x1401c9a58
sub dword [r13], 1
jne 0x1401c9d14
mov rcx, qword [r13 + 0x10]
mov rdx, r13
call sym.sqlite3DbNNFreeNN
jmp 0x1401c9d14
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401c9ae5
mov ebx, dword [rsi + 0x38]
jmp 0x1401c9c42