Function at 0x1401b3a00
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, 0x88
movups xmmword [rsp + 0x70], xmm6
mov ebx, dword [r8 + 0x1c]
mov rax, qword [rsp + 0xf0]
mov r12, qword [rcx + 0x10]
mov r14, qword [r8]
mov r13, qword [rdx + 0x20]
mov dword [rsp + 0x48], ebx
mov ebx, dword [rcx + 0x44]
mov rbp, rcx
mov rdi, r8
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov dword [rsp + 0x5c], ebx
sub ebx, 1
mov dword [rcx + 0x44], ebx
movzx ecx, byte [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3c], r9d
lea r9, str.RIGHT_PART_OF
mov byte [rsp + 0x47], cl
mov dword [rsp + 0x68], eax
mov eax, dword [r8 + 8]
lea r8, str.USE_TEMP_B_TREE_FOR__sORDER_BY
mov dword [rsp + 0x4c], ecx
mov rcx, rbp
test eax, eax
lea rax, [0x140330c0e]
cmovle r9, rax
xor edx, edx
call sym.sqlite3VdbeExplain
mov r9d, dword [rdi + 0x14]
test r9d, r9d
jne 0x1401b4258
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x40], eax
movzx eax, byte [rsp + 0x47]
sub eax, 9
cmp al, 1
jbe 0x1401b3ab9
cmp dword [rsp + 0x4c], 0xd
jne 0x1401b3c78
cmp dword [rsp + 0x4c], 0xa
je 0x1401b3ce0
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov r15d, dword [rax + 0xc]
mov eax, dword [rsp + 0x3c]
sub eax, 1
mov dword [rsp + 0x60], eax
mov r14d, dword [r14]
sub r14d, dword [rdi + 8]
lea r10d, [r14 + 1]
test byte [rdi + 0x24], 1
je 0x1401b4180
mov eax, dword [rbp + 0x38]
movd xmm6, dword [rbp + 0x34]
mov r11d, dword [rdi + 0x14]
lea ebx, [rax + 1]
movd eax, xmm6
add eax, 1
mov dword [rbp + 0x38], ebx
mov dword [rbp + 0x34], eax
mov eax, dword [rsp + 0x3c]
lea esi, [rax + r10]
test r11d, r11d
jne 0x1401b3d10
mov dword [rsp + 0x20], esi
mov edx, 0x79
mov r9d, ebx
mov rcx, r12
movd r8d, xmm6
call sym.sqlite3VdbeAddOp3
movsxd rdx, dword [r12 + 0x90]
cmp dword [r12 + 0x94], edx
jle 0x1401b3d7c
lea eax, [rdx + 1]
mov esi, dword [rsp + 0x40]
lea rdx, [rdx + rdx*2]
mov dword [r12 + 0x90], eax
mov dword [rsp + 0x64], eax
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], esi
mov esi, dword [rsp + 0x48]
mov dword [rax + 0xc], 0
mov dword [rax + 8], esi
mov qword [rax + 0x10], 0
mov dword [rax], 0x22
mov r8d, dword [rsp + 0x40]
mov r9d, ebx
mov edx, 0x85
mov rcx, r12
movd dword [rsp + 0x20], xmm6
call sym.sqlite3VdbeAddOp3
mov ebx, dword [rsp + 0x3c]
lea esi, [r14 - 1]
test ebx, ebx
jle 0x1401b4240
lea edx, [rbx - 1]
lea rax, [r13 + 0x20]
shl rdx, 5
lea rdx, [r13 + rdx + 0x40]
nop
cmp word [rax], 1
adc esi, 0
add rax, 0x20
cmp rax, rdx
jne 0x1401b3bd0
movsxd rbx, dword [rsp + 0x60]
jmp 0x1401b3c58
sub r9d, 1
movsxd rax, dword [r12 + 0x90]
lea edx, [r15 + rbx]
cmp eax, dword [r12 + 0x94]
jge 0x1401b3db0
lea ecx, [rax + 1]
movdqu xmm0, xmm6
movd xmm1, r9d
sub rbx, 1
mov dword [r12 + 0x90], ecx
lea rcx, [rax + rax*2]
punpckldq xmm0, xmm1
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 0xc], edx
mov qword [rax + 0x10], 0
mov dword [rax], 0x5e
movq qword [rax + 4], xmm0
test ebx, ebx
js 0x1401b3dd8
mov rax, rbx
shl rax, 5
movzx r9d, word [r13 + rax + 0x20]
test r9w, r9w
jne 0x1401b3bf0
mov r9d, esi
sub esi, 1
jmp 0x1401b3bf4
movzx ecx, byte [rsp + 0x47]
movzx eax, byte [rbp + 0x1f]
and ecx, 0xfffffffd
test al, al
je 0x1401b43e0
lea edx, [rax - 1]
movzx r8d, dl
mov byte [rbp + 0x1f], dl
mov r11d, dword [rbp + r8*4 + 0xe8]
mov dword [rsp + 0x58], r11d
cmp cl, 0xc
jne 0x1401b4390
test dl, dl
je 0x1401b43f2
sub eax, 2
mov dword [rsp + 0x60], 0xffffffff
mov byte [rbp + 0x1f], al
movzx eax, al
mov dword [rsp + 0x3c], 0
mov r15d, dword [rbp + rax*4 + 0xe8]
jmp 0x1401b3ae0
mov r15d, dword [rsi + 0xc]
test r15d, r15d
je 0x1401b3ac4
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov edx, 0x4b
mov rcx, r12
mov r9d, dword [rax + 0xc]
call sym.sqlite3VdbeAddOp3.constprop.0
jmp 0x1401b3ac4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf
mov rcx, r12
call sym.sqlite3VdbeAddOp3.constprop.0
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov rcx, r12
mov edx, 0x79
movd r8d, xmm6
mov dword [rsp + 0x64], eax
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x64]
movsxd rdx, dword [r12 + 0x90]
test r10d, r10d
je 0x1401b3b43
mov rcx, qword [r12]
lea rax, [0x1402ba140]
cmp byte [rcx + 0x67], 0
je 0x1401b4370
mov dword [rax + 8], edx
cmp dword [r12 + 0x94], edx
jg 0x1401b3b51
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x48]
mov edx, 0x22
mov rcx, r12
mov r8d, dword [rsp + 0x40]
call sym.growOp3
add eax, 1
mov dword [rsp + 0x64], eax
jmp 0x1401b3b93
mov dword [rsp + 0x20], edx
movd r8d, xmm6
mov rcx, r12
sub rbx, 1
mov edx, 0x5e
call sym.growOp3
test ebx, ebx
jns 0x1401b3c58
nop word [rax + rax]
movzx eax, byte [rsp + 0x47]
sub eax, 0xa
cmp al, 5
ja case.0x1401b3df9.3
lea rdx, [0x140333798]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], r15d
mov r9d, r14d
movd r8d, xmm6
mov rcx, r12
mov edx, 0x5e
call sym.sqlite3VdbeAddOp3
mov esi, dword [rsp + 0x58]
mov ebx, dword [rsp + 0x68]
mov rcx, r12
mov edx, 0x7f
mov r9d, esi
mov r8d, ebx
call sym.sqlite3VdbeAddOp3.constprop.0
mov dword [rsp + 0x20], esi
mov r9d, r15d
mov r8d, ebx
mov edx, pe_nt_image_headers64
mov rcx, r12
call sym.sqlite3VdbeAddOp3
movsxd rax, dword [r12 + 0x90]
test eax, eax
jle case.0x1401b3df9.0
mov rcx, qword [r12 + 0x88]
lea rax, [rax + rax*2]
mov r8d, 8
lea rax, [rcx + rax*8]
mov word [rax - 0x16], r8w
mov edx, dword [rsp + 0x58]
test edx, edx
je 0x1401b3ea8
cmp dword [rsp + 0x4c], 0xb
je 0x1401b3ff0
movzx eax, byte [rbp + 0x1f]
test r15d, r15d
jne 0x1401b4350
cmp al, 7
ja 0x1401b3ea8
mov esi, dword [rsp + 0x58]
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe8], esi
mov rcx, qword [r12 + 0x18]
mov r8d, dword [rsp + 0x5c]
mov eax, dword [rcx + 0x44]
neg r8d
add eax, dword [rcx + 0x48]
js 0x1401b4320
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd r8, r8d
mov dword [rax + r8*4], edx
movsxd rax, dword [r12 + 0x90]
mov edx, dword [r12 + 0x94]
test byte [rdi + 0x24], 1
je 0x1401b40d8
cmp eax, edx
jge 0x1401b4418
lea edx, [rax + 1]
mov esi, dword [rsp + 0x40]
mov dword [r12 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], esi
mov esi, dword [rsp + 0x64]
mov dword [rax + 0xc], 0
mov dword [rax + 8], esi
mov qword [rax + 0x10], 0
mov dword [rax], 0x25
mov r8d, dword [rdi + 0x10]
test r8d, r8d
jne 0x1401b412b
mov rcx, qword [r12 + 0x18]
mov r8d, dword [rsp + 0x48]
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
not r8d
js 0x1401b4330
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd r8, r8d
mov dword [rax + r8*4], edx
movups xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov esi, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov r8d, r15d
mov rcx, r12
mov r14d, dword [rsp + 0x3c]
mov edx, 0x61
mov rbx, qword [rax + 0x18]
mov dword [rsp + 0x20], esi
mov r9d, r14d
call sym.sqlite3VdbeAddOp3
mov r9d, r14d
mov r8, rbx
mov rcx, r12
mov edx, eax
call sym.sqlite3VdbeChangeP4
mov dword [rsp + 0x28], r14d
mov r9d, esi
mov rcx, r12
mov dword [rsp + 0x20], r15d
mov r8d, dword [rsp + 0x68]
mov edx, 0x8a
call sym.sqlite3VdbeAddOp4Int
test esi, esi
je 0x1401b3ea8
cmp dword [rsp + 0x3c], 1
movzx eax, byte [rbp + 0x1f]
je 0x1401b3e8a
mov esi, dword [rsp + 0x3c]
cmp esi, dword [rbp + 0x28]
jle 0x1401b3e93
movd xmm0, esi
movd xmm2, r15d
punpckldq xmm0, xmm2
movq qword [rbp + 0x28], xmm0
jmp 0x1401b3e93
mov rax, qword [rsp + 0x50]
mov esi, dword [rax + 8]
movzx eax, byte [rbp + 0x1f]
test al, al
je 0x1401b43d0
sub eax, 1
mov byte [rbp + 0x1f], al
movzx eax, al
mov ebx, dword [rbp + rax*4 + 0xe8]
mov r9d, dword [rsp + 0x3c]
mov eax, esi
mov dword [rsp + 0x20], ebx
mov edx, 0x61
shr eax, 0x1f
mov rcx, r12
sub r9d, eax
lea r8d, [rax + r15]
call sym.sqlite3VdbeAddOp3
test esi, esi
js 0x1401b4471
mov dword [rsp + 0x28], esi
mov r8d, dword [rsp + 0x68]
mov r9d, ebx
mov rcx, r12
mov dword [rsp + 0x20], r15d
mov edx, 0x8a
call sym.sqlite3VdbeAddOp4Int
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1401b3ea8
jmp 0x1401b3e86
cmp dword [rsp + 0x4c], 9
je 0x1401b43b0
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov edx, 0xc
mov rcx, r12
mov r8d, dword [rax + 4]
call sym.sqlite3VdbeAddOp3.constprop.0
jmp case.0x1401b3df9.0
cmp eax, edx
jge 0x1401b4440
lea edx, [rax + 1]
mov esi, dword [rsp + 0x40]
mov dword [r12 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], esi
mov esi, dword [rsp + 0x64]
mov dword [rax], 0x27
mov r8d, dword [rdi + 0x10]
mov dword [rax + 8], esi
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
test r8d, r8d
je 0x1401b3f41
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jge 0x1401b4490
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 dword [rax + 4], r8d
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x43
jmp 0x1401b3f41
movsxd rax, dword [r12 + 0x90]
cmp eax, dword [r12 + 0x94]
jge 0x1401b44ad
lea ecx, [rax + 1]
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
mov dword [r12 + 0x90], ecx
lea rax, [rax + rdx*8]
mov dword [rsp + 0x64], ecx
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov dword [rax + 8], edx
mov dword [rax + 4], ecx
movd xmm6, ecx
mov qword [rax + 0x10], 0
mov dword [rax], 0x23
mov r8d, dword [rsi + 0xc]
mov r14d, r10d
test r8d, r8d
jle 0x1401b3bae
mov dword [rsp + 0x20], 1
mov r9d, ebx
mov edx, 0x3b
mov rcx, r12
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsi + 0xc]
test r10d, r10d
jle 0x1401b3bae
mov r8d, dword [rsi + 8]
mov r9d, 0xffffffff
mov rcx, r12
lea esi, [r14 - 1]
mov edx, 0x56
call sym.sqlite3VdbeAddOp3.constprop.0
mov ebx, dword [rsp + 0x3c]
test ebx, ebx
jg 0x1401b3bbe
nop dword [rax + rax]
mov r9d, dword [rsp + 0x60]
test r9d, r9d
js 0x1401b3dd8
jmp 0x1401b3be0
movsxd rcx, dword [r12 + 0x90]
mov edx, dword [r12 + 0x94]
mov r8d, dword [rdi + 0x10]
cmp ecx, edx
jge 0x1401b450a
lea eax, [rcx + 1]
lea r10, [rcx + rcx*2]
mov rcx, qword [r12 + 0x88]
mov dword [r12 + 0x90], eax
lea rcx, [rcx + r10*8]
mov dword [rcx + 4], r8d
mov dword [rcx + 8], r9d
mov dword [rcx + 0xc], 0
mov qword [rcx + 0x10], 0
mov dword [rcx], 0xa
cmp eax, edx
jge 0x1401b44e8
lea edx, [rax + 1]
cdqe
mov dword [r12 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rdx*8]
mov edx, dword [rsp + 0x48]
mov dword [rax + 0xc], 0
mov dword [rax + 8], edx
mov qword [rax + 0x10], 0
mov qword [rax], 9
mov rcx, qword [r12 + 0x18]
mov r8d, dword [rdi + 0x14]
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
not r8d
js 0x1401b4464
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd r8, r8d
mov dword [rax + r8*4], edx
jmp 0x1401b3a9b
mov rdx, r12
call sym.resizeResolveLabel
jmp 0x1401b3ed4
movups xmm6, xmmword [rsp + 0x70]
mov rdx, r12
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.resizeResolveLabel
cmp al, 7
ja 0x1401b3ea8
lea edx, [rax + 1]
mov byte [rbp + 0x1f], dl
mov dword [rbp + rax*4 + 0xe8], r15d
movzx eax, dl
jmp 0x1401b3e93
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
jmp 0x1401b3d6e
mov r11d, dword [rsp + 0x3c]
mov rcx, rbp
mov edx, r11d
call sym.sqlite3GetTempRange
mov r15d, eax
lea eax, [r11 - 1]
mov dword [rsp + 0x60], eax
jmp 0x1401b3ae0
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x3c]
mov edx, 0x54
mov rcx, r12
mov r8d, dword [rax + 0xc]
call sym.sqlite3VdbeAddOp3.constprop.0
jmp 0x1401b4094
mov eax, dword [rbp + 0x38]
lea ebx, [rax + 1]
mov dword [rbp + 0x38], ebx
jmp 0x1401b404c
mov eax, dword [rbp + 0x38]
add eax, 1
mov dword [rsp + 0x58], eax
mov dword [rbp + 0x38], eax
cmp cl, 0xc
jne 0x1401b4390
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x3c], 0
lea r15d, [rax + 1]
mov dword [rbp + 0x38], r15d
jmp 0x1401b3ae0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x64]
mov edx, 0x25
mov rcx, r12
mov r8d, dword [rsp + 0x40]
call sym.growOp3
jmp 0x1401b3f34
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x64]
mov edx, 0x27
mov rcx, r12
mov r8d, dword [rsp + 0x40]
call sym.growOp3
jmp 0x1401b3f34
mov rdx, r12
call sym.resizeResolveLabel
jmp 0x1401b3a9b
mov dword [rsp + 0x20], r15d
mov r8d, dword [rsp + 0x68]
mov r9d, ebx
mov rcx, r12
mov edx, pe_nt_image_headers64
call sym.sqlite3VdbeAddOp3
jmp 0x1401b4094
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x43
mov rcx, r12
call sym.growOp3
jmp 0x1401b3f41
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x48]
mov edx, 0x23
mov rcx, r12
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x6c], r10d
call sym.growOp3
mov r10d, dword [rsp + 0x6c]
movd xmm6, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x64], eax
jmp 0x1401b41dc
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov edx, 9
mov rcx, r12
mov dword [rsp + 0x20], 0
call sym.growOp3
jmp 0x1401b42ee
mov dword [rsp + 0x20], 0
mov edx, 0xa
mov rcx, r12
call sym.growOp3
mov eax, dword [r12 + 0x90]
mov edx, dword [r12 + 0x94]
jmp 0x1401b42ac