Function at 0x14037ff80
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 0x14037ffd8
test byte [rdx + 0x60], 0x40
jne 0x14038048a
mov rdi, qword [rsp + 0x1a8]
mov esi, dword [rdi]
cmp si, 0x3f
ja 0x14038048a
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 0x140380a5a
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, [0x14047eee0]
mov dword [rsp + 0xcc], ebx
jmp 0x1403800fe
mov rax, qword [rsp + 0x98]
cmp r10, rax
jae 0x140380ce1
cmp qword [rsp + 0xa0], r9
lea rax, [r9 + 1]
je 0x140380cee
mov r9, rax
test r9, r9
mov eax, r9d
je 0x140380112
mov rbx, qword [rbp + 8]
or qword [rsp + 0xa8], rbx
cmp dword [rsp + 0xb0], eax
jle 0x140380a1f
mov rax, qword [rsp + 0x1b0]
cmp word [rsp + 0xb4], 0
mov rax, qword [rax + 0x18]
mov rbp, qword [rax + r9*8]
jne 0x1403800d8
mov eax, dword [rbp + 0x38]
test ah, 4
jne 0x140380a33
cmp word [rsp + 0x94], 0
je 0x140380159
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 0x14038050e
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 0x1403801b9
add r13d, 1
add rbp, 0x20
cmp r15d, r13d
je 0x14038034c
mov rsi, rbx
mov ecx, r13d
shr rsi, cl
and esi, 1
jne 0x1403801a8
mov rdx, qword [rbp]
test rdx, rdx
je 0x1403801a8
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1403801fc
test eax, 0x80000
je 0x1403804b0
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1403801a8
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x1403801da
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x1403801a8
mov eax, dword [rsp + 0x30]
cmp dword [rdx + 0x2c], eax
jne 0x1403801a8
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 0x1403801a8
lea r12, [rsp + 0xd0]
mov word [rsp + 0x128], ax
mov rcx, r12
call sym.whereScanNext
test rax, rax
je 0x1403801a8
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 0x1403802ef
test rdx, rdx
jne 0x1403802e8
test byte [rax + 0x14], 0x82
jne 0x140380af4
test r14, r14
cmove r14, rax
mov rcx, r12
call sym.whereScanNext
test rax, rax
jne 0x1403802d0
test r14, r14
mov r13d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
je 0x1403801a8
movzx eax, word [r14 + 0x14]
cmp ax, 1
je 0x140380b10
test al, 0x82
je 0x14038032d
cmp word [rdx + 0x30], 0
jns 0x140380b61
mov ecx, r13d
mov eax, 1
add r13d, 1
shl rax, cl
add rbp, 0x20
or rbx, rax
cmp r15d, r13d
jne 0x1403801b9
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 0x140380517
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 0x140380406
mov rax, qword [rdx]
and rax, r14
cmp rax, 0xa7
je 0x140380aa7
test dword [rdx + 4], 0x810000
jne 0x1403804c2
lea rcx, [r13 + 0x258]
mov qword [rsp + 0x28], rdx
call sym.sqlite3WhereExprUsageFull
mov rdx, qword [rsp + 0x28]
test rax, rax
je 0x1403804c2
test qword [rsp + 0x30], rax
je 0x140380415
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
je 0x14038042c
bt rsi, rbx
jb 0x1403803fa
mov rdx, qword [rbp]
test rdx, rdx
jne 0x1403803b5
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
jne 0x140380406
mov rbp, qword [rsp + 0x38]
mov r10, rsi
mov r9, qword [rsp + 0x40]
jmp 0x1403800d8
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 0x140380775
mov r13, r10
mov r10d, r15d
mov r15, qword [rsp + 0x98]
mov esi, dword [rsp + 0xc0]
cmp r13, r15
je 0x140380a5a
lea ecx, [r10 - 1]
test ecx, ecx
jg 0x140380c18
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 0x1403801d0
jmp 0x1403801a8
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 0x1403803fa
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
jmp 0x140380420
test ah, 0x10
jne 0x140380c72
test ah, 1
jne 0x140380a8b
mov r14, qword [rbp + 0x20]
test r14, r14
je 0x14038048a
test byte [r14 + 0x64], 4
jne 0x14038048a
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 0x140380b50
shr eax, 0xf
xor eax, 1
and eax, 1
test si, si
mov byte [rsp + 0x48], al
je 0x140380455
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 0x14038060d
movzx r10d, word [r15 + 0x3e]
cmp r10d, r8d
jg 0x14038061a
mov rbx, qword [r15 + 0x48]
mov rsi, qword [rbx + r8*8]
movzx r10d, word [rsi + 0x14]
test word [rsp + 0x90], r10w
je 0x140380983
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 0x14038043e
movzx ecx, word [r15 + 0x18]
mov edx, r8d
cmp ecx, r8d
jg 0x1403805c0
test r9d, r9d
setg r13b
test r11, r11
je 0x1403809d2
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 0x140380688
cmp byte [rsp + 0x48], 0
movsx ebp, r10w
mov dword [rsp + 0x28], ebp
je 0x140380688
test ebp, ebp
js 0x140380a68
cmp ecx, edx
jg 0x140380688
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 0x1403809ea
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 0x1403806e1
add esi, 1
add r12, 0x20
cmp r14d, esi
jle 0x140380738
test bpl, bpl
je 0x140380738
mov rbx, r15
mov ecx, esi
mov ebp, r13d
shr rbx, cl
and ebx, 1
jne 0x1403806d0
mov rdx, qword [r12]
test rdx, rdx
mov rcx, rdx
je 0x1403806d0
nop dword [rax]
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x1403807bb
test eax, 0x80000
je 0x1403807a0
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140380700
add esi, 1
add r12, 0x20
mov ebp, r13d
cmp r14d, esi
jg 0x1403806dc
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 0x14038076d
movzx eax, r13w
cmp eax, esi
jle 0x140380451
test bl, bl
je 0x140380460
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
test r15d, r15d
je 0x1403800d8
mov rax, qword [rsp + 0x1a8]
lea rbx, [rax + 8]
jmp 0x140380376
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140380726
mov eax, dword [rcx + 4]
test eax, 0x82000
jne 0x14038070e
test r10w, r10w
setne bpl
cmp dword [rsp + 0x28], 0xffffffff
jl 0x140380948
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x1403806d0
mov eax, dword [rsp + 0x30]
cmp dword [rcx + 0x2c], eax
jne 0x1403806d0
movsx eax, word [rcx + 0x30]
mov ecx, dword [rsp + 0x28]
cmp eax, ecx
jne 0x1403806d0
cmp dword [rsp + 0x28], 0xffffffff
je 0x14038086a
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 0x140380a0b
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 0x140380859
movzx edx, byte [rdi + rdx]
cmp byte [rdi + rax], dl
jne 0x1403806d0
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x140380848
test eax, eax
jne 0x140380855
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 0x1403808a1
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 0x140380908
mov ecx, r10d
and ecx, 1
cmp byte [rsp + 0xb6], 0
jne 0x140380a77
mov ebp, ebx
mov byte [rsp + 0xb6], 1
xor ebp, ecx
cmp bl, cl
mov byte [rsp + 0xb7], bpl
je 0x140380908
movzx ecx, byte [rsp + 0xc4]
mov ebx, 1
shl rbx, cl
mov rcx, qword [rsp + 0x1d0]
or qword [rcx], rbx
and r10d, 2
je 0x140380923
movzx ecx, word [r15 + 0x18]
cmp ecx, edx
jne 0x1403809ea
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 0x1403805fb
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 0x1403806d0
mov rdx, qword [r12]
jmp 0x140380800
test r9d, r9d
setg r13b
and r10d, 1
je 0x140380621
lea r10d, [r8 + 1]
mov rbp, qword [rsi]
cmp ecx, r10d
jle 0x140380621
lea r10, [r8 + 1]
jmp 0x1403809bd
add r10, 1
cmp ecx, r10d
jle 0x140380621
mov rsi, qword [rbx + r10*8]
cmp qword [rsi], rbp
jne 0x1403809b0
xor r13d, r13d
test r11, r11
jne 0x14038062a
xor ebx, ebx
test r13b, r13b
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], 0xffffffff
jne 0x140380696
mov rbp, r15
mov r10, r14
mov r15d, r9d
mov r9, qword [rsp + 0x88]
movzx r13d, word [rsp + 0x92]
mov ebx, eax
jmp 0x140380759
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
jmp 0x14038082e
mov rbp, qword [rsp + 0x1c8]
mov eax, dword [rbp + 0x38]
test ah, 4
je 0x140380146
cmp byte [rbp + 0x20], 0
mov esi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xcc]
je 0x140380cee
and bx, 0x280
add bx, 0xff80
je 0x140380cee
mov eax, esi
jmp 0x14038048c
cmp dword [rsp + 0x28], 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x140380688
xor bl, byte [rsp + 0xb7]
cmp bl, cl
jne 0x1403809ea
jmp 0x140380908
mov r11d, 1
xor r14d, r14d
xor r13d, r13d
mov byte [rsp + 0x48], 1
mov word [rsp + 0x6e], r11w
jmp 0x14038056e
mov eax, dword [rdx + 0x2c]
cmp eax, dword [r13 + 0x260]
je 0x140380c68
mov r9d, dword [r13 + 0x25c]
mov ecx, 1
cmp r9d, 1
jg 0x140380add
jmp 0x1403804c2
add rcx, 1
cmp rcx, r9
je 0x1403804c2
cmp eax, dword [r13 + rcx*4 + 0x260]
jne 0x140380ad0
mov eax, 1
shl rax, cl
jmp 0x1403803f3
mov r14, rax
mov r13d, dword [rsp + 0x50]
movzx eax, word [r14 + 0x14]
mov rdx, qword [rsp + 0x48]
cmp ax, 1
jne 0x14038031e
mov rax, qword [rsp + 0x28]
movzx ecx, word [rax + 0x3c]
test ecx, ecx
je 0x1403801a8
mov rdx, qword [rax + 0x48]
xor eax, eax
jmp 0x140380b38
add eax, 1
add rdx, 8
cmp ecx, eax
je 0x1403801a8
cmp qword [rdx], r14
jne 0x140380b29
cmp ecx, eax
jg 0x14038032d
jmp 0x1403801a8
cmp word [rsp + 0x6e], 0
jne 0x14038056e
jmp 0x140380460
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 0x140380c83
mov rax, qword [r14]
test byte [rax + 5], 4
mov r14, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
je 0x140380c24
test byte [r14 + 5], 2
jne 0x140380c52
test r9, r9
je 0x140380bbb
test byte [r9 + 5], 2
jne 0x140380cd4
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 0x140380cd4
mov r9, qword [rax]
lea rcx, [0x14047eee0]
mov r12, qword [r12]
jmp 0x140380c01
movzx edx, byte [rcx + rdx]
cmp byte [rcx + rax], dl
jne 0x1403801a8
add rsi, 1
movzx eax, byte [r12 + rsi]
movzx edx, byte [r9 + rsi]
cmp eax, edx
jne 0x140380bf0
test eax, eax
jne 0x140380bfd
jmp 0x14038032d
cmp ecx, 0x3f
jle 0x140380c8f
mov eax, ecx
jmp 0x14038048c
test byte [r9 + 5], 2
jne 0x140380cd4
test r14, r14
je 0x140380c3b
test byte [r14 + 5], 2
jne 0x140380c52
mov rdx, r9
mov qword [rsp + 0x48], rcx
call sym.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x48]
test rax, rax
jne 0x140380be0
mov rdx, r14
call sym.sqlite3ExprCollSeq
test rax, rax
je 0x1403801a8
jmp 0x140380be0
mov eax, 1
jmp 0x1403803f3
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
jmp 0x1403800d8
mov rax, qword [rcx]
mov r12, qword [rax + 0x10]
jmp 0x140380b8b
mov eax, 1
mov rdx, r13
shl rax, cl
not rdx
sub rax, 1
test rdx, rax
je 0x140380c1d
mov edx, 1
sub ecx, 1
je 0x14038048a
mov rax, rdx
mov r8, r13
shl rax, cl
not r8
sub rax, 1
test r8, rax
jne 0x140380caf
mov eax, ecx
jmp 0x14038048c
mov rdx, r9
call sym.sqlite3ExprCollSeq
jmp 0x140380c5a
mov esi, dword [rsp + 0xc0]
je 0x140380a5a
mov eax, 0xffffffff
jmp 0x14038048c