Function at 0x14016c010
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 0x14016c068
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x60], 0x40
jne 0x14016c528
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
mov esi, eax
cmp ax, 0x3f
ja 0x14016c528
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 0x14016c8bd
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 0x14016c148
cmp r15, qword [rsp + 0xa0]
jae 0x14016cb30
mov rdi, qword [rsp + 0x88]
lea rax, [rdi + 1]
cmp qword [rsp + 0xa8], rdi
je 0x14016cb26
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 0x14016c87c
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 0x14016c107
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
jne 0x14016c89a
movzx eax, word [rsp + 0x90]
and ax, 0x80
mov word [rsp + 0x96], ax
je 0x14016c1b5
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 0x14016ca80
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 0x14016c270
mov rbx, qword [rbp]
test rbx, rbx
jne 0x14016c23d
jmp 0x14016c270
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14016c270
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x14016c735
test eax, 0x80000
jne 0x14016c230
movzx eax, byte [rbx]
cmp al, 0x71
jne 0x14016c738
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14016c23d
nop word cs:[rax + rax]
add edi, 1
add rbp, 0x20
cmp r13d, edi
jne 0x14016c218
mov rax, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x3c]
mov edx, dword [rax + 0x38]
test dh, 0x10
jne 0x14016c8d0
test dh, 1
jne 0x14016c9b7
mov rax, qword [rsp + 0x30]
mov r14, qword [rax + 0x20]
test r14, r14
je 0x14016c528
test byte [r14 + 0x64], 4
jne 0x14016c528
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 0x14016ca69
test eax, eax
je 0x14016c4ca
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 0x14016c37d
movzx edx, word [rdi + 0x3e]
cmp edx, r12d
jg 0x14016c395
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 0x14016c7d0
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 0x14016c4b8
mov rdi, qword [rsp + 0x30]
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x48], r12d
movzx eax, word [rdi + 0x18]
cmp eax, r12d
jg 0x14016c328
test r13d, r13d
setg r14b
test r11, r11
je 0x14016c819
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 0x14016c400
cmp byte [rsp + 0x50], 0
movsx r9d, dx
je 0x14016c400
test r9d, r9d
js 0x14016c838
cmp eax, dword [rsp + 0x48]
jg 0x14016c400
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 0x14016c49c
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 0x14016c488
mov rdx, qword [rdi]
mov rcx, rdx
test rdx, rdx
jne 0x14016c45d
jmp 0x14016c488
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14016c488
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x14016c578
test eax, 0x80000
jne 0x14016c450
cmp byte [rcx], 0x71
jne 0x14016c578
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14016c45d
nop dword [rax]
mov ebp, r14d
add esi, 1
add rdi, 0x20
cmp r13d, esi
jle 0x14016c49c
test bpl, bpl
jne 0x14016c430
mov esi, dword [rsp + 0x3c]
test esi, esi
je 0x14016c53e
movzx eax, word [rsp + 0xc6]
cmp eax, esi
jg 0x14016c53e
cmp byte [rsp + 0x40], 0
jne 0x14016c545
cmp byte [rsp + 0x50], 0
jne 0x14016c545
mov r14, r15
mov r15d, r13d
cmp r14, qword [rsp + 0xa0]
je 0x14016c8bd
lea ecx, [r15 - 1]
test ecx, ecx
jle 0x14016c528
cmp ecx, 0x3f
jle 0x14016c4ef
mov eax, ecx
jmp 0x14016c52a
mov eax, 1
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14016c4eb
mov r8d, 1
jmp 0x14016c523
mov rax, r8
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14016c4eb
sub ecx, 1
jne 0x14016c50e
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 0x14016c4ca
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
test r13d, r13d
je 0x14016c107
mov rax, qword [rsp + 0x158]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x14016c8e1
test byte [rsp + 0x90], 0xc0
setne bpl
cmp r12d, 0xffffffff
jl 0x14016c700
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x14016c48b
mov eax, dword [rsp + 0x78]
cmp dword [rcx + 0x2c], eax
jne 0x14016c48b
movsx eax, word [rcx + 0x30]
cmp r12d, eax
jne 0x14016c48b
cmp r12d, 0xffffffff
je 0x14016c62c
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, [0x14038e600]
test rax, rax
je 0x14016c82c
mov rcx, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x40]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x14016c61b
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x14016c48b
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x14016c608
test eax, eax
jne 0x14016c617
cmp word [rsp + 0x96], 0
mov r9d, r12d
mov r12, qword [rsp + 0x80]
je 0x14016c650
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 0x14016c6b8
cmp byte [rsp + 0xc4], 0
jne 0x14016c85b
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x93]
je 0x14016c846
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 0x14016c6d6
mov rdi, qword [rsp + 0x30]
movzx eax, word [rdi + 0x18]
cmp eax, dword [rsp + 0x48]
jne 0x14016c49c
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 0x14016c368
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 0x14016c48b
mov rdx, qword [rdi]
jmp 0x14016c5bc
movzx eax, byte [rbx]
add eax, 0x59
test al, 0xfd
jne 0x14016c270
cmp dword [rbx + 0x2c], r14d
jne 0x14016c270
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 0x14016c270
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x14016cac7
mov qword [rsp + 0x48], r8
test al, 0x82
je 0x14016c7ac
cmp word [rbx + 0x30], 0
jns 0x14016c9d6
mov ecx, edi
mov eax, 1
add edi, 1
add rbp, 0x20
shl rax, cl
or r15, rax
cmp r13d, edi
jne 0x14016c218
jmp 0x14016c27c
test r13d, r13d
setg r14b
and edx, 1
je 0x14016c39c
mov rdx, qword [rsp + 0x58]
mov r9, qword [r8]
cmp eax, edx
jg 0x14016c804
jmp 0x14016c39c
add rdx, 1
cmp eax, edx
jle 0x14016c39c
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r9
jne 0x14016c7f8
xor r14d, r14d
test r11, r11
jne 0x14016c3a5
mov byte [rsp + 0x93], 0
mov r9d, 0xffffffff
jmp 0x14016c400
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x14016c5f0
cmp r9d, 0xfffffffe
setne byte [rsp + 0x50]
jmp 0x14016c400
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 1
jmp 0x14016c6b8
mov edx, eax
movzx ecx, byte [rsp + 0x93]
xor cl, byte [rsp + 0xc5]
and edx, 1
cmp cl, dl
jne 0x14016c49c
jmp 0x14016c6b8
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
je 0x14016c192
cmp byte [rax + 0x20], 0
mov r14, r15
je 0x14016cb18
movzx eax, word [rsp + 0xc8]
and ax, 0x280
cmp ax, 0x80
je 0x14016cb18
movzx eax, byte [rsp + 0xcc]
jmp 0x14016c52a
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 0x14016c939
mov rax, qword [rsp + 0x150]
mov rdx, r15
lea rcx, [rax + 0x258]
call sym.sqlite3WhereExprUsageNN
test rax, rax
je 0x14016c966
mov rdx, qword [rsp + 0xb0]
not rdx
test rdx, rax
je 0x14016c947
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jle 0x14016c95e
bt r12, rbp
jb 0x14016c92d
mov r15, qword [rdi]
test r15, r15
jne 0x14016c901
mov rax, r14
mov ecx, ebp
shl rax, cl
or r12, rax
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jg 0x14016c939
mov r15, r12
jmp 0x14016c107
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 0x14016c92d
mov rax, r14
mov ecx, ebp
shl rax, cl
or r12, rax
jmp 0x14016c952
xor ecx, ecx
mov dword [rsp + 0x7c], 1
xor r14d, r14d
mov word [rsp + 0xc6], cx
mov byte [rsp + 0x50], 1
jmp 0x14016c2e9
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 0x14016cb0c
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
test byte [rax + 5], 4
jne 0x14016cab0
mov r8, r9
call sym.sqlite3BinaryCompareCollSeq
lea r10, [0x14038e600]
test rax, rax
je 0x14016c270
mov rcx, qword [rax]
mov r8, qword [rbx]
jmp 0x14016ca53
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x14016c270
add rsi, 1
movzx eax, byte [r8 + rsi]
movzx edx, byte [rcx + rsi]
cmp eax, edx
jne 0x14016ca40
test eax, eax
jne 0x14016ca4f
jmp 0x14016c7ac
and dh, 0x80
je 0x14016ca9f
test eax, eax
je 0x14016c4ca
mov byte [rsp + 0x50], 0
jmp 0x14016c2e9
test dh, 0x10
je 0x14016c292
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
jmp 0x14016c107
test eax, eax
jne 0x14016c9cc
jmp 0x14016c545
mov r8, rdx
mov rdx, r9
call sym.sqlite3BinaryCompareCollSeq
lea r10, [0x14038e600]
jmp 0x14016ca29
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 0x3c]
test dx, dx
je 0x14016c270
mov rax, qword [rax + 0x48]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
cmp qword [rax], r8
je 0x14016c7ac
add rax, 8
cmp rdx, rax
jne 0x14016cae5
add edi, 1
add rbp, 0x20
cmp r13d, edi
jne 0x14016c218
jmp 0x14016c27c
mov rax, qword [rcx]
mov rbx, qword [rax + 0x10]
jmp 0x14016ca05
cmp r14, qword [rsp + 0xa0]
je 0x14016c8bd
mov eax, 0xffffffff
jmp 0x14016c52a
jne 0x14016cb26
jmp 0x14016c8bd