Function at 0x1402a49b0
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, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov eax, dword [rsp + 0x1c0]
mov qword [rsp + 0x1a8], rdx
mov rdx, qword [rcx]
test ax, ax
mov ebx, r9d
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1b0], r8
mov word [rsp + 0x7e], r9w
mov rdx, qword [rdx]
je 0x1402a4a08
test byte [rdx + 0x60], 0x40
jne 0x1402a4eba
mov rdi, qword [rsp + 0x1a8]
mov esi, dword [rdi]
cmp si, 0x3f
ja 0x1402a4eba
mov ecx, esi
mov edx, 1
movzx r10d, si
shl rdx, cl
mov ecx, ebx
and cx, 0x803
cmp cx, 1
sbb r11d, r11d
add r11d, 0x183
cmp cx, 1
sbb edi, edi
add di, 0x183
sub rdx, 1
mov word [rsp + 0x90], di
mov r15, rdx
je 0x1402a548a
xor r13d, r13d
mov qword [rsp + 0x98], r15
xor r9d, r9d
xor ebp, ebp
lea rdi, [sym.exprNodeIsConstant]
mov r15d, r10d
mov qword [rsp + 0xa8], 0
mov r10, r13
movq xmm6, rdi
movzx edi, ax
movzx eax, ax
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xb0], edi
lea rdx, [sym.sqlite3SelectWalkFail]
mov edi, ebx
and di, 0x800
movq xmm1, rdx
mov qword [rsp + 0xa0], rax
mov word [rsp + 0xb4], di
mov edi, ebx
punpcklqdq xmm6, xmm1
and di, 0x80
mov dword [rsp + 0xc0], esi
mov word [rsp + 0x94], di
mov edi, ebx
and edi, 0x40
mov dword [rsp + 0xc8], r11d
mov word [rsp + 0x96], di
lea rdi, [0x1403266c0]
mov dword [rsp + 0xcc], ebx
jmp 0x1402a4b2e
mov rax, qword [rsp + 0x98]
cmp r10, rax
jae 0x1402a5711
cmp qword [rsp + 0xa0], r9
lea rax, [r9 + 1]
je 0x1402a571e
mov r9, rax
test r9, r9
mov eax, r9d
je 0x1402a4b42
mov rbx, qword [rbp + 8]
or qword [rsp + 0xa8], rbx
cmp dword [rsp + 0xb0], eax
jle 0x1402a544f
mov rax, qword [rsp + 0x1b0]
cmp word [rsp + 0xb4], 0
mov rax, qword [rax + 0x18]
mov rbp, qword [rax + r9*8]
jne 0x1402a4b08
mov eax, dword [rbp + 0x38]
test ah, 4
jne 0x1402a5463
cmp word [rsp + 0x94], 0
je 0x1402a4b89
xor r13d, r13d
mov word [rbp + 0x1e], r13w
movzx edx, byte [rbp + 0x10]
mov rsi, qword [rsp + 0x1a0]
imul rdx, rdx, 0x68
add rdx, qword [rsi + 8]
test r15d, r15d
mov esi, dword [rdx + 0x4c]
mov dword [rsp + 0x30], esi
je 0x1402a4f3e
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rbp
xor r13d, r13d
mov qword [rsp + 0x38], r9
lea rbx, [rax + 8]
mov rbp, rbx
mov qword [rsp + 0x40], rbx
mov rbx, r10
jmp 0x1402a4be9
add r13d, 1
add rbp, 0x20
cmp r15d, r13d
je 0x1402a4d7c
mov rsi, rbx
mov ecx, r13d
shr rsi, cl
and esi, 1
jne 0x1402a4bd8
mov rdx, qword [rbp]
test rdx, rdx
je 0x1402a4bd8
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1402a4c2c
test eax, 0x80000
je 0x1402a4ee0
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402a4bd8
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x1402a4c0a
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x1402a4bd8
mov eax, dword [rsp + 0x30]
cmp dword [rdx + 0x2c], eax
jne 0x1402a4bd8
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rdx
mov r12d, 0x101
not rax
mov qword [rsp + 0x48], rax
movzx eax, word [rdx + 0x30]
mov rdx, qword [rsp + 0x1a0]
mov byte [rsp + 0xf8], 0
mov dword [rsp + 0xf0], 0
mov word [rsp + 0xf9], r12w
add rdx, 0x70
cmp ax, 0xfffe
movq xmm0, rdx
mov edx, dword [rsp + 0xc8]
punpcklqdq xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov dword [rsp + 0xf4], edx
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0xfc], edx
je 0x1402a4bd8
lea r12, [rsp + 0xd0]
mov word [rsp + 0x128], ax
mov rcx, r12
call sym.whereScanNext
test rax, rax
je 0x1402a4bd8
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x50], r13d
xor r14d, r14d
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
nop
mov rdx, qword [rax + 0x28]
test r13, rdx
jne 0x1402a4d1f
test rdx, rdx
jne 0x1402a4d18
test byte [rax + 0x14], 0x82
jne 0x1402a5524
test r14, r14
cmove r14, rax
mov rcx, r12
call sym.whereScanNext
test rax, rax
jne 0x1402a4d00
test r14, r14
mov r13d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
je 0x1402a4bd8
movzx eax, word [r14 + 0x14]
cmp ax, 1
je 0x1402a5540
test al, 0x82
je 0x1402a4d5d
cmp word [rdx + 0x30], 0
jns 0x1402a5591
mov ecx, r13d
mov eax, 1
add r13d, 1
shl rax, cl
add rbp, 0x20
or rbx, rax
cmp r15d, r13d
jne 0x1402a4be9
mov rbp, qword [rsp + 0x28]
mov r10, rbx
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbp + 0x38]
test ah, 0x10
je 0x1402a4f47
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
mov rax, qword [rsp + 0xb8]
mov rsi, rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
mov r13, qword [rsp + 0x1a0]
mov rbp, rsi
mov r12d, 1
mov rsi, r10
movabs r14, 0x20000000ff
mov qword [rsp + 0x40], r9
not rax
mov qword [rsp + 0x30], rax
jmp 0x1402a4e36
mov rax, qword [rdx]
and rax, r14
cmp rax, 0xa7
je 0x1402a54d7
test dword [rdx + 4], 0x810000
jne 0x1402a4ef2
lea rcx, [r13 + 0x258]
mov qword [rsp + 0x28], rdx
call sym.sqlite3WhereExprUsageFull
mov rdx, qword [rsp + 0x28]
test rax, rax
je 0x1402a4ef2
test qword [rsp + 0x30], rax
je 0x1402a4e45
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
je 0x1402a4e5c
bt rsi, rbx
jb 0x1402a4e2a
mov rdx, qword [rbp]
test rdx, rdx
jne 0x1402a4de5
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
jne 0x1402a4e36
mov rbp, qword [rsp + 0x38]
mov r10, rsi
mov r9, qword [rsp + 0x40]
jmp 0x1402a4b08
mov rbp, r15
mov r15d, r9d
mov r9, qword [rsp + 0x88]
mov r10, r14
mov ebx, eax
or byte [rsp + 0x48], bl
cmp byte [rsp + 0x48], 0
jne 0x1402a51a5
mov r13, r10
mov r10d, r15d
mov r15, qword [rsp + 0x98]
mov esi, dword [rsp + 0xc0]
cmp r13, r15
je 0x1402a548a
lea ecx, [r10 - 1]
test ecx, ecx
jg 0x1402a5648
xor eax, eax
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1402a4c00
jmp 0x1402a4bd8
mov eax, 1
movups xmmword [rsp + 0xd8], xmm6
lea rcx, [rsp + 0xd0]
mov word [rsp + 0xf4], ax
mov dword [rsp + 0xf8], 0
call sym.walkExpr
cmp word [rsp + 0xf4], 0
je 0x1402a4e2a
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
jmp 0x1402a4e50
test ah, 0x10
jne 0x1402a56a2
test ah, 1
jne 0x1402a54bb
mov r14, qword [rbp + 0x20]
test r14, r14
je 0x1402a4eba
test byte [r14 + 0x64], 4
jne 0x1402a4eba
movzx ebx, byte [r14 + 0x62]
movzx esi, word [r14 + 0x60]
movzx r13d, word [r14 + 0x5e]
test bl, bl
mov byte [rsp + 0x48], bl
mov word [rsp + 0x6e], si
je 0x1402a5580
shr eax, 0xf
xor eax, 1
and eax, 1
test si, si
mov byte [rsp + 0x48], al
je 0x1402a4e85
mov rax, qword [rsp + 0x1a8]
xor ebx, ebx
mov r11, r14
xor r8d, r8d
mov dword [rsp + 0xc4], r9d
mov r14, r10
mov qword [rsp + 0x88], r9
mov r9d, r15d
mov r15, rbp
mov byte [rsp + 0xb7], 0
add rax, 8
mov byte [rsp + 0xb6], 0
mov qword [rsp + 0x70], rax
mov eax, ebx
mov word [rsp + 0x92], r13w
jmp 0x1402a503d
movzx r10d, word [r15 + 0x3e]
cmp r10d, r8d
jg 0x1402a504a
mov rbx, qword [r15 + 0x48]
mov rsi, qword [rbx + r8*8]
movzx r10d, word [rsi + 0x14]
test word [rsp + 0x90], r10w
je 0x1402a53b3
movzx esi, byte [rsp + 0x48]
xor edx, edx
test r10w, 0x180
cmovne esi, edx
mov byte [rsp + 0x48], sil
movzx edx, word [rsp + 0x6e]
add r8, 1
cmp edx, r8d
jle 0x1402a4e6e
movzx ecx, word [r15 + 0x18]
mov edx, r8d
cmp ecx, r8d
jg 0x1402a4ff0
test r9d, r9d
setg r13b
test r11, r11
je 0x1402a5402
mov rbx, qword [r11 + 0x38]
mov dword [rsp + 0x28], 0xffffffff
mov r10, qword [r11 + 8]
mov rsi, qword [r11 + 0x18]
movzx ebx, byte [rbx + r8]
movsx r10, word [r10 + r8*2]
and ebx, 1
cmp r10w, word [rsi + 0x34]
je 0x1402a50b8
cmp byte [rsp + 0x48], 0
movsx ebp, r10w
mov dword [rsp + 0x28], ebp
je 0x1402a50b8
test ebp, ebp
js 0x1402a5498
cmp ecx, edx
jg 0x1402a50b8
lea rcx, [r10 + r10*2]
mov r10, qword [rsi + 8]
lea rcx, [r10 + rcx*8]
test byte [rcx + 8], 0xf
setne byte [rsp + 0x48]
nop word [rax + rax]
test r13b, r13b
mov dword [rsp + 0x40], r8d
je 0x1402a541a
movzx r10d, word [rsp + 0x7e]
mov qword [rsp + 0x60], r15
xor esi, esi
mov r15, r14
mov r12, qword [rsp + 0x70]
mov byte [rsp + 0x6d], al
mov r14d, r9d
mov qword [rsp + 0x38], r11
mov byte [rsp + 0x7d], bl
and r10w, 0xc0
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x78], edx
jmp 0x1402a5111
add esi, 1
add r12, 0x20
cmp r14d, esi
jle 0x1402a5168
test bpl, bpl
je 0x1402a5168
mov rbx, r15
mov ecx, esi
mov ebp, r13d
shr rbx, cl
and ebx, 1
jne 0x1402a5100
mov rdx, qword [r12]
test rdx, rdx
mov rcx, rdx
je 0x1402a5100
nop dword [rax]
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x1402a51eb
test eax, 0x80000
je 0x1402a51d0
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1402a5130
add esi, 1
add r12, 0x20
mov ebp, r13d
cmp r14d, esi
jg 0x1402a510c
nop dword [rax]
movzx ebx, byte [rsp + 0x6d]
mov r10, r15
mov r15d, r14d
mov rbp, qword [rsp + 0x60]
movzx r13d, word [rsp + 0x92]
mov r9, qword [rsp + 0x88]
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x1402a519d
movzx eax, r13w
cmp eax, esi
jle 0x1402a4e81
test bl, bl
je 0x1402a4e90
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
test r15d, r15d
je 0x1402a4b08
mov rax, qword [rsp + 0x1a8]
lea rbx, [rax + 8]
jmp 0x1402a4da6
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1402a5156
mov eax, dword [rcx + 4]
test eax, 0x82000
jne 0x1402a513e
test r10w, r10w
setne bpl
cmp dword [rsp + 0x28], 0xffffffff
jl 0x1402a5378
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x1402a5100
mov eax, dword [rsp + 0x30]
cmp dword [rcx + 0x2c], eax
jne 0x1402a5100
movsx eax, word [rcx + 0x30]
mov ecx, dword [rsp + 0x28]
cmp eax, ecx
jne 0x1402a5100
cmp dword [rsp + 0x28], 0xffffffff
je 0x1402a529a
mov rax, qword [rsp + 0x1a0]
mov dword [rsp + 0x58], r10d
mov rax, qword [rax]
mov rcx, rax
mov qword [rsp + 0x80], rax
call sym.sqlite3ExprCollSeq
mov r10d, dword [rsp + 0x58]
test rax, rax
je 0x1402a543b
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x40]
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rax]
jmp 0x1402a5289
movzx edx, byte [rdi + rdx]
cmp byte [rdi + rax], dl
jne 0x1402a5100
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x1402a5278
test eax, eax
jne 0x1402a5285
cmp word [rsp + 0x94], 0
mov r9d, r14d
mov r14, r15
movzx eax, byte [rsp + 0x6d]
mov r15, qword [rsp + 0x60]
mov r11, qword [rsp + 0x38]
movzx ebx, byte [rsp + 0x7d]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x78]
je 0x1402a52d1
lea ecx, [r8 + 1]
mov word [r15 + 0x1e], cx
movsxd rcx, esi
mov r10, qword [rsp + 0x1a8]
shl rcx, 5
cmp word [rsp + 0x96], 0
movzx r10d, byte [r10 + rcx + 0x18]
jne 0x1402a5338
mov ecx, r10d
and ecx, 1
cmp byte [rsp + 0xb6], 0
jne 0x1402a54a7
mov ebp, ebx
mov byte [rsp + 0xb6], 1
xor ebp, ecx
cmp bl, cl
mov byte [rsp + 0xb7], bpl
je 0x1402a5338
movzx ecx, byte [rsp + 0xc4]
mov ebx, 1
shl rbx, cl
mov rcx, qword [rsp + 0x1d0]
or qword [rcx], rbx
and r10d, 2
je 0x1402a5353
movzx ecx, word [r15 + 0x18]
cmp ecx, edx
jne 0x1402a541a
or dword [r15 + 0x38], 0x80000
cmp dword [rsp + 0x28], 0xffffffff
mov edx, 1
mov ecx, esi
cmove eax, edx
mov edx, 1
shl rdx, cl
or r14, rdx
jmp 0x1402a502b
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x58], r10d
movsxd rax, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
shl rax, 5
add rax, qword [rdx + 0x50]
mov rdx, qword [rax + 8]
call sym.sqlite3ExprCompareSkip
mov r10d, dword [rsp + 0x58]
test eax, eax
jne 0x1402a5100
mov rdx, qword [r12]
jmp 0x1402a5230
test r9d, r9d
setg r13b
and r10d, 1
je 0x1402a5051
lea r10d, [r8 + 1]
mov rbp, qword [rsi]
cmp ecx, r10d
jle 0x1402a5051
lea r10, [r8 + 1]
jmp 0x1402a53ed
add r10, 1
cmp ecx, r10d
jle 0x1402a5051
mov rsi, qword [rbx + r10*8]
cmp qword [rsi], rbp
jne 0x1402a53e0
xor r13d, r13d
test r11, r11
jne 0x1402a505a
xor ebx, ebx
test r13b, r13b
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], 0xffffffff
jne 0x1402a50c6
mov rbp, r15
mov r10, r14
mov r15d, r9d
mov r9, qword [rsp + 0x88]
movzx r13d, word [rsp + 0x92]
mov ebx, eax
jmp 0x1402a5189
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
jmp 0x1402a525e
mov rbp, qword [rsp + 0x1c8]
mov eax, dword [rbp + 0x38]
test ah, 4
je 0x1402a4b76
cmp byte [rbp + 0x20], 0
mov esi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xcc]
je 0x1402a571e
and bx, 0x280
add bx, 0xff80
je 0x1402a571e
mov eax, esi
jmp 0x1402a4ebc
cmp dword [rsp + 0x28], 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x1402a50b8
xor bl, byte [rsp + 0xb7]
cmp bl, cl
jne 0x1402a541a
jmp 0x1402a5338
mov r11d, 1
xor r14d, r14d
xor r13d, r13d
mov byte [rsp + 0x48], 1
mov word [rsp + 0x6e], r11w
jmp 0x1402a4f9e
mov eax, dword [rdx + 0x2c]
cmp eax, dword [r13 + 0x260]
je 0x1402a5698
mov r9d, dword [r13 + 0x25c]
mov ecx, 1
cmp r9d, 1
jg 0x1402a550d
jmp 0x1402a4ef2
add rcx, 1
cmp rcx, r9
je 0x1402a4ef2
cmp eax, dword [r13 + rcx*4 + 0x260]
jne 0x1402a5500
mov eax, 1
shl rax, cl
jmp 0x1402a4e23
mov r14, rax
mov r13d, dword [rsp + 0x50]
movzx eax, word [r14 + 0x14]
mov rdx, qword [rsp + 0x48]
cmp ax, 1
jne 0x1402a4d4e
mov rax, qword [rsp + 0x28]
movzx ecx, word [rax + 0x3c]
test ecx, ecx
je 0x1402a4bd8
mov rdx, qword [rax + 0x48]
xor eax, eax
jmp 0x1402a5568
add eax, 1
add rdx, 8
cmp ecx, eax
je 0x1402a4bd8
cmp qword [rdx], r14
jne 0x1402a5559
cmp ecx, eax
jg 0x1402a4d5d
jmp 0x1402a4bd8
cmp word [rsp + 0x6e], 0
jne 0x1402a4f9e
jmp 0x1402a4e90
mov rax, qword [rsp + 0x1a0]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
call sym.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x48]
test rax, rax
mov r12, rax
je 0x1402a56b3
mov rax, qword [r14]
test byte [rax + 5], 4
mov r14, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
je 0x1402a5654
test byte [r14 + 5], 2
jne 0x1402a5682
test r9, r9
je 0x1402a55eb
test byte [r9 + 5], 2
jne 0x1402a5704
mov rdx, r14
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], rcx
call sym.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x48]
test rax, rax
mov r9, qword [rsp + 0x50]
je 0x1402a5704
mov r9, qword [rax]
lea rcx, [0x1403266c0]
mov r12, qword [r12]
jmp 0x1402a5631
movzx edx, byte [rcx + rdx]
cmp byte [rcx + rax], dl
jne 0x1402a4bd8
add rsi, 1
movzx eax, byte [r12 + rsi]
movzx edx, byte [r9 + rsi]
cmp eax, edx
jne 0x1402a5620
test eax, eax
jne 0x1402a562d
jmp 0x1402a4d5d
cmp ecx, 0x3f
jle 0x1402a56bf
mov eax, ecx
jmp 0x1402a4ebc
test byte [r9 + 5], 2
jne 0x1402a5704
test r14, r14
je 0x1402a566b
test byte [r14 + 5], 2
jne 0x1402a5682
mov rdx, r9
mov qword [rsp + 0x48], rcx
call sym.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x48]
test rax, rax
jne 0x1402a5610
mov rdx, r14
call sym.sqlite3ExprCollSeq
test rax, rax
je 0x1402a4bd8
jmp 0x1402a5610
mov eax, 1
jmp 0x1402a4e23
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
jmp 0x1402a4b08
mov rax, qword [rcx]
mov r12, qword [rax + 0x10]
jmp 0x1402a55bb
mov eax, 1
mov rdx, r13
shl rax, cl
not rdx
sub rax, 1
test rdx, rax
je 0x1402a564d
mov edx, 1
sub ecx, 1
je 0x1402a4eba
mov rax, rdx
mov r8, r13
shl rax, cl
not r8
sub rax, 1
test r8, rax
jne 0x1402a56df
mov eax, ecx
jmp 0x1402a4ebc
mov rdx, r9
call sym.sqlite3ExprCollSeq
jmp 0x1402a568a
mov esi, dword [rsp + 0xc0]
je 0x1402a548a
mov eax, 0xffffffff
jmp 0x1402a4ebc