Function at 0x14004f660
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.1400c0680
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x200f0], rbx
mov qword [rsp + 0x200f8], rsi
mov qword [rsp + 0x20100], rdi
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov r15, qword [0x1401080a0]
mov rcx, r8
call fcn.140010ae0
mov rcx, rbx
test al, al
je 0x14004f6cb
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400af464
jmp 0x14004f6d0
call fcn.1400aeff4
mov rsi, rax
cmp rax, 1
jge 0x14004f6f6
mov rax, qword [0x140101a58]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, r14
call fcn.140038ce0
jmp 0x14004f9d5
lea r13, vtable.TextStream.0
mov qword [rsp + 0x30], r13
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov ecx, dword [0x1401090b8]
cmp ecx, 0xffffffff
je 0x14004f749
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, r12d
mov byte [rsp + 0x4e], cl
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x140101a58]
mov r9d, dword [rax + 0x13c]
btr r9d, 0x1f
mov r8d, 0x30c
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140088ec0
test al, al
jne 0x14004f79f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140101a58]
mov dword [rcx + 0x40], eax
mov dl, 1
jmp 0x14004f951
mov rbx, r12
test rsi, rsi
jle 0x14004f8c3
nop dword [rax + rax]
mov r9d, 1
mov r8d, 0xffff
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.140089070
mov edi, eax
test eax, eax
je 0x14004f82c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140108e7c]
mov rcx, qword [0x140101a58]
cmp eax, dword [rcx + 0x118]
jbe 0x14004f81f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004f813
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140108e7c], eax
inc rbx
cmp rbx, rsi
jl 0x14004f7b0
jmp 0x14004f8c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140101a58]
mov dword [rcx + 0x40], eax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14004f865
cmp qword [rsp + 0x60], 0
jne 0x14004f865
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r12d
mov word [rsp + 0x5c], r12w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [0x140101a58]
lea rdx, [0x1400e352c]
test byte [rax + 0x140], 1
jne 0x14004f8ac
mov byte [rsp + 0x20], 1
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rcx, qword [0x140105d40]
call fcn.14008ec90
jmp 0x14004f959
lea r9, [0x1400cffcc]
xor r8d, r8d
mov rcx, r14
call fcn.140038c10
jmp 0x14004f959
mov edi, dword [rbp + 0x20008]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14004f8f2
cmp qword [rsp + 0x60], 0
jne 0x14004f8f2
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r12d
mov word [rsp + 0x5c], r12w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test edi, edi
je 0x14004f925
lea edx, [rdi - 1]
cmp word [rbp + rdx*2 - 0x40], 0xa
cmove edi, edx
test edi, edi
je 0x14004f925
mov r8d, edi
xor r9d, r9d
lea rdx, [rbp - 0x40]
jmp 0x14004f92e
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov byte [rsp + 0x20], 1
mov rcx, r15
call fcn.14008ec90
test eax, eax
jne 0x14004f944
mov ebx, r12d
jmp 0x14004f95b
mov rax, qword [0x140101a58]
mov dword [rax + 0x40], r12d
xor edx, edx
mov rcx, r14
call fcn.140038ce0
mov ebx, eax
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14004f98e
cmp qword [rsp + 0x60], 0
jne 0x14004f98e
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [0x1400e45a8]
mov dword [rsp + 0x3c], r12d
mov word [rsp + 0x5c], r12w
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14004f9be
mov eax, dword [rsp + 0x38]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14004f9b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004f9d3
call fcn.1400adb8c
nop
mov eax, ebx
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