Function at 0x140067880
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r15d, r15d
mov r12, r8
mov r13d, r15d
mov ebx, r15d
or rax, 0xffffffffffffffff
mov rsi, rcx
nop
inc rax
cmp byte [r8 + rax], bl
jne 0x1400678b0
cmp rax, 0x14
jbe 0x1400678c6
add r12, 0xffffffffffffffec
add r12, rax
mov rax, qword [rcx + 0x28]
mov dword [rax + 0x7170], 1
mov qword [rax + 0x71b0], r15
mov qword [rax + 0x71a8], r15
mov qword [rax + 0x7188], r15
mov qword [rax + 0x71b8], r15
mov qword [rax + 0x71cc], r15
mov rcx, qword [rcx + 0x10]
cmp rcx, 0x12
jae 0x14006791e
mov r9, rdx
mov r8d, 0x12
sub r8, rcx
mov edx, 1
add rcx, qword [rsi]
call fcn.140071fb0
add qword [rsi + 0x10], rax
mov rax, qword [rsi]
lea r8, [rbp - 0x30]
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rsi + 0x20]
mov qword [rbp - 0x10], rax
mov qword [rsp + 0xb0], rdi
mov qword [rbp - 0x20], r15
mov qword [rbp - 8], r15
call fcn.140040d50
mov r14, rax
cmp rax, 0xffffffffffffff88
ja 0x140067b84
nop dword [rax + rax]
mov r8, qword [rbp - 8]
mov r9d, ebx
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x30]
call fcn.140066d60
add r13, qword [rbp - 8]
cmp dword [0x14009db1c], 2
mov dword [rbp + 0x40], eax
jl 0x140067a6f
mov rdi, qword [0x14009ee40]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [0x14009ee5c], r15d
mov rbx, qword [rbp - 0x40]
jne 0x1400679f1
lea rcx, [0x14009eeb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1400679e7
cmp dword [0x14009eea4], 1
jl 0x1400679e7
lea ecx, [rax + 2]
call fcn.14006f398
mov rcx, rax
lea rdx, str.ERROR:_QueryPerformanceFrequency___failure_n
call fcn.140041730
mov dword [0x14009ee5c], 1
sub rbx, rdi
xor edx, edx
imul rax, rbx, 0xf4240
div qword [0x14009eeb0]
cmp rax, 0x28b0a
ja 0x140067a15
cmp dword [0x14009db1c], 4
jl 0x140067a6f
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x38]
mov ecx, 2
mov rbx, qword [rbp + 0x58]
add rbx, r13
mov qword [0x14009ee40], rax
shr rbx, 0x14
call fcn.14006f398
mov rcx, rax
lea rdx, str._r__20.20s_:__u_MB...
mov r9d, ebx
mov r8, r12
call fcn.140041730
cmp dword [0x14009db1c], 4
jl 0x140067a6f
mov ecx, 2
call fcn.14006f398
mov rcx, rax
call fcn.14006f5d4
mov rbx, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
test rbx, rbx
je 0x140067a92
mov rcx, qword [rsi]
mov r8, rdi
sub r8, rbx
lea rdx, [rcx + rbx]
call fcn.14006dfa0
sub qword [rsi + 0x10], rbx
test r14, r14
je 0x140067b73
cmp rdi, rbx
jne 0x140067b4c
mov r8, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp r14, r8
cmovb r8, r14
cmp rcx, r8
jae 0x140067ad5
mov r9, qword [rbp + 0x48]
sub r8, rcx
add rcx, qword [rsi]
mov edx, 1
call fcn.140071fb0
test rax, rax
je 0x140067b1e
add qword [rsi + 0x10], rax
mov rax, qword [rsi]
lea r8, [rbp - 0x30]
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rsi + 0x20]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x20], r15
mov qword [rbp - 8], r15
call fcn.140040d50
mov r14, rax
cmp rax, 0xffffffffffffff88
ja 0x140067b84
mov ebx, dword [rbp + 0x40]
jmp 0x140067970
cmp dword [0x14009db1c], 1
jl 0x140067bd1
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str._s_:_Read_error__39__:_premature_end__n
mov r8, r12
call fcn.140041730
jmp 0x140067bd1
cmp dword [0x14009db1c], 1
jl 0x140067bd1
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str._s_:_Decoding_error__37__:_should_consume_entire_input__n
mov r8, r12
call fcn.140041730
jmp 0x140067bd1
mov edx, dword [rbp + 0x40]
mov rcx, qword [rsi + 0x30]
call fcn.140067450
mov rax, r13
jmp 0x140067bd8
cmp dword [0x14009db1c], 1
jl 0x140067bc3
cmp r14, 0xffffffffffffff88
jbe 0x140067b99
mov r15d, r14d
neg r15d
mov ecx, r15d
call fcn.140001520
mov ecx, 2
mov rbx, rax
call fcn.14006f398
mov rcx, rax
lea rdx, str._s_:_Decoding_error__36__:__s__n
mov r9, rbx
mov r8, r12
call fcn.140041730
mov r8, r12
mov rdx, r14
mov rcx, rsi
call fcn.140067740
mov rax, 0xfffffffffffffffe
mov rdi, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret