Function at 0x14028f8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [r8]
movzx eax, word [r13 + 0x14]
mov r12, rcx
mov rsi, r8
test al, 0x12
je 0x14028fb78
mov edx, dword [r13 + 0x10]
test ah, 4
jne 0x14028fa00
or eax, 0x10
mov word [r13 + 0x14], ax
test edx, edx
jne 0x14028fa6a
xor ebx, ebx
mov rax, qword [rsi + 8]
movzx edx, word [rax + 0x14]
test dl, 0x24
jne 0x14028fa7f
test dl, 8
jne 0x14028fb48
and edx, 0x12
je 0x14028f930
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14028f930
mov edx, dword [rax + 0x10]
movzx r8d, byte [rax + 0x16]
call sym.memIntValue.isra.0
mov ecx, eax
test eax, eax
jne 0x14028fa8c
mov eax, dword [rbx + 0x20]
xor ecx, ecx
pxor xmm0, xmm0
lea r13, [rsp + 0x20]
mov word [rsp + 0x3c], cx
mov rcx, r13
lea rdx, [0x140332bcc]
mov ebp, 1
add eax, 1
movups xmmword [rsp + 0x20], xmm0
mov r8, qword [rbx + 0x10]
lea rdi, str.__llu
imul eax, eax, 0x64
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], eax
cmp byte [rbx + 0x24], 0
cmovne r8, qword [rbx + 8]
xor esi, esi
call sym.sqlite3_str_appendf
mov r8d, dword [rbx + 0x20]
test r8d, r8d
jle 0x14028f9e3
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov r9, qword [rbx + 0x10]
xor edx, edx
mov rax, qword [rax + rsi*8]
lea rcx, [rax + 1]
add rax, r9
div rcx
mov r8, rax
cmp rax, 2
jne 0x14028f9cf
lea rax, [r9 + r9*4]
lea rdx, [rcx + rcx*4]
add rax, rax
lea rdx, [rcx + rdx*2]
cmp rax, rdx
cmovbe r8, rbp
mov rdx, rdi
mov rcx, r13
add rsi, 1
call sym.sqlite3_str_appendf
cmp dword [rbx + 0x20], esi
jg 0x14028f998
mov rdx, r13
mov rcx, r12
call sym.sqlite3ResultStrAccum
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r9d, dword [r13]
add r9d, edx
test r9d, r9d
jg 0x14028fa1a
test al, 0x10
je 0x14028f8df
mov r9d, 1
mov r8d, 1
mov edx, r9d
mov rcx, r13
call sym.sqlite3VdbeMemGrow
test eax, eax
jne 0x14028f8ef
movsxd r8, dword [r13]
movsxd rcx, dword [r13 + 0x10]
xor edx, edx
add rcx, qword [r13 + 8]
call sub.msvcrt.dll_memset
movzx eax, word [r13 + 0x14]
mov edx, dword [r13]
add edx, dword [r13 + 0x10]
and ah, 0xf9
mov dword [r13 + 0x10], edx
or eax, 0x10
mov word [r13 + 0x14], ax
test edx, edx
je 0x14028f8ef
mov rax, qword [rsi + 8]
mov rbx, qword [r13 + 8]
movzx edx, word [rax + 0x14]
test dl, 0x24
je 0x14028f902
mov rax, qword [rax]
mov ecx, eax
test eax, eax
je 0x14028f930
movsxd rdx, dword [rbx + 0x7c]
mov r8d, edx
cmp eax, 1
je 0x14028fbd0
movsxd rax, edx
mov rdx, qword [rbx + 0x80]
lea rax, [rax + rax*2]
shl rax, 4
add rax, rdx
cmp ecx, 2
je 0x14028fb90
cmp ecx, 3
jne 0x14028fbab
mov rbp, qword [rax + 0x10]
mov eax, dword [rbx + 0x1c]
pxor xmm0, xmm0
xor esi, esi
lea r13, [rsp + 0x20]
mov dword [rsp + 0x30], 0
lea rdi, str._llu
imul edx, eax, 0x64
mov dword [rsp + 0x38], 0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x34], edx
xor edx, edx
mov word [rsp + 0x3c], dx
test eax, eax
jle 0x14028f9e3
nop word [rax + rax]
mov r8, qword [rbp + rsi*8]
mov rdx, rdi
mov rcx, r13
add rsi, 1
call sym.sqlite3_str_appendf
cmp dword [rbx + 0x1c], esi
jg 0x14028fb10
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14028f9e3
sub eax, 1
mov dword [rsp + 0x38], eax
jmp 0x14028f9e3
movsd xmm0, qword [rax]
movsd xmm1, qword [0x14033d640]
comisd xmm1, xmm0
ja 0x14028f930
comisd xmm0, xmmword [0x14033d648]
ja 0x14028fba0
cvttsd2si rax, xmm0
jmp 0x14028fa82
mov rcx, r13
call sym.sqlite3ValueText.constprop.0
mov rbx, rax
jmp 0x14028f8f1
mov rbp, qword [rax]
jmp 0x14028fac7
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x80]
movsxd rax, r8d
add r8d, 1
lea rax, [rax + rax*2]
shl rax, 4
mov rbp, qword [rdx + rax + 8]
mov dword [rbx + 0x7c], r8d
jmp 0x14028fac7
test edx, edx
js 0x14028fc28
cmp dword [rbx + 0x74], edx
jle 0x14028f9ef
lea rax, [rdx + rdx*2]
shl rax, 4
add rax, qword [rbx + 0x80]
mov r8d, dword [rax + 0x20]
mov rdx, qword [rax + 0x18]
test r8d, r8d
jne 0x14028fc0d
mov rcx, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.sqlite3_result_int64
mov r9, 0xffffffffffffffff
mov rcx, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.sqlite3_result_blob
xor edx, edx
mov rcx, rbx
call sym.samplePushPrevious
mov dword [rbx + 0x7c], 0
xor edx, edx
jmp 0x14028fbd4