Function at 0x1402aa610
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
movups xmmword [rsp + 0x140], xmm6
mov qword [rsp + 0x1a8], rdx
mov edx, dword [rsp + 0x1c0]
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1b0], r8
mov dword [rsp + 0xc0], r9d
mov word [rsp + 0x7c], r9w
test dx, dx
je 0x1402aa66d
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x60], 0x40
jne 0x1402aab20
mov rax, qword [rsp + 0x1a8]
mov esi, dword [rax]
mov dword [rsp + 0xcc], esi
cmp si, 0x3f
ja 0x1402aab20
movzx eax, si
mov ecx, esi
mov dword [rsp + 0xc4], eax
mov eax, 1
shl rax, cl
movzx ecx, word [rsp + 0xc0]
and cx, 0x803
cmp cx, 1
sbb esi, esi
add esi, 0x183
cmp cx, 1
mov dword [rsp + 0xb4], esi
sbb esi, esi
add si, 0x183
sub rax, 1
mov word [rsp + 0x98], si
mov qword [rsp + 0x90], rax
je 0x1402aab8b
movzx eax, dx
xor r15d, r15d
mov qword [rsp + 0x80], 0
mov r14d, dword [rsp + 0xc4]
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0xc0]
mov qword [rsp + 0xa8], 0
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x88], 0
mov esi, eax
and si, 0x800
mov word [rsp + 0xb0], si
mov esi, eax
and eax, 0x40
and si, 0x80
mov word [rsp + 0xc8], ax
movzx eax, dx
mov word [rsp + 0x9a], si
lea rsi, [sym.exprNodeIsConstant]
mov qword [rsp + 0xa0], rax
lea rax, [sym.sqlite3SelectWalkFail]
movq xmm6, rsi
movq xmm1, rax
punpcklqdq xmm6, xmm1
jmp 0x1402aa7bf
cmp r15, qword [rsp + 0x90]
jae 0x1402ab2ad
mov rdi, qword [rsp + 0x80]
lea rax, [rdi + 1]
cmp qword [rsp + 0xa0], rdi
je 0x1402ab2a3
mov rsi, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov rdi, rax
mov rsi, qword [rsi + 8]
or qword [rsp + 0x88], rsi
mov dword [rsp + 0x30], edi
cmp dword [rsp + 0x9c], edi
jle 0x1402aab52
mov rax, qword [rsp + 0x1b0]
cmp word [rsp + 0xb0], 0
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rdi*8]
mov qword [rsp + 0x28], rax
jne 0x1402aa77b
mov edx, dword [rax + 0x38]
test dh, 4
jne 0x1402aab6b
cmp word [rsp + 0x9a], 0
je 0x1402aa80f
xor r9d, r9d
mov word [rax + 0x1e], r9w
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x1a0]
movzx eax, byte [rax + 0x10]
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
shl rax, 3
add rax, qword [rsi + 8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x58], eax
test r14d, r14d
je 0x1402ab1f8
mov rax, qword [rsp + 0x1a8]
xor ebp, ebp
mov r13d, ebp
add rax, 8
mov qword [rsp + 0x38], rax
mov rsi, rax
mov rax, qword [rsp + 0x88]
not rax
mov qword [rsp + 0x40], rax
jmp 0x1402aa881
add r13d, 1
add rsi, 0x20
cmp r14d, r13d
je 0x1402aa9f1
mov rdi, r15
mov ecx, r13d
shr rdi, cl
and edi, 1
jne 0x1402aa870
mov rbx, qword [rsi]
test rbx, rbx
je 0x1402aa870
nop word [rax + rax]
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x1402aa8cc
test eax, 0x80000
je 0x1402aab40
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1402aa870
mov eax, dword [rbx + 4]
test eax, 0x82000
jne 0x1402aa8aa
movzx eax, byte [rbx]
add eax, 0x59
test al, 0xfd
jne 0x1402aa870
mov eax, dword [rsp + 0x58]
cmp dword [rbx + 0x2c], eax
jne 0x1402aa870
mov rcx, qword [rsp + 0x1a0]
movzx eax, word [rbx + 0x30]
mov r8d, 0x100
mov dword [rsp + 0xf0], 0
mov word [rsp + 0xf8], r8w
add rcx, 0x70
mov byte [rsp + 0xfa], 1
movq xmm0, rcx
mov ecx, dword [rsp + 0xb4]
punpcklqdq xmm0, xmm0
mov dword [rsp + 0xf4], ecx
mov ecx, dword [rsp + 0x58]
movups xmmword [rsp + 0xd0], xmm0
pxor xmm0, xmm0
mov dword [rsp + 0xfc], ecx
movups xmmword [rsp + 0xe0], xmm0
cmp ax, 0xfffe
je 0x1402aa870
lea rbp, [rsp + 0xd0]
mov word [rsp + 0x128], ax
mov rcx, rbp
call sym.whereScanNext
test rax, rax
je 0x1402aa870
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x40]
xor r12d, r12d
nop
mov rdx, qword [rax + 0x28]
test rbx, rdx
jne 0x1402aa99f
test rdx, rdx
jne 0x1402aa998
test byte [rax + 0x14], 0x82
jne 0x1402ab125
test r12, r12
cmove r12, rax
mov rcx, rbp
call sym.whereScanNext
test rax, rax
jne 0x1402aa980
mov rbx, qword [rsp + 0x48]
test r12, r12
je 0x1402aa870
movzx eax, word [r12 + 0x14]
cmp ax, 1
je 0x1402ab240
test al, 0x82
jne 0x1402ab12d
mov ecx, r13d
mov eax, 1
add r13d, 1
add rsi, 0x20
shl rax, cl
or r15, rax
cmp r14d, r13d
jne 0x1402aa881
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x38]
test dh, 0x10
jne 0x1402aab98
test dh, 1
jne 0x1402aac78
mov rax, qword [rsp + 0x28]
mov r10, qword [rax + 0x20]
test r10, r10
je 0x1402aab20
test byte [r10 + 0x64], 4
jne 0x1402aab20
movzx eax, word [r10 + 0x5e]
movzx edi, byte [r10 + 0x62]
mov word [rsp + 0xca], ax
movzx eax, word [r10 + 0x60]
mov byte [rsp + 0x48], dil
mov dword [rsp + 0x5c], eax
test dil, dil
je 0x1402ab217
and dh, 0x80
je 0x1402ab224
test eax, eax
je 0x1402aaaba
mov byte [rsp + 0x48], 0
jmp 0x1402aac92
mov edx, eax
movzx ecx, byte [rsp + 0x7f]
xor cl, byte [rsp + 0xb3]
and edx, 1
cmp cl, dl
je 0x1402aaf84
nop dword [rax]
mov esi, dword [rsp + 0x58]
test esi, esi
je 0x1402ab056
movzx eax, word [rsp + 0xca]
cmp eax, esi
jg 0x1402ab056
cmp byte [rsp + 0x38], 0
jne 0x1402ab061
cmp byte [rsp + 0x48], 0
jne 0x1402ab061
cmp qword [rsp + 0x90], r15
je 0x1402aab8b
mov ecx, dword [rsp + 0xc4]
sub ecx, 1
test ecx, ecx
jle 0x1402aab20
cmp ecx, 0x3f
jg 0x1402ab281
mov eax, 1
mov rdx, r15
shl rax, cl
sub rax, 1
and rdx, rax
cmp rax, rdx
je 0x1402ab281
mov r8d, 1
jmp 0x1402aab1b
mov rax, r8
shl rax, cl
sub rax, 1
mov rdx, rax
and rdx, r15
cmp rdx, rax
je 0x1402ab281
sub ecx, 1
jne 0x1402aab02
xor eax, eax
movups 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 rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402aa8a0
jmp 0x1402aa870
mov rax, qword [rsp + 0x1c8]
mov edx, dword [rax + 0x38]
mov qword [rsp + 0x28], rax
test dh, 4
je 0x1402aa7fc
cmp byte [rax + 0x20], 0
je 0x1402ab295
movzx eax, word [rsp + 0xc0]
and ax, 0x280
cmp ax, 0x80
je 0x1402ab295
movzx eax, byte [rsp + 0xcc]
jmp 0x1402aab22
mov rsi, qword [rax + 8]
or qword [rsp + 0xa8], rsi
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0xa8]
xor ebx, ebx
mov rdi, qword [rsp + 0x1a0]
jmp 0x1402aac11
movabs rax, 0x20000000ff
and rax, qword [r12]
cmp rax, 0xa7
je 0x1402ab1a9
test dword [r12 + 4], 0x810000
jne 0x1402aac2e
lea rcx, [rdi + 0x258]
mov rdx, r12
call sym.sqlite3WhereExprUsageFull
test rax, rax
je 0x1402aac2e
mov rdx, rbp
not rdx
test rdx, rax
je 0x1402aac1f
add ebx, 1
add rsi, 0x20
cmp r14d, ebx
jle 0x1402aa77b
bt r15, rbx
jb 0x1402aac01
mov r12, qword [rsi]
test r12, r12
jne 0x1402aabbd
mov eax, 1
mov ecx, ebx
shl rax, cl
or r15, rax
jmp 0x1402aac01
mov eax, 1
mov rdx, r12
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0xf8], 0
mov word [rsp + 0xf4], ax
movups xmmword [rsp + 0xd8], xmm6
call sym.sqlite3WalkExprNN
cmp word [rsp + 0xf4], 0
je 0x1402aac01
mov eax, 1
mov ecx, ebx
shl rax, cl
or r15, rax
jmp 0x1402aac01
xor ecx, ecx
mov dword [rsp + 0x5c], 1
xor r10d, r10d
mov word [rsp + 0xca], cx
mov byte [rsp + 0x48], 1
movzx ecx, byte [rsp + 0x30]
mov eax, 1
xor r13d, r13d
mov qword [rsp + 0x50], 1
mov byte [rsp + 0x38], 0
mov r9d, dword [rsp + 0x58]
shl rax, cl
mov byte [rsp + 0xb3], 0
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xb2], 0
mov qword [rsp + 0x30], r10
jmp 0x1402aad28
movzx edx, word [rcx + 0x3e]
cmp edx, r13d
jg 0x1402aad40
mov rcx, qword [rcx + 0x48]
mov r8, qword [rcx + r13*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x98], dx
je 0x1402ab098
movzx esi, byte [rsp + 0x48]
test dx, 0x180
mov eax, 0
cmovne esi, eax
mov byte [rsp + 0x48], sil
add qword [rsp + 0x50], 1
add r13, 1
cmp dword [rsp + 0x5c], r13d
jle 0x1402aaaa4
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x40], r13d
movzx eax, word [rcx + 0x18]
cmp eax, r13d
jg 0x1402aacd8
test r14d, r14d
setg r12b
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1402ab0e6
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rdi + 8]
mov r10d, 0xffffffff
movzx ecx, byte [rcx + r13]
movsx rdx, word [rdx + r13*2]
and ecx, 1
mov byte [rsp + 0x7f], cl
mov rcx, qword [rdi + 0x18]
cmp dx, word [rcx + 0x34]
je 0x1402aadb0
cmp byte [rsp + 0x48], 0
movsx r10d, dx
je 0x1402aadb0
test r10d, r10d
js 0x1402ab102
cmp eax, dword [rsp + 0x40]
jg 0x1402aadb0
lea rax, [rdx + rdx*2]
mov rdx, qword [rcx + 8]
lea rax, [rdx + rax*8]
test byte [rax + 8], 0xf
setne byte [rsp + 0x48]
nop dword [rax]
test r12b, r12b
je 0x1402aaa88
lea rax, [r13*8]
mov qword [rsp + 0x70], r13
xor esi, esi
mov r13d, r9d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x1a8]
lea rbp, [rax + 8]
jmp 0x1402aadf9
add esi, 1
add rbp, 0x20
cmp r14d, esi
jle 0x1402aaa88
test dil, dil
je 0x1402aaa88
mov rbx, r15
mov ecx, esi
mov edi, r12d
shr rbx, cl
and ebx, 1
jne 0x1402aade0
mov r8, qword [rbp]
mov rdx, r8
test r8, r8
je 0x1402aade0
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1402aae53
test eax, 0x80000
je 0x1402aae40
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x1402aae18
mov edi, r12d
jmp 0x1402aade0
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x1402aae36
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x1402aae22
test byte [rsp + 0x7c], 0xc0
setne dil
cmp r10d, 0xffffffff
jl 0x1402aafd0
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x1402aade0
cmp dword [rdx + 0x2c], r13d
jne 0x1402aade0
movsx eax, word [rdx + 0x30]
cmp eax, r10d
jne 0x1402aade0
cmp r10d, 0xffffffff
je 0x1402aaf04
mov rax, qword [rsp + 0x1a0]
mov rdx, r8
mov dword [rsp + 0x78], r10d
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
call sym.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x78]
lea r11, [0x140344560]
test rax, rax
je 0x1402ab0f6
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x40]
mov rcx, qword [rsp + 0x60]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x1402aaef3
movzx edx, byte [r11 + rdx]
cmp byte [r11 + rax], dl
jne 0x1402aade0
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x1402aaee0
test eax, eax
jne 0x1402aaeef
cmp word [rsp + 0x9a], 0
mov r9d, r13d
mov r13, qword [rsp + 0x70]
je 0x1402aaf25
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x50]
mov word [rax + 0x1e], cx
mov rdi, qword [rsp + 0x1a8]
movsxd rax, esi
shl rax, 5
cmp word [rsp + 0xc8], 0
movzx eax, byte [rdi + rax + 0x18]
jne 0x1402aaf84
cmp byte [rsp + 0xb2], 0
jne 0x1402aaa68
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x7f]
je 0x1402ab110
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0xb8]
mov byte [rsp + 0xb3], 1
mov byte [rsp + 0xb2], 1
or qword [rdi], rcx
test al, 2
je 0x1402aafa2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + 0x18]
cmp eax, dword [rsp + 0x40]
jne 0x1402aaa88
or dword [rcx + 0x38], 0x80000
movzx edi, byte [rsp + 0x38]
cmp r10d, 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x38], dil
or r15, rax
jmp 0x1402aad13
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
shl rax, 5
add rax, qword [rcx + 0x50]
mov r8, qword [rax + 8]
test r8, r8
je 0x1402aade0
nop
mov eax, dword [r8 + 4]
test eax, 0x82000
je 0x1402ab01e
test eax, 0x80000
je 0x1402ab048
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x1402aade0
mov eax, dword [r8 + 4]
test eax, 0x82000
jne 0x1402aaffb
xor ecx, ecx
mov r9d, r13d
mov dword [rsp + 0x68], r10d
call sym.sqlite3ExprCompare.part.0
mov r10d, dword [rsp + 0x68]
test eax, eax
jne 0x1402aade0
mov r8, qword [rbp]
jmp 0x1402aae91
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x1402aaff0
jmp 0x1402aade0
cmp byte [rsp + 0x38], 0
je 0x1402aaaba
mov rsi, qword [rsp + 0x28]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xa8], rsi
test r14d, r14d
je 0x1402aa77b
mov rax, qword [rsp + 0x1a8]
add rax, 8
mov qword [rsp + 0x38], rax
jmp 0x1402aaba4
test r14d, r14d
setg r12b
and edx, 1
je 0x1402aad47
mov rdx, qword [rsp + 0x50]
mov r10, qword [r8]
cmp eax, edx
jg 0x1402ab0cc
jmp 0x1402aad47
add rdx, 1
cmp eax, edx
jle 0x1402aad47
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r10
jne 0x1402ab0c0
mov rdi, qword [rsp + 0x30]
xor r12d, r12d
test rdi, rdi
jne 0x1402aad55
mov byte [rsp + 0x7f], 0
mov r10d, 0xffffffff
jmp 0x1402aadb0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x1402aaec8
cmp r10d, 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x1402aadb0
mov byte [rsp + 0xb3], 0
mov byte [rsp + 0xb2], 1
jmp 0x1402aaf84
mov rbx, qword [rsp + 0x48]
mov r12, rax
cmp word [rbx + 0x30], 0
js 0x1402aa9d2
mov rax, qword [rsp + 0x1a0]
mov rdx, qword [rsi]
mov rbp, qword [rax]
mov rcx, rbp
call sym.sqlite3ExprCollSeq
mov rbx, rax
test rax, rax
je 0x1402ab288
mov rdx, qword [r12]
mov rcx, rbp
call sym.sqlite3ExprCompareCollSeq
lea r11, [0x140344560]
test rax, rax
je 0x1402aa870
mov r9, qword [rax]
mov rcx, qword [rbx]
jmp 0x1402ab193
movzx ebx, byte [r11 + rdx]
cmp byte [r11 + rax], bl
jne 0x1402aa870
add rdi, 1
movzx eax, byte [rcx + rdi]
movzx edx, byte [r9 + rdi]
cmp eax, edx
jne 0x1402ab180
test eax, eax
jne 0x1402ab18f
jmp 0x1402aa9d2
mov r8d, dword [r12 + 0x2c]
cmp r8d, dword [rdi + 0x260]
je 0x1402ab277
movsxd rdx, dword [rdi + 0x25c]
cmp edx, 1
jle 0x1402aac2e
mov eax, 1
jmp 0x1402ab1df
add rax, 1
cmp rax, rdx
je 0x1402aac2e
mov ecx, eax
cmp r8d, dword [rdi + rax*4 + 0x260]
jne 0x1402ab1d2
mov eax, 1
shl rax, cl
jmp 0x1402aabf1
test dh, 0x10
je 0x1402aaa02
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rdi + 8]
or qword [rsp + 0xa8], rsi
jmp 0x1402aa77b
test eax, eax
jne 0x1402aac92
jmp 0x1402aaaba
mov byte [rsp + 0x48], 1
test eax, eax
jne 0x1402aac92
jmp 0x1402ab061
mov rax, qword [rsp + 0x28]
movzx edx, word [rax + 0x3c]
test dx, dx
je 0x1402aa870
mov rax, qword [rax + 0x48]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
jmp 0x1402ab26d
add rax, 8
cmp rdx, rax
je 0x1402aa870
cmp qword [rax], r12
jne 0x1402ab260
jmp 0x1402aa9d2
mov eax, 1
jmp 0x1402aabf6
mov eax, ecx
jmp 0x1402aab22
mov rax, qword [rbp]
mov rbx, qword [rax + 0x10]
jmp 0x1402ab15a
cmp qword [rsp + 0x90], r15
je 0x1402aab8b
mov eax, 0xffffffff
jmp 0x1402aab22
jne 0x1402ab2a3
jmp 0x1402aab8b