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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ffc0]
mov eax, 0x200c0
call fcn.140100df0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x200f0], rbx
mov qword [rsp + 0x200f8], rsi
mov qword [rsp + 0x20100], rdi
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [0x14013f500]
mov rcx, r8
call fcn.140005040
mov ecx, reloc.WSOCK32.dll_recv
test al, al
je 0x140084610
mov r8d, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcstoi64]
jmp 0x140084619
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wtoi64]
mov r12, rax
cmp rax, 1
jge 0x14008463f
mov rax, qword [0x14013b0f8]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, r14
call fcn.14005e3f0
jmp 0x140084b78
lea rax, vtable.TextStream.0
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], 0xffffffff
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov ecx, dword [0x140143fb8]
cmp ecx, 0xffffffff
je 0x140084693
mov dword [rsp + 0x44], ecx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rsp + 0x4e]
test eax, eax
cmove ecx, r15d
mov byte [rsp + 0x4e], cl
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x14013b0f8]
mov edi, dword [rax + 0x13c]
btr edi, 0x1f
mov dword [rbp + 0x20008], 0x30c
mov dword [rsp + 0x3c], r15d
lea r8, [rbp + 0x20008]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [0x140103ac0]
test al, al
je 0x140084b50
mov r8d, edi
lea rdx, [rbp + 0x20008]
lea rcx, [rsp + 0x30]
call fcn.1400dde40
test al, al
je 0x140084b50
mov r13d, dword gs:[0x48]
mov rdi, r15
test r12, r12
jle 0x1400847ff
nop word [rax + rax]
mov r9d, 1
mov r8d, 0xffff
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400ddfc0
mov esi, eax
test eax, eax
je 0x1400847a2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140143d4c]
mov rcx, qword [0x14013b0f8]
cmp eax, dword [rcx + 0x118]
jbe 0x140084798
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14008478c
cmp dword [0x1401430c0], r13d
jne 0x14008478c
mov edx, 1
or ecx, 0xffffffff
call fcn.140001b80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140143d4c], eax
inc rdi
cmp rdi, r12
jl 0x140084720
jmp 0x140084805
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013b0f8]
mov dword [rcx + 0x40], eax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x1400847db
cmp qword [rsp + 0x60], 0
jne 0x1400847db
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r15d
mov word [rsp + 0x5c], r15w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WSOCK32.dll_recv]
mov dl, 1
mov rcx, r14
call fcn.14005e3f0
mov edi, eax
jmp 0x140084b6c
mov esi, dword [rbp + 0x20008]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14008482e
cmp qword [rsp + 0x60], 0
jne 0x14008482e
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r15d
mov word [rsp + 0x5c], r15w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WSOCK32.dll_recv]
test esi, esi
je 0x140084b1d
lea edx, [rsi - 1]
cmp word [rbp + rdx*2 - 0x40], 0xa
cmove esi, edx
test esi, esi
je 0x140084b1d
mov r12d, esi
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x140084885
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8d, r12d
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx + 0x10]
call fcn.1400e6e20
jmp 0x140084ada
cmp r12, 0xffffffffffffffff
jne 0x1400848b2
lea rax, [rbp - 0x40]
cmp qword [rbx + 8], rax
jne 0x14008489e
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x1400848b2
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rax, [r12 + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x1400848d1
mov rdx, r12
lea rcx, [rbp - 0x40]
call fcn.140006bc0
jmp 0x140084ada
mov rcx, qword [0x14013b0d0]
cmp rsi, rcx
jbe 0x1400848ef
cmp rsi, qword [rbx + 0x18]
jbe 0x1400848ef
lea rdx, [0x140124720]
jmp 0x140084ac7
cmp rax, 2
jae 0x140084909
xor r8d, r8d
lea edx, [r8 + 3]
mov rcx, rbx
call fcn.1400e74d0
jmp 0x140084b37
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140084926
and al, 0x3d
mov byte [rbx + 0x21], al
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [0x14013b0d0]
and byte [rbx + 0x21], 0x82
mov r8, qword [rbx + 0x18]
cmp rsi, r8
jbe 0x140084aef
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x14008495d
cmp al, 2
je 0x14008499b
mov rdi, qword [rbp + 0x20008]
mov rax, qword [rbp + 0x20008]
jmp 0x140084a90
mov edi, 0x80
cmp rsi, rdi
ja 0x14008499b
cmp rsi, 8
ja 0x140084974
mov edi, 8
jmp 0x140084981
cmp rsi, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x140084ade
mov byte [rbx + 0x20], 1
jmp 0x140084a90
cmp rsi, 0x20
jae 0x1400849ab
mov edi, SafeArrayAllocDescriptor
jmp 0x140084a55
mov edi, 0x208
cmp rsi, rdi
jb 0x140084a55
cmp rsi, 0x50000
jae 0x140084a11
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x1400849d8
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
xor eax, eax
movsd xmm1, qword [0x1401279d8]
comisd xmm0, xmm1
jbe 0x140084a07
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140084a07
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140084a55
cmp rsi, 0x320000
jae 0x140084a23
lea rdi, [rsi + 0x8000]
jmp 0x140084a55
cmp rsi, 0xc80000
jae 0x140084a4e
mov rdi, rsi
movabs rax, 0x47ae147ae147ae15
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140084a55
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140084a76
test r8, r8
je 0x140084a76
mov sil, 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140084a79
xor sil, sil
test rdi, rdi
js 0x140084a9e
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140084a9e
mov byte [rbx + 0x20], 2
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
and byte [rbx + 0x21], 0x7f
jmp 0x140084aef
test sil, sil
je 0x140084ab4
mov qword [rbx + 0x18], r15
lea rax, [0x140141fa8]
mov qword [rbx + 8], rax
jmp 0x140084abc
mov rax, qword [rbx + 8]
mov word [rax], r15w
mov qword [rbx + 0x10], r15
lea rdx, str.Out_of_memory.
lea r8, [0x1401035ac]
lea rcx, [0x140143150]
call fcn.14005f7b0
test eax, eax
jne 0x140084b37
lea rcx, [rsp + 0x30]
call fcn.1400052d0
xor eax, eax
jmp 0x140084b78
mov rcx, qword [rbx + 8]
lea rax, [rbp - 0x40]
cmp rcx, rax
je 0x140084b0a
lea r8, [r12 + r12]
lea rdx, [rbp - 0x40]
call qword [sym.imp.MSVCR100.dll_memmove]
lea rcx, [r12 + r12]
mov rax, qword [rbx + 8]
mov word [rcx + rax], r15w
mov qword [rbx + 0x10], rcx
jmp 0x140084b37
mov rcx, rbx
call fcn.14002f9e0
test eax, eax
jne 0x140084b37
lea rcx, [rsp + 0x30]
call fcn.1400052d0
xor eax, eax
jmp 0x140084b78
mov rax, qword [0x14013b0f8]
mov dword [rax + 0x40], r15d
xor edx, edx
mov rcx, r14
call fcn.14005e3f0
mov edi, eax
jmp 0x140084b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013b0f8]
mov dword [rcx + 0x40], eax
mov dl, 1
mov rcx, r14
call fcn.14005e3f0
mov edi, eax
lea rcx, [rsp + 0x30]
call fcn.1400052d0
mov eax, edi
lea r11, [rsp + 0x200c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret