Function at 0x1402a5730
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, 0xd8
movzx r12d, byte [rcx + 0x40]
mov rbp, qword [rcx]
cmp r12d, 1
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x9c], edx
mov word [rsp + 0x92], dx
mov byte [rsp + 0x9b], r12b
jle 0x1402a64c0
xor eax, eax
cmp r12d, 2
mov rdi, rcx
setne al
setne bl
lea eax, [rax + rax*4 + 5]
movzx ebx, bl
lea rbx, [rbx + rbx*4 + 5]
mov dword [rsp + 0x50], eax
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x1402a57b3
cmp word [rsp + 0x9c], 0
je 0x1402a57b3
movsxd rsi, dword [rdx]
mov dword [rsp + 0x68], esi
lea ecx, [rsi + rsi]
jmp 0x1402a57bf
xor ecx, ecx
xor esi, esi
mov dword [rsp + 0x68], 0
movzx r13d, byte [rsp + 0x9b]
lea rdx, [r13 + 4]
imul edx, eax
shl edx, 4
add edx, ecx
mov rcx, qword [rbp]
movsxd rdx, edx
call sym.sqlite3DbMallocRawNN
test rax, rax
mov rdi, rax
je 0x1402a6634
shl rbx, 5
lea r10, [rax + rbx]
mov eax, dword [rsp + 0x50]
lea r9, [r10 + rbx]
mov qword [r10], 0
mov qword [r10 + 8], 0
lea rbx, [r13*8]
mov rdx, r9
mov qword [r10 + 0x10], 0
lea ecx, [rax + rax]
mov qword [r10 + 0x18], 0
mov rax, rdi
mov r8, rcx
shl rcx, 5
add rcx, rdi
mov qword [rax + 0x18], rdx
add rax, 0x20
add rdx, rbx
cmp rax, rcx
jne 0x1402a5836
mov edx, dword [rsp + 0x68]
test edx, edx
jne 0x1402a64da
mov eax, dword [rbp + 0xd0]
mov edx, 0x30
mov qword [rsp + 0x70], 0
cmp eax, edx
cmova eax, edx
test r12d, r12d
mov word [r10 + 0x10], ax
je 0x1402a6569
xor eax, eax
xor r15d, r15d
mov qword [rsp + 0x48], 0
mov esi, 1
mov word [rsp + 0x90], ax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x56], r15w
mov r15, rdi
mov edi, esi
test edi, edi
mov dword [rsp + 0x64], 0
mov qword [rsp + 0xa0], rbp
mov dword [rsp + 0x94], r12d
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x88], r10
mov qword [rsp + 0xb8], r13
mov dword [rsp + 0x7c], eax
jle 0x1402a5d50
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x78], edi
mov rdi, r15
xor r13d, r13d
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
shl rax, 3
mov qword [rsp + 0x58], rax
xor eax, eax
nop dword [rax]
mov rbx, qword [r15 + 0x58]
test rbx, rbx
je 0x1402a5d0f
mov dword [rsp + 0x60], eax
jmp 0x1402a593d
mov rbx, qword [rbx + 0x50]
test rbx, rbx
je 0x1402a5cf8
mov rsi, qword [rbp]
mov rax, rsi
not rax
and rax, qword [rbx]
jne 0x1402a5930
mov rcx, qword [rbx + 8]
test rsi, rcx
jne 0x1402a5930
test byte [rbx + 0x39], 0x40
movzx r14d, word [rbp + 0x10]
je 0x1402a5967
cmp r14w, 2
jle 0x1402a5930
movzx edx, word [rbx + 0x14]
movsx r8d, word [rbx + 0x12]
add edx, r14d
cmp dx, r8w
mov r9d, r8d
movsx eax, dx
jg 0x1402a5e20
lea edx, [rax + 0x31]
cmp edx, r8d
jl 0x1402a5e90
lea edx, [rax + 0x1f]
cmp edx, r8d
jge 0x1402a5ec0
lea edx, [r8 + 1]
movsx eax, dx
nop word [rax + rax]
movsx r8d, word [rbp + 0x14]
cmp r8w, dx
mov r12d, r8d
jg 0x1402a5df0
lea r9d, [r8 + 0x31]
mov r12d, edx
cmp r9d, eax
jl 0x1402a59e8
lea edx, [r8 + 0x1f]
cmp edx, eax
jl 0x1402a5e80
lea rdx, str._n_n_t_t_b_b_a_a_a
sub eax, r8d
cdqe
movzx eax, byte [rdx + rax]
add r12d, eax
nop dword [rax]
movzx r8d, byte [rbp + 0x16]
or rsi, rcx
add r14w, word [rbx + 0x16]
test r8b, r8b
mov r10d, r14d
js 0x1402a5d58
mov rax, qword [rbp + 8]
mov qword [rsp + 0xc8], rax
movsx edx, r8b
cmp dword [rsp + 0x68], edx
jle 0x1402a5da7
mov rcx, qword [rsp + 0x70]
movsx rax, r8b
lea r9, [rcx + rax*2]
movzx eax, word [r9]
test ax, ax
je 0x1402a5f02
cmp r12w, ax
movsx edx, ax
movsx ecx, r12w
jl 0x1402a5ee0
lea r9d, [rdx + 0x31]
mov eax, r12d
cmp r9d, ecx
jl 0x1402a5a68
lea eax, [rdx + 0x1f]
cmp eax, ecx
jge 0x1402a6127
lea eax, [r12 + 1]
nop word [rax + rax]
add eax, 3
cmp qword [rsp + 0x48], 0
mov ecx, r12d
mov r12d, eax
je 0x1402a5dbb
test r13d, r13d
jle 0x1402a5de0
movsxd r14, r13d
mov rax, rdi
xor edx, edx
shl r14, 5
add r14, rdi
jmp 0x1402a5aac
add rax, 0x20
add edx, 1
cmp rax, r14
je 0x1402a5abd
cmp rsi, qword [rax]
jne 0x1402a5aa0
mov r11d, r8d
xor r11b, byte [rax + 0x16]
js 0x1402a5aa0
mov r14, rax
cmp edx, r13d
jl 0x1402a5e48
cmp dword [rsp + 0x50], r13d
jg 0x1402a5de0
cmp r12w, word [rsp + 0x56]
jg 0x1402a5930
jne 0x1402a5aed
cmp cx, word [rsp + 0x90]
jge 0x1402a5930
movsxd r14, dword [rsp + 0x64]
shl r14, 5
add r14, rdi
mov rax, qword [rbp]
movzx r10d, r10w
shl r12d, 0x10
or rax, qword [rbx + 8]
mov byte [r14 + 0x16], r8b
or r12d, r10d
mov rsi, qword [rsp + 0x58]
mov word [r14 + 0x14], cx
mov rdx, qword [rbp + 0x18]
mov dword [r14 + 0x10], r12d
mov rcx, qword [r14 + 0x18]
movq xmm0, rax
movhps xmm0, qword [rsp + 0xc8]
mov r8, rsi
movups xmmword [r14], xmm0
call sym.memcpy
mov rax, qword [r14 + 0x18]
cmp dword [rsp + 0x50], r13d
mov qword [rax + rsi], rbx
jg 0x1402a5930
movzx ecx, word [rdi + 0x12]
movzx eax, word [rdi + 0x10]
cmp dword [rsp + 0x50], 1
mov word [rsp + 0x56], cx
mov word [rsp + 0x90], ax
je 0x1402a6227
movzx eax, word [rdi + 0x32]
cmp cx, ax
jge 0x1402a5fcb
movzx ecx, word [rdi + 0x34]
mov word [rsp + 0x90], cx
mov word [rsp + 0x56], ax
mov dword [rsp + 0x64], 1
movzx eax, word [rdi + 0x52]
cmp ax, word [rsp + 0x56]
jle 0x1402a5ff8
movzx ecx, word [rdi + 0x54]
mov word [rsp + 0x90], cx
mov word [rsp + 0x56], ax
mov dword [rsp + 0x64], 2
movzx eax, word [rdi + 0x72]
cmp word [rsp + 0x56], ax
jge 0x1402a601d
movzx ecx, word [rdi + 0x74]
mov word [rsp + 0x90], cx
mov dword [rsp + 0x64], 3
movzx edx, word [rdi + 0x92]
cmp dx, ax
jle 0x1402a6038
movzx eax, word [rdi + 0x94]
mov word [rsp + 0x90], ax
mov eax, edx
mov dword [rsp + 0x64], 4
cmp dword [rsp + 0x50], 5
je 0x1402a629a
movzx edx, word [rdi + 0xb2]
cmp ax, dx
jge 0x1402a6060
movzx eax, word [rdi + 0xb4]
mov word [rsp + 0x90], ax
mov dword [rsp + 0x64], 5
movzx eax, word [rdi + 0xd2]
cmp dx, ax
jge 0x1402a6078
movzx ecx, word [rdi + 0xd4]
mov word [rsp + 0x90], cx
mov dword [rsp + 0x64], 6
movzx edx, word [rdi + 0xf2]
cmp ax, dx
jge 0x1402a6090
movzx eax, word [rdi + 0xf4]
mov word [rsp + 0x90], ax
mov dword [rsp + 0x64], 7
movzx eax, word [rdi + 0x112]
cmp dx, ax
mov word [rsp + 0x56], ax
jge 0x1402a61a0
movzx eax, word [rdi + 0x114]
mov word [rsp + 0x90], ax
mov dword [rsp + 0x64], 8
movzx eax, word [rdi + 0x132]
cmp ax, word [rsp + 0x56]
jle 0x1402a61bd
movzx ecx, word [rdi + 0x134]
mov word [rsp + 0x90], cx
mov rbx, qword [rbx + 0x50]
mov word [rsp + 0x56], ax
mov dword [rsp + 0x64], 9
test rbx, rbx
jne 0x1402a593d
nop dword [rax + rax]
mov eax, dword [rsp + 0x60]
add rbp, 0x20
mov ecx, dword [rsp + 0x78]
add eax, 1
cmp eax, ecx
jne 0x1402a5918
mov r15, rdi
mov edi, r13d
add qword [rsp + 0x48], 1
mov rcx, qword [rsp + 0x48]
cmp dword [rsp + 0x94], ecx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x88], r15
jle 0x1402a62c6
mov r15, rax
mov eax, dword [rsp + 0x48]
test edi, edi
mov dword [rsp + 0x7c], eax
jg 0x1402a58e7
xor edi, edi
jmp 0x1402a5d15
mov rdx, qword [r15 + 0x10]
mov qword [rsp + 0x28], rbx
mov r8, rbp
mov rcx, r15
lea rax, [rsp + 0xc8]
mov dword [rsp + 0x6c], r10d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0x20], eax
movzx r9d, word [r15 + 0x3c]
call sym.wherePathSatisfiesOrderBy
mov r10d, dword [rsp + 0x6c]
test al, al
mov r8d, eax
jns 0x1402a5a0d
cmp qword [rsp + 0x48], 0
lea ecx, [r12 - 2]
mov eax, r12d
jne 0x1402a5a7d
test byte [rbx + 0x3b], 2
je 0x1402a5a7d
lea r12d, [rax - 0xa]
test r13d, r13d
lea r10d, [r14 - 0x1e]
jg 0x1402a5a86
nop word cs:[rax + rax]
movsxd r14, r13d
add r13d, 1
jmp 0x1402a5af2
lea edx, [rax + 0x31]
cmp edx, r8d
jl 0x1402a59e8
lea edx, [rax + 0x1f]
cmp edx, r8d
jl 0x1402a5e80
lea rdx, str._n_n_t_t_b_b_a_a_a
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rdx + rax]
add r12d, eax
jmp 0x1402a59e8
lea r9d, [r8 + 0x31]
cmp r9d, eax
jl 0x1402a59a8
lea r9d, [r8 + 0x1f]
cmp r9d, eax
jge 0x1402a5ea0
add edx, 1
movsx eax, dx
jmp 0x1402a59a8
cmp r12w, word [r14 + 0x12]
jg 0x1402a5930
jne 0x1402a5af9
cmp word [r14 + 0x10], r10w
jl 0x1402a5930
jne 0x1402a5af9
cmp cx, word [r14 + 0x14]
jl 0x1402a5af9
jmp 0x1402a5930
add r12d, 1
jmp 0x1402a59e8
mov eax, r8d
mov edx, r8d
jmp 0x1402a59a8
lea r10, str._n_n_t_t_b_b_a_a_a
sub eax, r8d
cdqe
movzx eax, byte [r10 + rax]
add edx, eax
movsx eax, dx
jmp 0x1402a59a8
sub r8d, eax
lea rax, str._n_n_t_t_b_b_a_a_a
movsxd r8, r8d
movzx edx, byte [rax + r8]
add edx, r9d
movsx eax, dx
jmp 0x1402a59a8
lea r9d, [rcx + 0x31]
cmp r9d, edx
jl 0x1402a5a68
lea r9d, [rcx + 0x1f]
cmp r9d, edx
jge 0x1402a6110
add eax, 1
jmp 0x1402a5a68
mov rax, qword [r15 + 0x20]
mov rax, qword [rax + 0x20]
mov ecx, dword [rax]
add ecx, 0x3b
movsxd rax, ecx
imul rax, rax, 0xffffffff88888889
shr rax, 0x20
add eax, ecx
sar ecx, 0x1f
sar eax, 4
sub eax, ecx
cdqe
cmp rax, 7
ja 0x1402a60f8
xor r11d, r11d
cmp rax, 1
jbe 0x1402a5f6a
mov ecx, 0x1e
nop dword [rax]
add rax, rax
mov r11d, ecx
sub ecx, 0xa
cmp rax, 7
jbe 0x1402a5f48
lea rcx, [0x140320560]
and eax, 7
movzx eax, word [rcx + rax*2]
lea r11d, [r11 + rax - 0xa]
movzx eax, word [r15 + 0x3c]
add r11w, word [rsp + 0x92]
mov word [rsp + 0x98], ax
and ax, 0x4000
test r8b, r8b
mov word [rsp + 0x6c], ax
jne 0x1402a613f
cmp word [rsp + 0x6c], 0
je 0x1402a609d
add r11d, 0xa
movzx edx, word [r15 + 0x3e]
mov eax, r11d
movzx ecx, word [rsp + 0x92]
cmp cx, dx
cmovle edx, ecx
cmp dx, 0xa
jg 0x1402a60cf
mov word [r9], ax
jmp 0x1402a5a35
mov dword [rsp + 0x64], 0
jne 0x1402a5b98
movzx edx, word [rdi + 0x34]
cmp word [rsp + 0x90], dx
jge 0x1402a5b98
mov word [rsp + 0x90], dx
jmp 0x1402a5b8b
jne 0x1402a5bc0
movzx edx, word [rdi + 0x54]
cmp word [rsp + 0x90], dx
jge 0x1402a5bc0
mov word [rsp + 0x90], dx
jmp 0x1402a5bb3
je 0x1402a61f2
movzx eax, word [rsp + 0x56]
movzx edx, word [rdi + 0x92]
cmp dx, ax
jg 0x1402a5bf3
jne 0x1402a5c0c
movzx ecx, word [rdi + 0x94]
cmp word [rsp + 0x90], cx
jge 0x1402a5c0c
mov word [rsp + 0x90], cx
jmp 0x1402a5c02
je 0x1402a6234
mov edx, eax
movzx eax, word [rdi + 0xd2]
cmp dx, ax
jl 0x1402a5c4e
je 0x1402a6256
mov eax, edx
movzx edx, word [rdi + 0xf2]
cmp ax, dx
jl 0x1402a5c75
je 0x1402a6278
mov edx, eax
jmp 0x1402a5c8c
test word [rsp + 0x98], 0x100
mov eax, r11d
je 0x1402a61e5
movzx ecx, word [rsp + 0x92]
lea edx, [rcx - 0xa]
cmp cx, 0xa
jle 0x1402a5fc2
cmp dx, 0xa
jle 0x1402a5fc2
movsx rdx, dx
bsr rax, rdx
lea ecx, [rax - 3]
lea eax, [rcx + rcx*4]
shr rdx, cl
lea rcx, [0x140320560]
and edx, 7
lea eax, [r11 + rax*2 - 3]
add ax, word [rcx + rdx*2]
jmp 0x1402a5fc2
bsr rcx, rax
sub ecx, 3
lea r11d, [rcx + rcx*4]
shr rax, cl
lea r11d, [r11 + r11 + 0x28]
jmp 0x1402a5f57
sub edx, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movsxd rdx, edx
movzx edx, byte [rcx + rdx]
add eax, edx
jmp 0x1402a5a68
sub ecx, edx
movsxd rax, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movzx eax, byte [rcx + rax]
add eax, r12d
jmp 0x1402a5a68
mov ecx, dword [rsp + 0x68]
mov eax, ecx
sub eax, edx
imul eax, eax, 0x64
cdq
idiv ecx
cmp eax, 7
movsxd rdx, eax
jg 0x1402a6211
cmp eax, 1
mov ecx, 0xffffffbe
jle 0x1402a6188
mov ecx, 0x1e
add rdx, rdx
mov eax, ecx
sub ecx, 0xa
cmp rdx, 7
jbe 0x1402a6168
lea rcx, [0x140320560]
and edx, 7
movzx edx, word [rcx + rdx*2]
lea ecx, [rax + rdx - 0x4c]
add r11d, ecx
cmp word [rsp + 0x6c], 0
je 0x1402a609d
add r11d, 0x10
jmp 0x1402a5fa2
je 0x1402a62a4
movzx eax, word [rdi + 0x132]
mov word [rsp + 0x56], dx
cmp ax, word [rsp + 0x56]
jg 0x1402a5cca
jne 0x1402a5930
movzx edx, word [rdi + 0x134]
cmp dx, word [rsp + 0x90]
jle 0x1402a5930
mov word [rsp + 0x90], dx
jmp 0x1402a5cd9
movzx edx, word [rsp + 0x92]
jmp 0x1402a5fb8
movzx edx, word [rdi + 0x74]
cmp word [rsp + 0x90], dx
jge 0x1402a5be3
mov word [rsp + 0x90], dx
jmp 0x1402a5bdb
bsr rax, rdx
lea ecx, [rax - 3]
lea eax, [rcx + rcx*4]
shr rdx, cl
lea eax, [rax + rax + 0x28]
jmp 0x1402a6176
mov dword [rsp + 0x64], 0
jmp 0x1402a5930
movzx eax, word [rdi + 0xb4]
cmp word [rsp + 0x90], ax
jge 0x1402a5c3e
mov word [rsp + 0x90], ax
jmp 0x1402a5c36
movzx edx, word [rdi + 0xd4]
cmp word [rsp + 0x90], dx
jge 0x1402a5c65
mov word [rsp + 0x90], dx
jmp 0x1402a5c5d
movzx eax, word [rdi + 0xf4]
cmp word [rsp + 0x90], ax
jge 0x1402a5c8c
mov word [rsp + 0x90], ax
jmp 0x1402a5c84
mov word [rsp + 0x56], ax
jmp 0x1402a5930
movzx eax, word [rdi + 0x114]
cmp ax, word [rsp + 0x90]
jle 0x1402a5cb8
mov word [rsp + 0x90], ax
jmp 0x1402a5cb0
mov esi, edi
mov rbp, qword [rsp + 0xa0]
mov r14, r15
test esi, esi
mov r12d, dword [rsp + 0x94]
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb8]
je 0x1402a6620
cmp esi, 1
jle 0x1402a632c
movzx ecx, word [r15 + 0x12]
lea edx, [rsi - 2]
lea rax, [r15 + 0x20]
shl rdx, 5
lea r8, [r15 + rdx + 0x40]
movzx edx, word [rax + 0x12]
cmp dx, cx
jge 0x1402a6323
mov ecx, edx
mov r14, rax
add rax, 0x20
cmp r8, rax
jne 0x1402a6315
mov rax, qword [rsp + 0x80]
mov rcx, qword [r14 + 0x18]
mov r8, qword [rax + 8]
lea rdx, [rax + 0x364]
lea r9, [rcx + r13*8]
mov rax, qword [rcx]
add rcx, 8
add rdx, 0x70
mov qword [rdx - 0x14], rax
movzx eax, byte [rax + 0x10]
mov byte [rdx - 0x34], al
imul rax, rax, 0x68
mov eax, dword [r8 + rax + 0x4c]
mov dword [rdx - 0x70], eax
cmp r9, rcx
jne 0x1402a6347
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x3c]
mov word [rsp + 0x50], ax
and ax, 0x180
cmp ax, 0x100
je 0x1402a643a
mov rsi, qword [rsp + 0x80]
movzx ecx, byte [rsi + 0x44]
mov rdx, qword [rsi + 0x10]
mov byte [rsp + 0x50], cl
and ecx, 0xfffffffb
test rdx, rdx
mov byte [rsi + 0x44], cl
je 0x1402a640a
movzx r8d, word [rsi + 0x3c]
movsx eax, byte [r14 + 0x16]
test r8b, 0x80
mov byte [rsi + 0x41], al
je 0x1402a6525
cmp eax, dword [rdx]
je 0x1402a6648
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsi + 0x20]
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x1402a63e9
mov ecx, dword [rcx]
cmp eax, ecx
jle 0x1402a63e9
mov byte [rsi + 0x41], cl
test r8w, 0x200
je 0x1402a640a
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax + 0x41]
cmp eax, dword [rdx]
jne 0x1402a640a
test r12d, r12d
jne 0x1402a6651
movzx eax, word [r14 + 0x10]
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x48], ax
mov rcx, qword [rbp]
mov rdx, rdi
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3DbFreeNN
mov rax, qword [rsp + 0x80]
cmp byte [rax + 0x43], 0
jne 0x1402a638d
cmp word [rsp + 0x9c], 0
je 0x1402a638d
mov rdx, qword [rax + 0x18]
mov rsi, rax
mov rcx, rax
mov r9d, pe_nt_image_headers64
lea rax, [rsp + 0xc8]
mov r8, r14
mov qword [rsp + 0x30], rax
mov rax, qword [r14 + 0x18]
mov rax, qword [rax + rbx - 8]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x9b]
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call sym.wherePathSatisfiesOrderBy
mov rdx, qword [rsi + 0x18]
movsx eax, al
cmp eax, dword [rdx]
jne 0x1402a638d
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x43], 2
jmp 0x1402a638d
mov eax, 1
mov ebx, 1
mov dword [rsp + 0x50], 1
mov rdi, rcx
jmp 0x1402a5793
movsxd rax, r8d
xor edx, edx
mov qword [rsp + 0x48], r10
imul rax, rbx
lea r8, [rsi + rsi]
add rax, r9
mov rcx, rax
mov qword [rsp + 0x70], rax
call sub.msvcrt.dll_memset
mov eax, dword [rbp + 0xd0]
mov edx, 0x30
mov r10, qword [rsp + 0x48]
cmp eax, edx
cmova eax, edx
test r12d, r12d
mov word [r10 + 0x10], ax
je 0x1402a6560
mov byte [r10 + 0x16], 0xff
jmp 0x1402a5879
mov r9, qword [r14 + 8]
test al, al
mov qword [rsi + 0x68], r9
jle 0x1402a6571
test r12d, r12d
je 0x1402a63e9
cmp al, 1
jne 0x1402a63e9
test r8b, 3
je 0x1402a63e9
or ecx, 4
mov byte [rsi + 0x44], cl
jmp 0x1402a63e9
movzx eax, byte [rsp + 0x68]
mov byte [r10 + 0x16], al
mov r14, r10
jmp 0x1402a636e
test r12d, r12d
mov byte [rsi + 0x41], 0
je 0x1402a640a
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + rbx - 8]
mov eax, dword [rcx + 0x38]
test ah, 0x10
jne 0x1402a63e9
not eax
test eax, 0x104
je 0x1402a63e9
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rcx
mov r9d, 0x800
mov r8, r14
mov qword [rsp + 0x30], rax
mov rcx, rsi
movzx eax, byte [rsp + 0x9b]
mov qword [rsp + 0xc8], 0
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call sym.wherePathSatisfiesOrderBy
mov rdx, qword [rsi + 0x10]
movsx eax, al
cmp eax, dword [rdx]
jne 0x1402a6604
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xc8]
or byte [rcx + 0x44], 4
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x80]
movzx r8d, word [rax + 0x3c]
jmp 0x1402a63e9
lea rdx, str.no_query_solution
mov rcx, rbp
call sym.sqlite3ErrorMsg
jmp 0x1402a641b
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsi + 0x43], 2
jmp 0x1402a63cb
lea rax, [rsp + 0xc8]
xor r9d, r9d
mov r8, r14
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x30], rax
mov rax, qword [r14 + 0x18]
mov rax, qword [rax + rbx - 8]
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x9b]
mov rcx, rbx
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call sym.wherePathSatisfiesOrderBy
mov rdx, qword [rbx + 0x10]
movsx eax, al
cmp eax, dword [rdx]
jne 0x1402a640a
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xc8]
or byte [rcx + 0x44], 8
mov qword [rcx + 0x68], rax
jmp 0x1402a640a