Function at 0x1801239f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r12d, r9d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r8d
mov r13, rdx
mov qword [rsp + 0x48], rdx
mov rbx, rcx
mov r14, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x108]
cmp dword [rcx + 0x380], 0x991144aa
je 0x180123a5a
xor ecx, ecx
call fcn.1800c57e0
mov dword [rbx + 0xb74], 0
mov edi, 1
mov ebp, edi
test r12d, r12d
cmovne ebp, r12d
mov dword [rsp + 0x64], ebp
cmp byte [rbx + 0xb72], 0
je 0x180123aa1
mov edi, 3
mov dword [rbx + 0xb74], edi
mov rax, qword [rsi]
lea rdx, str.Already_at_end_of_stream
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x180123fbc
lea rcx, [rbx + 0xd08]
call fcn.1800c3810
test al, al
jne 0x180123c0a
cmp qword [rbx + 0xb48], 0
jne 0x180123c18
mov ecx, 0x118
call fcn.18007b16c
mov rbp, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180123af3
xor edx, edx
mov r8d, 0x118
mov rcx, rax
call fcn.180211600
mov rcx, rbp
call fcn.18012af10
nop
mov qword [rbx + 0xb48], rax
mov r8, rsi
lea rdx, [rbx + 0xd08]
mov rcx, rax
call fcn.18012baa0
test al, al
jne 0x180123b22
mov eax, 4
mov dword [rbx + 0xb74], eax
xor al, al
jmp 0x180123fbc
mov rdx, rsi
mov rcx, qword [rbx + 0xb48]
call fcn.18012ba10
mov rbp, rax
xor r15d, r15d
test rax, rax
jg 0x180123b45
mov qword [rbx + 0xb50], r15
jmp 0x180123bad
movsxd rcx, dword [rbx + 0x448]
test ecx, ecx
jle 0x180123be5
movsxd rax, dword [rbx + 0x44c]
test eax, eax
jle 0x180123be5
mov r15, rax
imul r15, rcx
mov rcx, qword [rbx + 0xb48]
cmp r15, rbp
jl 0x180123b83
mov qword [rbx + 0xb50], 0
jmp 0x180123bb4
mov r8, rsi
mov rdx, r15
call fcn.180176d10
test al, al
jne 0x180123be5
mov rax, qword [rsi]
lea rdx, str.Failed_to_skip_forward_to_source_file_part.
mov rcx, rsi
call qword [rax + 0x28]
mov qword [rbx + 0xb50], 0
mov rcx, qword [rbx + 0xb48]
mov byte [rbx + 0xb72], 1
test rcx, rcx
je 0x180123bc8
mov rax, qword [rcx]
mov edx, edi
call qword [rax + 0x50]
mov qword [rbx + 0xb48], 0
mov edi, 3
mov dword [rbx + 0xb74], edi
xor al, al
jmp 0x180123fbc
movsxd rax, dword [rbx + 0x44c]
test eax, eax
jle 0x180123bff
sub rbp, r15
mov qword [rbx + 0xb50], rax
cmp rax, rbp
jle 0x180123c06
mov qword [rbx + 0xb50], rbp
mov ebp, dword [rsp + 0x64]
cmp qword [rbx + 0xb48], 0
je 0x180123d35
mov edx, dword [rsp + 0x40]
mov rax, qword [rbx + 0xb50]
mov r15d, eax
cmp rax, rdx
cmovg r15d, edx
setle al
mov byte [rbx + 0xb72], al
mov rcx, r13
call fcn.1800be430
mov edi, eax
lea edx, [r15 + rax]
mov rcx, r13
call fcn.1800bdb80
test al, al
jne 0x180123c5f
mov dword [rbx + 0xb74], 5
jmp 0x180123fbc
mov edx, edi
mov rcx, r13
call fcn.1800bdf80
mov dword [rsp + 0x64], 0
mov byte [rsp + 0x60], 0
mov rcx, qword [rbx + 0xb48]
mov r10, qword [rcx]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x64]
mov r8d, r15d
mov rdx, rax
call qword [r10 + ioctlsocket]
movzx ebp, al
cmp byte [rsp + 0x60], 0
je 0x180123cb8
mov byte [rbx + 0xb72], 1
mov r8d, dword [rsp + 0x64]
test r8d, r8d
je 0x180123cf0
sub qword [rbx + 0xb50], r8
lea edx, [r8 + rdi]
mov rcx, r13
call fcn.1800bf310
mov eax, dword [rsp + 0x64]
add qword [rbx + 0x438], rax
cmp byte [rbx + 0xcf4], 0
jne 0x180123cf0
add qword [rbx + 0x440], rax
test bpl, bpl
jne 0x180123d2c
mov eax, 4
mov dword [rbx + 0xb74], eax
mov rax, qword [r14]
mov rdx, rsi
mov rcx, r14
call qword [rax + 0x18]
test al, al
je 0x180123d1a
mov dword [rbx + 0xb74], 2
cmp byte [rsp + 0x60], 0
je 0x180123d2c
mov edi, 3
mov dword [rbx + 0xb74], edi
movzx eax, bpl
jmp 0x180123fbc
mov rdx, qword [rbx + 0xb60]
test rdx, rdx
je 0x180123e77
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x68]
call fcn.1800ba120
nop
mov rcx, r13
call fcn.1800be430
mov r15d, eax
mov rcx, qword [rbx + 0xb60]
mov r10, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9d, ebp
mov r8d, dword [rsp + 0x40]
mov rdx, r13
call qword [r10 + 0x18]
movzx ebp, al
mov rcx, r13
call fcn.1800be430
cmp eax, r15d
jbe 0x180123db9
sub eax, r15d
mov ecx, eax
add qword [rbx + 0x438], rcx
cmp byte [rbx + 0xcf4], 0
jne 0x180123db9
add qword [rbx + 0x440], rcx
mov rcx, qword [rbx + 0xb60]
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
je 0x180123dea
cmp byte [rsi + 0x161], 0
je 0x180123de3
mov rax, qword [rsi]
lea rdx, str.Reached_end_of_stream.
mov rcx, rsi
call qword [rax + 0x30]
mov byte [rbx + 0xb72], 1
test bpl, bpl
jne 0x180123e64
cmp byte [rbx + 0xb72], bpl
je 0x180123e05
mov edi, 3
mov dword [rbx + 0xb74], edi
jmp 0x180123e48
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x20]
test al, al
je 0x180123e1a
mov dword [rbx + 0xb74], edi
jmp 0x180123e48
mov rax, qword [r14]
mov rdx, rsi
mov rcx, r14
call qword [rax + 0x18]
test al, al
je 0x180123e3b
mov dword [rbx + 0xb74], 2
mov edi, 2
jmp 0x180123e48
mov eax, 4
mov dword [rbx + 0xb74], eax
mov edi, eax
cmp byte [rsi + 0x161], 0
je 0x180123e64
mov r8d, edi
lea rdx, str.readFailReason
mov rcx, rsi
call fcn.180106220
nop
lea rcx, [rsp + 0x68]
call fcn.1800ba230
movzx eax, bpl
jmp 0x180123fbc
lea rcx, [rbx + 0xab0]
call fcn.180124950
mov rbp, rax
test rax, rax
jne 0x180123ed4
mov eax, 0xfa
cmp dword [rsp + 0x44], eax
cmovb r12d, eax
call sub.KERNEL32.dll_GetTickCount
mov r13d, eax
mov ecx, 2
call fcn.180104b90
lea rcx, [rbx + 0xab0]
call fcn.180124950
mov rbp, rax
call sub.KERNEL32.dll_GetTickCount
sub eax, r13d
cmp eax, r12d
ja 0x180123f75
test rbp, rbp
je 0x180123ea0
mov r13, qword [rsp + 0x48]
mov byte [rsp + 0x60], 0
mov rcx, r13
call fcn.1800be430
mov r12d, eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x44]
mov rcx, rbp
call fcn.180124bf0
movzx esi, al
mov rcx, rbp
call fcn.180124590
test al, al
je 0x180123f1a
mov byte [rbx + 0xb72], 1
mov rcx, r13
call fcn.1800be430
cmp eax, r12d
jbe 0x180123f43
sub eax, r12d
mov ecx, eax
add qword [rbx + 0x438], rcx
cmp byte [rbx + 0xcf4], 0
jne 0x180123f43
add qword [rbx + 0x440], rcx
test sil, sil
jne 0x180123fac
movzx ecx, byte [rsp + 0x60]
test cl, cl
je 0x180123f5f
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
movzx ecx, byte [rsp + 0x60]
cmp byte [rbx + 0xb72], 0
je 0x180123f9c
mov edi, 3
mov dword [rbx + 0xb74], edi
jmp 0x180123fac
test rbp, rbp
jne 0x180123ecf
mov dword [rbx + 0xb74], 5
mov rax, qword [rsi]
lea rdx, str.No_stream_source.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x180123fbc
mov eax, 4
test cl, cl
cmovne eax, edi
mov dword [rbx + 0xb74], eax
lea rcx, [rbx + 0xab0]
call fcn.180124aa0
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret