Function at 0x140170ec0
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
mov qword [rsp + 0x158], rdx
mov edx, dword [rsp + 0x170]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], r8
mov dword [rsp + 0xc8], r9d
mov word [rsp + 0x90], r9w
test dx, dx
je 0x140170f18
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x60], 0x40
jne 0x1401713d8
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
mov esi, eax
cmp ax, 0x3f
ja 0x1401713d8
mov ecx, esi
movzx r15d, ax
mov eax, 1
xor esi, esi
shl rax, cl
test dword [rsp + 0xc8], 0x803
setne sil
add si, 0x182
sub rax, 1
mov word [rsp + 0x94], si
mov qword [rsp + 0xa0], rax
je 0x14017176d
movzx eax, dx
xor r14d, r14d
mov r13d, r15d
mov qword [rsp + 0x88], 0
mov dword [rsp + 0xc0], eax
movzx eax, dx
mov r15, r14
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], 0
jmp 0x140170ff8
cmp r15, qword [rsp + 0xa0]
jae 0x1401719e0
mov rdi, qword [rsp + 0x88]
lea rax, [rdi + 1]
cmp qword [rsp + 0xa8], rdi
je 0x1401719d6
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rdi, qword [rdi + 8]
or qword [rsp + 0x98], rdi
mov rdi, qword [rsp + 0x88]
mov r12d, edi
cmp dword [rsp + 0xc0], edi
jle 0x14017172c
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rdi*8]
mov qword [rsp + 0x30], rax
test word [rsp + 0x90], 0x800
jne 0x140170fb7
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
jne 0x14017174a
movzx eax, word [rsp + 0x90]
and ax, 0x80
mov word [rsp + 0x96], ax
je 0x140171065
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov word [rax + 0x1e], r8w
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x150]
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 + 0x78], eax
test r13d, r13d
je 0x140171930
mov rsi, qword [rsp + 0x158]
mov r14, qword [rsp + 0x98]
mov dword [rsp + 0x3c], r12d
xor edi, edi
add rsi, 8
not r14
mov qword [rsp + 0x40], rsi
mov r12, r14
mov rbp, rsi
mov r14d, eax
nop word [rax + rax]
mov rsi, r15
mov ecx, edi
shr rsi, cl
and esi, 1
jne 0x140171120
mov rbx, qword [rbp]
test rbx, rbx
jne 0x1401710ed
jmp 0x140171120
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140171120
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x1401715e5
test eax, 0x80000
jne 0x1401710e0
movzx eax, byte [rbx]
cmp al, 0x71
jne 0x1401715e8
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401710ed
nop word cs:[rax + rax]
add edi, 1
add rbp, 0x20
cmp r13d, edi
jne 0x1401710c8
mov rax, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x3c]
mov edx, dword [rax + 0x38]
test dh, 0x10
jne 0x140171780
test dh, 1
jne 0x140171867
mov rax, qword [rsp + 0x30]
mov r14, qword [rax + 0x20]
test r14, r14
je 0x1401713d8
test byte [r14 + 0x64], 4
jne 0x1401713d8
movzx eax, word [r14 + 0x5e]
movzx esi, byte [r14 + 0x62]
mov word [rsp + 0xc6], ax
movzx eax, word [r14 + 0x60]
mov byte [rsp + 0x50], sil
mov dword [rsp + 0x7c], eax
test sil, sil
jne 0x140171919
test eax, eax
je 0x14017137a
mov ecx, r12d
mov eax, 1
mov byte [rsp + 0x40], 0
xor r12d, r12d
shl rax, cl
mov byte [rsp + 0xc5], 0
mov r11, r14
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x58], 1
mov byte [rsp + 0xc4], 0
jmp 0x14017122d
movzx edx, word [rdi + 0x3e]
cmp edx, r12d
jg 0x140171245
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x48]
mov r8, qword [rcx + r12*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x94], dx
je 0x140171680
movzx esi, byte [rsp + 0x50]
test dx, 0x180
mov eax, 0
cmovne esi, eax
mov byte [rsp + 0x50], sil
add qword [rsp + 0x58], 1
add r12, 1
cmp dword [rsp + 0x7c], r12d
jle 0x140171368
mov rdi, qword [rsp + 0x30]
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x48], r12d
movzx eax, word [rdi + 0x18]
cmp eax, r12d
jg 0x1401711d8
test r13d, r13d
setg r14b
test r11, r11
je 0x1401716c9
mov rcx, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov r9d, 0xffffffff
movzx ecx, byte [rcx + r12]
movsx rdx, word [rdx + r12*2]
and ecx, 1
mov byte [rsp + 0x93], cl
mov rcx, qword [r11 + 0x18]
cmp dx, word [rcx + 0x34]
je 0x1401712b0
cmp byte [rsp + 0x50], 0
movsx r9d, dx
je 0x1401712b0
test r9d, r9d
js 0x1401716e8
cmp eax, dword [rsp + 0x48]
jg 0x1401712b0
lea rax, [rdx + rdx*2]
mov rdx, qword [rcx + 8]
lea rax, [rdx + rax*8]
test byte [rax + 8], 0xf
setne byte [rsp + 0x50]
test r14b, r14b
je 0x14017134c
lea rax, [r12*8]
mov qword [rsp + 0x80], r12
xor esi, esi
mov r12d, r9d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x158]
lea rdi, [rax + 8]
nop
mov rbx, r15
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x140171338
mov rdx, qword [rdi]
mov rcx, rdx
test rdx, rdx
jne 0x14017130d
jmp 0x140171338
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140171338
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x140171428
test eax, 0x80000
jne 0x140171300
cmp byte [rcx], 0x71
jne 0x140171428
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14017130d
nop dword [rax]
mov ebp, r14d
add esi, 1
add rdi, 0x20
cmp r13d, esi
jle 0x14017134c
test bpl, bpl
jne 0x1401712e0
mov esi, dword [rsp + 0x3c]
test esi, esi
je 0x1401713ee
movzx eax, word [rsp + 0xc6]
cmp eax, esi
jg 0x1401713ee
cmp byte [rsp + 0x40], 0
jne 0x1401713f5
cmp byte [rsp + 0x50], 0
jne 0x1401713f5
mov r14, r15
mov r15d, r13d
cmp r14, qword [rsp + 0xa0]
je 0x14017176d
lea ecx, [r15 - 1]
test ecx, ecx
jle 0x1401713d8
cmp ecx, 0x3f
jle 0x14017139f
mov eax, ecx
jmp 0x1401713da
mov eax, 1
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14017139b
mov r8d, 1
jmp 0x1401713d3
mov rax, r8
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14017139b
sub ecx, 1
jne 0x1401713be
xor eax, eax
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x40], 0
je 0x14017137a
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
test r13d, r13d
je 0x140170fb7
mov rax, qword [rsp + 0x158]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x140171791
test byte [rsp + 0x90], 0xc0
setne bpl
cmp r12d, 0xffffffff
jl 0x1401715b0
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x14017133b
mov eax, dword [rsp + 0x78]
cmp dword [rcx + 0x2c], eax
jne 0x14017133b
movsx eax, word [rcx + 0x30]
cmp r12d, eax
jne 0x14017133b
cmp r12d, 0xffffffff
je 0x1401714dc
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x70], r11
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
call dbg.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
lea r10, [0x14039f8a0]
test rax, rax
je 0x1401716dc
mov rcx, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x40]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x1401714cb
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x14017133b
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x1401714b8
test eax, eax
jne 0x1401714c7
cmp word [rsp + 0x96], 0
mov r9d, r12d
mov r12, qword [rsp + 0x80]
je 0x140171500
mov rax, qword [rsp + 0x30]
movzx edi, word [rsp + 0x58]
mov word [rax + 0x1e], di
mov rdi, qword [rsp + 0x158]
movsxd rax, esi
shl rax, 5
movzx eax, byte [rdi + rax + 0x18]
test byte [rsp + 0x90], 0x40
jne 0x140171568
cmp byte [rsp + 0xc4], 0
jne 0x14017170b
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x93]
je 0x1401716f6
mov rdi, qword [rsp + 0x180]
mov rdx, qword [rsp + 0xb8]
mov byte [rsp + 0xc5], 1
mov byte [rsp + 0xc4], 1
or qword [rdi], rdx
nop dword [rax]
test al, 2
je 0x140171586
mov rdi, qword [rsp + 0x30]
movzx eax, word [rdi + 0x18]
cmp eax, dword [rsp + 0x48]
jne 0x14017134c
or dword [rdi + 0x38], 0x80000
movzx edi, byte [rsp + 0x40]
cmp r9d, 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x40], dil
or r15, rax
jmp 0x140171218
movsxd rax, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x68], r11
shl rax, 5
add rax, qword [r11 + 0x50]
mov rdx, qword [rax + 8]
call dbg.sqlite3ExprCompareSkip
mov r11, qword [rsp + 0x68]
test eax, eax
jne 0x14017133b
mov rdx, qword [rdi]
jmp 0x14017146c
movzx eax, byte [rbx]
add eax, 0x59
test al, 0xfd
jne 0x140171120
cmp dword [rbx + 0x2c], r14d
jne 0x140171120
mov rax, qword [rsp + 0x150]
movsx r8d, word [rbx + 0x30]
mov r9, r12
mov edx, r14d
mov qword [rsp + 0x28], 0
lea rcx, [rax + 0x70]
movzx eax, word [rsp + 0x94]
mov dword [rsp + 0x20], eax
call dbg.sqlite3WhereFindTerm
mov r8, rax
test rax, rax
je 0x140171120
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x140171977
mov qword [rsp + 0x48], r8
test al, 0x82
je 0x14017165c
cmp word [rbx + 0x30], 0
jns 0x140171886
mov ecx, edi
mov eax, 1
add edi, 1
add rbp, 0x20
shl rax, cl
or r15, rax
cmp r13d, edi
jne 0x1401710c8
jmp 0x14017112c
test r13d, r13d
setg r14b
and edx, 1
je 0x14017124c
mov rdx, qword [rsp + 0x58]
mov r9, qword [r8]
cmp eax, edx
jg 0x1401716b4
jmp 0x14017124c
add rdx, 1
cmp eax, edx
jle 0x14017124c
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r9
jne 0x1401716a8
xor r14d, r14d
test r11, r11
jne 0x140171255
mov byte [rsp + 0x93], 0
mov r9d, 0xffffffff
jmp 0x1401712b0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x1401714a0
cmp r9d, 0xfffffffe
setne byte [rsp + 0x50]
jmp 0x1401712b0
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 1
jmp 0x140171568
mov edx, eax
movzx ecx, byte [rsp + 0x93]
xor cl, byte [rsp + 0xc5]
and edx, 1
cmp cl, dl
jne 0x14017134c
jmp 0x140171568
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
je 0x140171042
cmp byte [rax + 0x20], 0
mov r14, r15
je 0x1401719c8
movzx eax, word [rsp + 0xc8]
and ax, 0x280
cmp ax, 0x80
je 0x1401719c8
movzx eax, byte [rsp + 0xcc]
jmp 0x1401713da
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
mov r14d, 1
mov r12, r15
lea rbx, [dbg.exprNodeIsConstant]
lea rsi, [dbg.sqlite3SelectWalkFail]
jmp 0x1401717e9
mov rax, qword [rsp + 0x150]
mov rdx, r15
lea rcx, [rax + 0x258]
call sym.sqlite3WhereExprUsageNN
test rax, rax
je 0x140171816
mov rdx, qword [rsp + 0xb0]
not rdx
test rdx, rax
je 0x1401717f7
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jle 0x14017180e
bt r12, rbp
jb 0x1401717dd
mov r15, qword [rdi]
test r15, r15
jne 0x1401717b1
mov rax, r14
mov ecx, ebp
shl rax, cl
or r12, rax
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jg 0x1401717e9
mov r15, r12
jmp 0x140170fb7
mov eax, 1
mov rdx, r15
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0xd0], 0
mov word [rsp + 0xf4], ax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rsi
call dbg.sqlite3WalkExprNN
cmp word [rsp + 0xf4], 0
je 0x1401717dd
mov rax, r14
mov ecx, ebp
shl rax, cl
or r12, rax
jmp 0x140171802
xor ecx, ecx
mov dword [rsp + 0x7c], 1
xor r14d, r14d
mov word [rsp + 0xc6], cx
mov byte [rsp + 0x50], 1
jmp 0x140171199
mov rax, qword [rsp + 0x150]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
call dbg.sqlite3ExprCollSeq
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
test rax, rax
mov rbx, rax
je 0x1401719bc
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
test byte [rax + 5], 4
jne 0x140171960
mov r8, r9
call sym.sqlite3BinaryCompareCollSeq
lea r10, [0x14039f8a0]
test rax, rax
je 0x140171120
mov rcx, qword [rax]
mov r8, qword [rbx]
jmp 0x140171903
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x140171120
add rsi, 1
movzx eax, byte [r8 + rsi]
movzx edx, byte [rcx + rsi]
cmp eax, edx
jne 0x1401718f0
test eax, eax
jne 0x1401718ff
jmp 0x14017165c
and dh, 0x80
je 0x14017194f
test eax, eax
je 0x14017137a
mov byte [rsp + 0x50], 0
jmp 0x140171199
test dh, 0x10
je 0x140171142
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
jmp 0x140170fb7
test eax, eax
jne 0x14017187c
jmp 0x1401713f5
mov r8, rdx
mov rdx, r9
call sym.sqlite3BinaryCompareCollSeq
lea r10, [0x14039f8a0]
jmp 0x1401718d9
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 0x3c]
test dx, dx
je 0x140171120
mov rax, qword [rax + 0x48]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
cmp qword [rax], r8
je 0x14017165c
add rax, 8
cmp rdx, rax
jne 0x140171995
add edi, 1
add rbp, 0x20
cmp r13d, edi
jne 0x1401710c8
jmp 0x14017112c
mov rax, qword [rcx]
mov rbx, qword [rax + 0x10]
jmp 0x1401718b5
cmp r14, qword [rsp + 0xa0]
je 0x14017176d
mov eax, 0xffffffff
jmp 0x1401713da
jne 0x1401719d6
jmp 0x14017176d