Function at 0x140380d00
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 0x140381a90
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 0x140380d83
cmp word [rsp + 0x9c], 0
je 0x140380d83
movsxd rsi, dword [rdx]
mov dword [rsp + 0x68], esi
lea ecx, [rsi + rsi]
jmp 0x140380d8f
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 0x140381c04
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 0x140380e06
mov edx, dword [rsp + 0x68]
test edx, edx
jne 0x140381aaa
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 0x140381b39
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 0x140381320
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 0x1403812df
mov dword [rsp + 0x60], eax
jmp 0x140380f0d
mov rbx, qword [rbx + 0x50]
test rbx, rbx
je 0x1403812c8
mov rsi, qword [rbp]
mov rax, rsi
not rax
and rax, qword [rbx]
jne 0x140380f00
mov rcx, qword [rbx + 8]
test rsi, rcx
jne 0x140380f00
test byte [rbx + 0x39], 0x40
movzx r14d, word [rbp + 0x10]
je 0x140380f37
cmp r14w, 2
jle 0x140380f00
movzx edx, word [rbx + 0x14]
movsx r8d, word [rbx + 0x12]
add edx, r14d
cmp dx, r8w
mov r9d, r8d
movsx eax, dx
jg 0x1403813f0
lea edx, [rax + 0x31]
cmp edx, r8d
jl 0x140381460
lea edx, [rax + 0x1f]
cmp edx, r8d
jge 0x140381490
lea edx, [r8 + 1]
movsx eax, dx
nop word [rax + rax]
movsx r8d, word [rbp + 0x14]
cmp r8w, dx
mov r12d, r8d
jg 0x1403813c0
lea r9d, [r8 + 0x31]
mov r12d, edx
cmp r9d, eax
jl 0x140380fb8
lea edx, [r8 + 0x1f]
cmp edx, eax
jl 0x140381450
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 0x140381328
mov rax, qword [rbp + 8]
mov qword [rsp + 0xc8], rax
movsx edx, r8b
cmp dword [rsp + 0x68], edx
jle 0x140381377
mov rcx, qword [rsp + 0x70]
movsx rax, r8b
lea r9, [rcx + rax*2]
movzx eax, word [r9]
test ax, ax
je 0x1403814d2
cmp r12w, ax
movsx edx, ax
movsx ecx, r12w
jl 0x1403814b0
lea r9d, [rdx + 0x31]
mov eax, r12d
cmp r9d, ecx
jl 0x140381038
lea eax, [rdx + 0x1f]
cmp eax, ecx
jge 0x1403816f7
lea eax, [r12 + 1]
nop word [rax + rax]
add eax, 3
cmp qword [rsp + 0x48], 0
mov ecx, r12d
mov r12d, eax
je 0x14038138b
test r13d, r13d
jle 0x1403813b0
movsxd r14, r13d
mov rax, rdi
xor edx, edx
shl r14, 5
add r14, rdi
jmp 0x14038107c
add rax, 0x20
add edx, 1
cmp rax, r14
je 0x14038108d
cmp rsi, qword [rax]
jne 0x140381070
mov r11d, r8d
xor r11b, byte [rax + 0x16]
js 0x140381070
mov r14, rax
cmp edx, r13d
jl 0x140381418
cmp dword [rsp + 0x50], r13d
jg 0x1403813b0
cmp r12w, word [rsp + 0x56]
jg 0x140380f00
jne 0x1403810bd
cmp cx, word [rsp + 0x90]
jge 0x140380f00
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 0x140380f00
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 0x1403817f7
movzx eax, word [rdi + 0x32]
cmp cx, ax
jge 0x14038159b
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 0x1403815c8
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 0x1403815ed
movzx ecx, word [rdi + 0x74]
mov word [rsp + 0x90], cx
mov dword [rsp + 0x64], 3
movzx edx, word [rdi + 0x92]
cmp dx, ax
jle 0x140381608
movzx eax, word [rdi + 0x94]
mov word [rsp + 0x90], ax
mov eax, edx
mov dword [rsp + 0x64], 4
cmp dword [rsp + 0x50], 5
je 0x14038186a
movzx edx, word [rdi + 0xb2]
cmp ax, dx
jge 0x140381630
movzx eax, word [rdi + 0xb4]
mov word [rsp + 0x90], ax
mov dword [rsp + 0x64], 5
movzx eax, word [rdi + 0xd2]
cmp dx, ax
jge 0x140381648
movzx ecx, word [rdi + 0xd4]
mov word [rsp + 0x90], cx
mov dword [rsp + 0x64], 6
movzx edx, word [rdi + 0xf2]
cmp ax, dx
jge 0x140381660
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 0x140381770
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 0x14038178d
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 0x140380f0d
nop dword [rax + rax]
mov eax, dword [rsp + 0x60]
add rbp, 0x20
mov ecx, dword [rsp + 0x78]
add eax, 1
cmp eax, ecx
jne 0x140380ee8
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 0x140381896
mov r15, rax
mov eax, dword [rsp + 0x48]
test edi, edi
mov dword [rsp + 0x7c], eax
jg 0x140380eb7
xor edi, edi
jmp 0x1403812e5
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 0x140380fdd
cmp qword [rsp + 0x48], 0
lea ecx, [r12 - 2]
mov eax, r12d
jne 0x14038104d
test byte [rbx + 0x3b], 2
je 0x14038104d
lea r12d, [rax - 0xa]
test r13d, r13d
lea r10d, [r14 - 0x1e]
jg 0x140381056
nop word cs:[rax + rax]
movsxd r14, r13d
add r13d, 1
jmp 0x1403810c2
lea edx, [rax + 0x31]
cmp edx, r8d
jl 0x140380fb8
lea edx, [rax + 0x1f]
cmp edx, r8d
jl 0x140381450
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 0x140380fb8
lea r9d, [r8 + 0x31]
cmp r9d, eax
jl 0x140380f78
lea r9d, [r8 + 0x1f]
cmp r9d, eax
jge 0x140381470
add edx, 1
movsx eax, dx
jmp 0x140380f78
cmp r12w, word [r14 + 0x12]
jg 0x140380f00
jne 0x1403810c9
cmp word [r14 + 0x10], r10w
jl 0x140380f00
jne 0x1403810c9
cmp cx, word [r14 + 0x14]
jl 0x1403810c9
jmp 0x140380f00
add r12d, 1
jmp 0x140380fb8
mov eax, r8d
mov edx, r8d
jmp 0x140380f78
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 0x140380f78
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 0x140380f78
lea r9d, [rcx + 0x31]
cmp r9d, edx
jl 0x140381038
lea r9d, [rcx + 0x1f]
cmp r9d, edx
jge 0x1403816e0
add eax, 1
jmp 0x140381038
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 0x1403816c8
xor r11d, r11d
cmp rax, 1
jbe 0x14038153a
mov ecx, 0x1e
nop dword [rax]
add rax, rax
mov r11d, ecx
sub ecx, 0xa
cmp rax, 7
jbe 0x140381518
lea rcx, [0x140478d80]
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 0x14038170f
cmp word [rsp + 0x6c], 0
je 0x14038166d
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 0x14038169f
mov word [r9], ax
jmp 0x140381005
mov dword [rsp + 0x64], 0
jne 0x140381168
movzx edx, word [rdi + 0x34]
cmp word [rsp + 0x90], dx
jge 0x140381168
mov word [rsp + 0x90], dx
jmp 0x14038115b
jne 0x140381190
movzx edx, word [rdi + 0x54]
cmp word [rsp + 0x90], dx
jge 0x140381190
mov word [rsp + 0x90], dx
jmp 0x140381183
je 0x1403817c2
movzx eax, word [rsp + 0x56]
movzx edx, word [rdi + 0x92]
cmp dx, ax
jg 0x1403811c3
jne 0x1403811dc
movzx ecx, word [rdi + 0x94]
cmp word [rsp + 0x90], cx
jge 0x1403811dc
mov word [rsp + 0x90], cx
jmp 0x1403811d2
je 0x140381804
mov edx, eax
movzx eax, word [rdi + 0xd2]
cmp dx, ax
jl 0x14038121e
je 0x140381826
mov eax, edx
movzx edx, word [rdi + 0xf2]
cmp ax, dx
jl 0x140381245
je 0x140381848
mov edx, eax
jmp 0x14038125c
test word [rsp + 0x98], 0x100
mov eax, r11d
je 0x1403817b5
movzx ecx, word [rsp + 0x92]
lea edx, [rcx - 0xa]
cmp cx, 0xa
jle 0x140381592
cmp dx, 0xa
jle 0x140381592
movsx rdx, dx
bsr rax, rdx
lea ecx, [rax - 3]
lea eax, [rcx + rcx*4]
shr rdx, cl
lea rcx, [0x140478d80]
and edx, 7
lea eax, [r11 + rax*2 - 3]
add ax, word [rcx + rdx*2]
jmp 0x140381592
bsr rcx, rax
sub ecx, 3
lea r11d, [rcx + rcx*4]
shr rax, cl
lea r11d, [r11 + r11 + 0x28]
jmp 0x140381527
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 0x140381038
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 0x140381038
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 0x1403817e1
cmp eax, 1
mov ecx, 0xffffffbe
jle 0x140381758
mov ecx, 0x1e
add rdx, rdx
mov eax, ecx
sub ecx, 0xa
cmp rdx, 7
jbe 0x140381738
lea rcx, [0x140478d80]
and edx, 7
movzx edx, word [rcx + rdx*2]
lea ecx, [rax + rdx - 0x4c]
add r11d, ecx
cmp word [rsp + 0x6c], 0
je 0x14038166d
add r11d, 0x10
jmp 0x140381572
je 0x140381874
movzx eax, word [rdi + 0x132]
mov word [rsp + 0x56], dx
cmp ax, word [rsp + 0x56]
jg 0x14038129a
jne 0x140380f00
movzx edx, word [rdi + 0x134]
cmp dx, word [rsp + 0x90]
jle 0x140380f00
mov word [rsp + 0x90], dx
jmp 0x1403812a9
movzx edx, word [rsp + 0x92]
jmp 0x140381588
movzx edx, word [rdi + 0x74]
cmp word [rsp + 0x90], dx
jge 0x1403811b3
mov word [rsp + 0x90], dx
jmp 0x1403811ab
bsr rax, rdx
lea ecx, [rax - 3]
lea eax, [rcx + rcx*4]
shr rdx, cl
lea eax, [rax + rax + 0x28]
jmp 0x140381746
mov dword [rsp + 0x64], 0
jmp 0x140380f00
movzx eax, word [rdi + 0xb4]
cmp word [rsp + 0x90], ax
jge 0x14038120e
mov word [rsp + 0x90], ax
jmp 0x140381206
movzx edx, word [rdi + 0xd4]
cmp word [rsp + 0x90], dx
jge 0x140381235
mov word [rsp + 0x90], dx
jmp 0x14038122d
movzx eax, word [rdi + 0xf4]
cmp word [rsp + 0x90], ax
jge 0x14038125c
mov word [rsp + 0x90], ax
jmp 0x140381254
mov word [rsp + 0x56], ax
jmp 0x140380f00
movzx eax, word [rdi + 0x114]
cmp ax, word [rsp + 0x90]
jle 0x140381288
mov word [rsp + 0x90], ax
jmp 0x140381280
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 0x140381bf0
cmp esi, 1
jle 0x1403818fc
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 0x1403818f3
mov ecx, edx
mov r14, rax
add rax, 0x20
cmp r8, rax
jne 0x1403818e5
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 0x140381917
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x3c]
mov word [rsp + 0x50], ax
and ax, 0x180
cmp ax, 0x100
je 0x140381a0a
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 0x1403819da
movzx r8d, word [rsi + 0x3c]
movsx eax, byte [r14 + 0x16]
test r8b, 0x80
mov byte [rsi + 0x41], al
je 0x140381af5
cmp eax, dword [rdx]
je 0x140381c18
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsi + 0x20]
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x1403819b9
mov ecx, dword [rcx]
cmp eax, ecx
jle 0x1403819b9
mov byte [rsi + 0x41], cl
test r8w, 0x200
je 0x1403819da
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax + 0x41]
cmp eax, dword [rdx]
jne 0x1403819da
test r12d, r12d
jne 0x140381c21
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 0x14038195d
cmp word [rsp + 0x9c], 0
je 0x14038195d
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 0x14038195d
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x43], 2
jmp 0x14038195d
mov eax, 1
mov ebx, 1
mov dword [rsp + 0x50], 1
mov rdi, rcx
jmp 0x140380d63
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 0x140381b30
mov byte [r10 + 0x16], 0xff
jmp 0x140380e49
mov r9, qword [r14 + 8]
test al, al
mov qword [rsi + 0x68], r9
jle 0x140381b41
test r12d, r12d
je 0x1403819b9
cmp al, 1
jne 0x1403819b9
test r8b, 3
je 0x1403819b9
or ecx, 4
mov byte [rsi + 0x44], cl
jmp 0x1403819b9
movzx eax, byte [rsp + 0x68]
mov byte [r10 + 0x16], al
mov r14, r10
jmp 0x14038193e
test r12d, r12d
mov byte [rsi + 0x41], 0
je 0x1403819da
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + rbx - 8]
mov eax, dword [rcx + 0x38]
test ah, 0x10
jne 0x1403819b9
not eax
test eax, 0x104
je 0x1403819b9
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 0x140381bd4
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 0x1403819b9
lea rdx, str.no_query_solution
mov rcx, rbp
call sym.sqlite3ErrorMsg
jmp 0x1403819eb
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 0x14038199b
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 0x1403819da
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xc8]
or byte [rcx + 0x44], 8
mov qword [rcx + 0x68], rax
jmp 0x1403819da