Function at 0x14038b490
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 0x14038b509
jmp 0x14038b8e0
lea rdi, str.first_value
cmp rax, rdi
je 0x14038b51d
lea rdi, [0x14076614e]
cmp rax, rdi
je 0x14038b688
lea rdx, str.lead
cmp rax, rdx
je 0x14038b688
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x14038b64b
mov r13, qword [rbx + 0x50]
lea rdi, str.nth_value
mov rax, qword [r13 + 0x38]
cmp rax, rdi
jne 0x14038b4d0
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 0x14038b7b0
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov edi, dword [rsi + rax*4 + 0xd0]
mov r9d, dword [rbx + 0x60]
xor r8d, r8d
mov edx, 0x48
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
lea rax, str.nth_value
cmp qword [r13 + 0x38], rax
je 0x14038b7c0
mov dword [rsp + 0x20], 0
mov r9d, edi
mov edx, 0x45
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, 0x1f
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x60]
mov r9d, dword [rbx + 0x7c]
mov rcx, r12
mov r8d, r14d
mov edx, 0x5b
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [r12 + 0x18]
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x14038b796
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
test edi, edi
je 0x14038b4fc
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038b4fc
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov rbx, qword [rbx + 0x40]
mov dword [rsi + rax*4 + 0xd0], edi
test rbx, rbx
jne 0x14038b509
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xc
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 0x14038b8d0
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov edi, dword [rsi + rax*4 + 0xd0]
mov rax, qword [rsp + 0x30]
cmp r11d, 2
mov dword [rsp + 0x40], r11d
mov r9d, dword [rbx + 0x60]
mov ebp, dword [rax + 0x58]
jg 0x14038b800
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x48
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov r9d, edi
mov r8d, ebp
mov edx, 0x83
mov dword [rsp + 0x20], 0
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov r11d, dword [rsp + 0x40]
cmp r11d, 2
je 0x14038b837
lea rax, str.lead
cmp qword [r13 + 0x38], rax
mov r8d, edi
mov edx, 0x53
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, 0x1f
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x60]
mov r9d, dword [rbx + 0x7c]
mov rcx, r12
mov r8d, r14d
mov edx, 0x5b
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 0x14038b60b
mov r8d, ebp
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x14038b61d
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x14038b548
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbx + 0x7c]
mov edx, 0x5b
mov r8d, dword [rcx + 0x58]
mov dword [rsp + 0x20], edi
mov rcx, r12
lea r9d, [rax + 1]
call sym.sqlite3VdbeAddOp3
mov r8d, 2
mov edx, edi
mov rcx, rsi
call dbg.windowCheckValue
jmp 0x14038b593
mov eax, dword [rbx + 0x7c]
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov edx, 0x5b
mov rcx, r12
lea r9d, [rax + 2]
call sym.sqlite3VdbeAddOp3
mov r9d, edi
mov r8d, ebp
mov edx, 0x83
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 0x14038bca8
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r13d, dword [rsi + rax*4 + 0xd0]
mov eax, dword [rbx + 0x7c]
mov dword [rsp + 0x20], r13d
mov r8d, ebp
mov edx, 0x5b
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 0x14038b74d
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038b74d
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xd0], r13d
jmp 0x14038b74d
mov eax, dword [rsi + 0x38]
lea edi, [rax + 1]
mov dword [rsi + 0x38], edi
jmp 0x14038b6c2
mov ebp, dword [rax + 0x64]
mov rax, qword [rax + 0x18]
xor edi, edi
test rax, rax
je 0x14038b8f0
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 0x14038bcd8
lea edx, [rax - 1]
movzx ecx, dl
mov byte [rsi + 0x1f], dl
mov r15d, dword [rsi + rcx*4 + 0xd0]
test dl, dl
je 0x14038becb
sub eax, 2
mov byte [rsi + 0x1f], al
movzx eax, al
mov ebx, dword [rsi + rax*4 + 0xd0]
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
test edi, edi
jne 0x14038bd10
mov r14, qword [rsp + 0x30]
mov r9d, r15d
mov rcx, r12
mov edx, 0x83
mov r8d, dword [r14 + 0x58]
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x3c]
mov r8d, dword [r14 + 0x58]
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowReadPeerValues.isra.0
jmp 0x14038b9d6
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], 0x48
mov r14, qword [r14 + 0x40]
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
test r14, r14
je 0x14038ba0d
mov r9d, dword [r14 + 0x5c]
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jl 0x14038b998
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x48
mov rcx, r12
call dbg.growOp3
mov r14, qword [r14 + 0x40]
test r14, r14
jne 0x14038b9d6
mov rax, qword [rsp + 0x30]
mov r9d, r13d
mov r8d, ebp
mov edx, 0x18
mov rcx, r12
mov eax, dword [rax + 0x84]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r9d, ebx
mov r8d, ebp
mov edx, 0x83
mov r14d, 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 0x14038bd70
cmp al, 0x42
je 0x14038bb90
mov rcx, qword [rsp + 0x30]
mov r13, qword [rcx + 0x18]
test r13, r13
je 0x14038bd40
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call dbg.sqlite3KeyInfoFromExprList
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x4c], 0
mov r13, rax
cmp byte [rcx + 0x24], 0x5e
je 0x14038bdc1
test r13, r13
je 0x14038bea9
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, 0x57
call sym.sqlite3VdbeAddOp3
mov rax, qword [r12]
cmp byte [rax + 0x63], 0
jne 0x14038bda6
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], 0xf7
mov qword [rax + 0x10], r13
add r8d, 1
mov r9d, dword [rsp + 0x48]
mov edx, 0x10
mov rcx, r12
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
mov ecx, dword [rsp + 0x4c]
test ecx, ecx
je 0x14038bb90
mov edx, dword [r12 + 0x90]
lea eax, [rdx - 1]
cmovns eax, ecx
mov rcx, qword [r12]
cmp byte [rcx + 0x63], 0
mov r10d, eax
lea rax, [0x1407d6d60]
je 0x14038bd8e
mov dword [rax + 8], edx
nop word cs:[rax + rax]
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 0x14038bd30
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd r8, r8d
mov dword [rax + r8*4], edx
mov r8d, ebp
mov edx, 5
mov rcx, r12
mov r9d, r14d
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov edx, dword [r12 + 0x90]
mov rcx, qword [r12]
mov eax, r14d
sub eax, 1
lea r8d, [rdx - 1]
cmovs eax, r8d
cmp byte [rcx + 0x63], 0
jne 0x14038bcc0
add r14d, 1
mov rcx, qword [r12 + 0x88]
cdqe
cmovs r14d, r8d
lea rax, [rax + rax*2]
mov dword [rcx + rax*8 + 8], edx
movsxd r14, r14d
lea rax, [r14 + r14*2]
lea rax, [rcx + rax*8]
mov dword [rax + 8], edx
test ebx, ebx
je 0x14038bc66
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038bc81
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xd0], ebx
test r15d, r15d
je 0x14038bc81
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038bc81
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xd0], r15d
test edi, edi
jne 0x14038bcf0
mov rax, qword [rsp + 0xa0]
mov r8d, 1
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call sym.windowAggFinal.isra.0
jmp 0x14038b64b
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
mov dword [rsi + 0x38], r13d
jmp 0x14038b86a
mov dword [0x1407d6d68], edx
lea rax, [0x1407d6d60]
jmp 0x14038bc4a
mov eax, dword [rsi + 0x38]
lea r15d, [rax + 1]
mov ebx, r15d
add ebx, 1
mov dword [rsi + 0x38], ebx
jmp 0x14038b93b
cmp edi, 1
je 0x14038be1e
cmp edi, dword [rsi + 0x28]
jle 0x14038bc85
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0x28], edi
mov dword [rsi + 0x2c], eax
jmp 0x14038bc85
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 0x14038b953
mov rdx, r12
call dbg.resizeResolveLabel
jmp 0x14038bbe6
cmp al, 0x5e
je 0x14038bdc1
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 0xb
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x14038bb90
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x48]
mov r8d, r15d
mov rcx, r12
mov edx, 0x35
call sym.sqlite3VdbeAddOp3
jmp 0x14038bb90
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
jmp 0x14038bb83
cmp qword [rax + 0x2d0], 0
je 0x14038be8d
mov r8d, dword [r12 + 0x90]
jmp 0x14038bb3a
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x4c], eax
cmp eax, dword [r12 + 0x94]
jge 0x14038be6d
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx + 1]
mov dword [r12 + 0x90], eax
movsxd rax, ecx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r15d
mov dword [rax + 8], 0
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x35
jmp 0x14038bac8
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x14038be3f
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038bc85
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xd0], ebx
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x14038bc85
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14038bc85
mov ebx, dword [rsp + 0x3c]
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xd0], ebx
jmp 0x14038bc85
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, r15d
mov edx, 0x35
mov rcx, r12
call dbg.growOp3
mov dword [rsp + 0x4c], eax
jmp 0x14038bac8
sub dword [r13], 1
jne 0x14038bdb4
mov rcx, qword [r13 + 0x10]
mov rdx, r13
call sym.sqlite3DbFreeNN
jmp 0x14038bdb4
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 0xb
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x14038bb55
mov ebx, dword [rsi + 0x38]
jmp 0x14038bce2