Function at 0x140160fd0
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, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov eax, dword [rsp + 0x170]
mov qword [rsp + 0x158], rdx
mov rdx, qword [rcx]
test ax, ax
mov esi, r9d
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], r8
mov word [rsp + 0x5e], r9w
mov rdx, qword [rdx]
je 0x140161028
test byte [rdx + 0x60], 0x40
jne 0x140161307
mov rdi, qword [rsp + 0x158]
mov ebx, dword [rdi]
cmp bx, 0x3f
ja 0x140161307
movzx edi, bx
mov edx, 1
mov ecx, ebx
shl rdx, cl
mov dword [rsp + 0xb8], edi
xor edi, edi
test esi, 0x803
setne dil
add di, 0x182
sub rdx, 1
mov word [rsp + 0x76], di
mov qword [rsp + 0x88], rdx
je 0x140161981
xor r11d, r11d
xor r12d, r12d
xor r14d, r14d
mov dword [rsp + 0xb4], ebx
lea rdi, [dbg.exprNodeIsConstant]
mov r9, r11
mov r15d, dword [rsp + 0xb8]
mov qword [rsp + 0x98], 0
lea rdx, [dbg.sqlite3SelectWalkFail]
movq xmm6, rdi
movzx edi, ax
mov qword [rsp + 0xa8], 0
movq xmm0, rdx
movzx eax, ax
mov dword [rsp + 0xb0], edi
mov qword [rsp + 0x90], rax
punpcklqdq xmm6, xmm0
mov dword [rsp + 0xbc], esi
jmp 0x14016110f
mov rax, qword [rsp + 0x88]
cmp r14, rax
jae 0x140161b4a
mov rdi, qword [rsp + 0x90]
lea rax, [r12 + 1]
cmp r12, rdi
je 0x140161b40
mov r12, rax
test r12, r12
mov eax, r12d
je 0x140161123
mov rsi, qword [r9 + 8]
or qword [rsp + 0x98], rsi
cmp dword [rsp + 0xb0], eax
jle 0x140161944
mov rax, qword [rsp + 0x160]
test word [rsp + 0x5e], 0x800
mov rax, qword [rax + 0x18]
mov r9, qword [rax + r12*8]
jne 0x1401610e5
mov eax, dword [r9 + 0x38]
test ah, 4
jne 0x140161959
movzx edi, word [rsp + 0x5e]
and di, 0x80
mov word [rsp + 0x80], di
je 0x140161171
xor esi, esi
mov word [r9 + 0x1e], si
movzx edx, byte [r9 + 0x10]
mov rdi, qword [rsp + 0x150]
imul rdx, rdx, 0x68
add rdx, qword [rdi + 8]
test r15d, r15d
mov edi, dword [rdx + 0x4c]
mov dword [rsp + 0x30], edi
je 0x14016141f
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x38], r12
xor esi, esi
mov r12d, r15d
lea rdi, [rax + 8]
mov rbp, rdi
mov r15, rdi
mov rdi, r9
nop dword [rax]
mov rbx, r14
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x140161200
mov r13, qword [rbp]
test r13, r13
jne 0x1401611dd
jmp 0x140161200
mov rax, qword [r13 + 0x20]
mov r13, qword [rax + 8]
test r13, r13
je 0x140161200
mov eax, dword [r13 + 4]
test eax, 0x82000
je 0x140161328
test eax, 0x80000
jne 0x1401611d0
mov r13, qword [r13 + 0x10]
test r13, r13
jne 0x1401611dd
nop dword [rax]
add esi, 1
add rbp, 0x20
cmp r12d, esi
jne 0x1401611b8
mov r9, rdi
mov rdi, r15
mov r15d, r12d
mov r12, qword [rsp + 0x38]
mov eax, dword [r9 + 0x38]
test ah, 0x10
je 0x140161428
mov rsi, qword [r9 + 8]
or qword [rsp + 0xa8], rsi
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x38], r12
mov rsi, rdi
mov r12, r14
xor ebx, ebx
mov r13d, 1
mov r14, r9
lea rbp, [rax + 0x258]
mov rax, qword [rsp + 0xa8]
not rax
mov qword [rsp + 0x30], rax
jmp 0x140161291
mov rdx, rdi
mov rcx, rbp
call sym.sqlite3WhereExprUsageNN
test rax, rax
je 0x1401613d0
test qword [rsp + 0x30], rax
je 0x14016129f
add ebx, 1
add rsi, 0x20
cmp r15d, ebx
je 0x1401612b6
bt r12, rbx
jb 0x140161285
mov rdi, qword [rsi]
test rdi, rdi
jne 0x14016126a
mov rax, r13
mov ecx, ebx
shl rax, cl
or r12, rax
add ebx, 1
add rsi, 0x20
cmp r15d, ebx
jne 0x140161291
mov r9, r14
mov r14, r12
mov r12, qword [rsp + 0x38]
jmp 0x1401610e5
mov r12, qword [rsp + 0x78]
mov r9, r13
or byte [rsp + 0x48], dl
cmp byte [rsp + 0x48], 0
jne 0x140161664
mov rax, qword [rsp + 0x88]
mov ebx, dword [rsp + 0xb4]
cmp r14, rax
je 0x140161981
mov ecx, dword [rsp + 0xb8]
sub ecx, 1
test ecx, ecx
jg 0x140161a79
xor eax, eax
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [r13]
add eax, 0x59
test al, 0xfd
jne 0x140161200
mov eax, dword [rsp + 0x30]
cmp dword [r13 + 0x2c], eax
jne 0x140161200
mov rax, qword [rsp + 0x150]
mov r9, qword [rsp + 0x98]
movsx r8d, word [r13 + 0x30]
mov qword [rsp + 0x28], 0
mov edx, dword [rsp + 0x30]
lea rcx, [rax + 0x70]
movzx eax, word [rsp + 0x76]
not r9
mov dword [rsp + 0x20], eax
call dbg.sqlite3WhereFindTerm
test rax, rax
mov r8, rax
je 0x140161200
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x140161a92
test al, 0x82
mov qword [rsp + 0x40], r8
je 0x1401613ac
cmp word [r13 + 0x30], 0
jns 0x1401619db
mov ecx, esi
mov eax, 1
add esi, 1
shl rax, cl
add rbp, 0x20
or r14, rax
cmp r12d, esi
jne 0x1401611b8
jmp 0x14016120c
mov eax, 1
mov rdx, rdi
movups xmmword [rsp + 0xc8], xmm6
lea rcx, [rsp + 0xc0]
mov word [rsp + 0xe4], ax
mov dword [rsp + 0xe8], 0
call dbg.walkExpr
cmp word [rsp + 0xe4], 0
je 0x140161285
mov rax, r13
mov ecx, ebx
shl rax, cl
or r12, rax
jmp 0x1401612aa
test ah, 0x10
jne 0x140161adc
test ah, 1
jne 0x1401619c2
mov r11, qword [r9 + 0x20]
test r11, r11
je 0x140161307
test byte [r11 + 0x64], 4
jne 0x140161307
movzx esi, byte [r11 + 0x62]
movzx edi, word [r11 + 0x60]
movzx ebx, word [r11 + 0x5e]
test sil, sil
mov byte [rsp + 0x48], sil
mov word [rsp + 0x5c], di
je 0x140161a68
shr eax, 0xf
xor eax, 1
and eax, 1
test di, di
mov byte [rsp + 0x48], al
je 0x1401612d2
mov eax, 1
mov ecx, r12d
xor r13d, r13d
mov qword [rsp + 0x78], r12
shl rax, cl
xor edx, edx
mov byte [rsp + 0x87], 0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x158]
mov byte [rsp + 0x83], 0
mov word [rsp + 0x84], bx
add rax, 8
mov qword [rsp + 0x68], rax
mov rax, r9
mov r9, r13
mov r13, rax
jmp 0x140161521
movzx eax, word [r13 + 0x3e]
cmp eax, r9d
jg 0x14016152e
mov rbx, qword [r13 + 0x48]
mov rsi, qword [rbx + r9*8]
movzx eax, word [rsi + 0x14]
test word [rsp + 0x76], ax
je 0x1401618c0
movzx edi, byte [rsp + 0x48]
test ax, 0x180
mov eax, 0
cmovne edi, eax
mov byte [rsp + 0x48], dil
movzx eax, word [rsp + 0x5c]
add r9, 1
cmp eax, r9d
jle 0x1401612c6
movzx ecx, word [r13 + 0x18]
mov r8d, r9d
cmp ecx, r9d
jg 0x1401614d8
test r15d, r15d
setg bpl
test r11, r11
je 0x140161908
mov rax, qword [r11 + 8]
mov r12d, 0xffffffff
mov rsi, qword [r11 + 0x18]
movsx rbx, word [rax + r9*2]
mov rax, qword [r11 + 0x38]
movzx eax, byte [rax + r9]
and eax, 1
cmp bx, word [rsi + 0x34]
je 0x140161598
cmp byte [rsp + 0x48], 0
movsx r12d, bx
je 0x140161598
test r12d, r12d
js 0x1401619b4
cmp ecx, r8d
jg 0x140161598
mov r10, qword [rsi + 8]
lea rcx, [rbx + rbx*2]
lea rcx, [r10 + rcx*8]
test byte [rcx + 8], 0xf
setne byte [rsp + 0x48]
nop dword [rax]
test bpl, bpl
mov dword [rsp + 0x38], r9d
je 0x14016191e
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x50], r13
xor esi, esi
mov r13, r11
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x70], r8d
mov byte [rsp + 0x5b], dl
mov byte [rsp + 0x75], al
nop word [rax + rax]
mov rbx, r14
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x140161620
mov rcx, qword [rdi]
test rcx, rcx
mov rdx, rcx
jne 0x1401615fd
jmp 0x140161620
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140161620
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x140161690
test eax, 0x80000
jne 0x1401615f0
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1401615fd
nop dword [rax + rax]
mov eax, ebp
add esi, 1
add rdi, 0x20
cmp r15d, esi
jle 0x140161632
test al, al
jne 0x1401615d0
mov r12, qword [rsp + 0x78]
movzx edx, byte [rsp + 0x5b]
movzx ebx, word [rsp + 0x84]
mov r9, qword [rsp + 0x50]
mov edi, dword [rsp + 0x38]
test edi, edi
je 0x14016165c
movzx eax, bx
cmp eax, edi
jle 0x1401612ce
test dl, dl
je 0x1401612dd
mov rdi, qword [r9 + 8]
or qword [rsp + 0xa8], rdi
test r15d, r15d
je 0x1401610e5
mov rax, qword [rsp + 0x158]
lea rdi, [rax + 8]
jmp 0x140161233
cmp r12d, 0xffffffff
jl 0x1401616c0
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x1401616ad
mov eax, dword [rsp + 0x30]
cmp dword [rdx + 0x2c], eax
je 0x140161750
test byte [rsp + 0x5e], 0xc0
setne al
jmp 0x140161622
movsxd rax, dword [rsp + 0x38]
shl rax, 5
add rax, qword [r13 + 0x50]
mov r8, qword [rax + 8]
test r8, r8
jne 0x1401616ed
jmp 0x14016170c
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x14016170c
mov eax, dword [r8 + 4]
test eax, 0x82000
je 0x1401618b8
test eax, 0x80000
jne 0x1401616e0
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x1401616ed
mov r9d, ebp
jmp 0x140161725
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140161743
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x140161890
test eax, 0x80000
jne 0x140161718
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x140161725
cmp rdx, r8
jne 0x1401616ad
jmp 0x140161763
movsx eax, word [rdx + 0x30]
cmp eax, r12d
jne 0x1401616ad
cmp r12d, 0xffffffff
je 0x1401617c4
mov rax, qword [rsp + 0x150]
mov rdx, rcx
mov rax, qword [rax]
mov rcx, rax
mov qword [rsp + 0x60], rax
call dbg.sqlite3ExprCollSeq
lea r10, [0x1403489c0]
test rax, rax
je 0x140161933
mov rcx, qword [rsp + 0x40]
mov rdx, qword [r13 + 0x40]
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rax]
jmp 0x1401617b3
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x1401616ad
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x1401617a0
test eax, eax
jne 0x1401617af
cmp word [rsp + 0x80], 0
mov r11, r13
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x70]
movzx edx, byte [rsp + 0x5b]
mov r13, qword [rsp + 0x50]
movzx eax, byte [rsp + 0x75]
je 0x1401617f4
lea ecx, [r9 + 1]
mov word [r13 + 0x1e], cx
movsxd rcx, esi
mov rdi, qword [rsp + 0x158]
shl rcx, 5
test byte [rsp + 0x5e], 0x40
movzx ecx, byte [rdi + rcx + 0x18]
jne 0x14016184d
mov ebx, ecx
and ebx, 1
cmp byte [rsp + 0x83], 0
jne 0x140161990
mov edi, eax
mov byte [rsp + 0x83], 1
xor edi, ebx
cmp al, bl
mov byte [rsp + 0x87], dil
je 0x14016184d
mov rax, qword [rsp + 0x180]
mov rdi, qword [rsp + 0xa0]
or qword [rax], rdi
and ecx, 2
je 0x140161868
movzx eax, word [r13 + 0x18]
cmp eax, r8d
jne 0x14016191e
or dword [r13 + 0x38], 0x80000
cmp r12d, 0xffffffff
mov eax, 1
cmove edx, eax
mov ecx, esi
mov eax, 1
shl rax, cl
or r14, rax
jmp 0x14016150f
test r9b, r9b
jne 0x140161743
mov r9d, dword [rsp + 0x30]
xor ecx, ecx
call sym.sqlite3ExprCompare.part.0
test eax, eax
jne 0x1401616ad
mov rcx, qword [rdi]
jmp 0x140161763
xor r9d, r9d
jmp 0x140161725
test r15d, r15d
setg bpl
test al, 1
je 0x140161535
lea eax, [r9 + 1]
mov rdi, qword [rsi]
cmp ecx, eax
jle 0x140161535
lea rax, [r9 + 1]
jmp 0x1401618f4
add rax, 1
cmp ecx, eax
jle 0x140161535
mov rsi, qword [rbx + rax*8]
cmp qword [rsi], rdi
jne 0x1401618e8
xor ebp, ebp
test r11, r11
jne 0x14016153e
xor eax, eax
test bpl, bpl
mov r12d, 0xffffffff
mov dword [rsp + 0x38], r9d
jne 0x1401615a6
mov r12, qword [rsp + 0x78]
mov r9, r13
movzx ebx, word [rsp + 0x84]
jmp 0x140161649
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
jmp 0x14016178e
mov r9, qword [rsp + 0x178]
mov eax, dword [r9 + 0x38]
test ah, 4
je 0x140161156
cmp byte [r9 + 0x20], 0
mov ebx, dword [rsp + 0xb4]
mov esi, dword [rsp + 0xbc]
je 0x140161b32
and si, 0x280
add si, 0xff80
je 0x140161b32
mov eax, ebx
jmp 0x140161309
xor al, byte [rsp + 0x87]
cmp al, bl
je 0x14016184d
mov r12, qword [rsp + 0x78]
mov r9, r13
movzx ebx, word [rsp + 0x84]
jmp 0x140161649
cmp r12d, 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x140161598
mov ebx, 1
xor r11d, r11d
mov byte [rsp + 0x48], 1
mov word [rsp + 0x5c], bx
xor ebx, ebx
jmp 0x140161481
mov rax, qword [rsp + 0x150]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
call dbg.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x48]
test rax, rax
mov r8, qword [rsp + 0x40]
mov r13, rax
je 0x140161ad0
mov rax, qword [r8]
test byte [rax + 5], 4
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
jne 0x140161a85
mov r8, r9
call sym.sqlite3BinaryCompareCollSeq
test rax, rax
je 0x140161200
mov r9, qword [rax]
lea rcx, [0x1403489c0]
mov r8, qword [r13]
jmp 0x140161a51
movzx edx, byte [rcx + rdx]
cmp byte [rcx + rax], dl
jne 0x140161200
add rbx, 1
movzx eax, byte [r8 + rbx]
movzx edx, byte [r9 + rbx]
cmp eax, edx
jne 0x140161a40
test eax, eax
jne 0x140161a4d
jmp 0x1401613ac
cmp word [rsp + 0x5c], 0
jne 0x140161481
jmp 0x1401612dd
cmp ecx, 0x3f
jle 0x140161aed
mov eax, ecx
jmp 0x140161309
mov r8, rdx
mov rdx, r9
call sym.sqlite3BinaryCompareCollSeq
jmp 0x140161a23
movzx ecx, word [rdi + 0x3c]
test ecx, ecx
je 0x140161200
mov rdx, qword [rdi + 0x48]
xor eax, eax
jmp 0x140161ab5
add eax, 1
add rdx, 8
cmp eax, ecx
je 0x140161200
cmp qword [rdx], r8
jne 0x140161aa6
cmp ecx, eax
jg 0x1401613ac
jmp 0x140161200
mov rax, qword [rcx]
mov r13, qword [rax + 0x10]
jmp 0x140161a0a
mov rdi, qword [r9 + 8]
or qword [rsp + 0xa8], rdi
jmp 0x1401610e5
mov eax, 1
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rax, rdx
je 0x140161a7e
mov edx, 1
sub ecx, 1
je 0x140161307
mov rax, rdx
mov r8, r14
shl rax, cl
sub rax, 1
and r8, rax
cmp r8, rax
jne 0x140161b0d
mov eax, ecx
jmp 0x140161309
cmp qword [rsp + 0x88], r14
je 0x140161981
mov eax, 0xffffffff
jmp 0x140161309
mov ebx, dword [rsp + 0xb4]
jne 0x140161b40
jmp 0x140161981