Function at 0x14005e550
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.1401110b0
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 rsi, rdx
mov r12, rcx
mov r13, qword [0x14016f6f0]
mov rcx, r8
call fcn.140013c70
mov rcx, rbx
test al, al
je 0x14005e5bb
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14010a4d8
jmp 0x14005e5c0
call fcn.140109998
mov rdi, rax
cmp rax, 1
jge 0x14005e5e6
mov rax, qword [0x140169c00]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, r12
call fcn.14003ca30
jmp 0x14005e91b
lea r15, vtable.TextStream.0
mov qword [rsp + 0x30], r15
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 0xffffffff
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov ecx, dword [0x140174ec8]
cmp ecx, 0xffffffff
je 0x14005e63a
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, r14d
mov byte [rsp + 0x4e], cl
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x140169c00]
mov r9d, dword [rax + 0x13c]
btr r9d, 0x1f
mov r8d, 0x30c
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400defb0
test al, al
jne 0x14005e6a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140169c00]
mov dword [rcx + 0x40], eax
mov dl, 1
mov rcx, r12
call fcn.14003ca30
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400250e0
jmp 0x14005e919
mov rbx, r14
test rdi, rdi
jle 0x14005e7ec
mov r9d, 1
mov r8d, 0xffff
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400df160
mov esi, eax
test eax, eax
je 0x14005e72c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140171eac]
mov rcx, qword [0x140169c00]
cmp eax, dword [rcx + 0x118]
jbe 0x14005e71f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005e713
mov edx, 1
or ecx, 0xffffffff
call fcn.140001760
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140171eac], eax
inc rbx
cmp rbx, rdi
jl 0x14005e6b0
jmp 0x14005e7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140169c00]
mov dword [rcx + 0x40], eax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005e765
cmp qword [rsp + 0x60], 0
jne 0x14005e765
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r14d
mov word [rsp + 0x5c], r14w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov dl, 1
mov rcx, r12
call fcn.14003ca30
mov ebx, eax
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005e7b7
cmp qword [rsp + 0x60], 0
jne 0x14005e7b7
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [0x140135758]
mov dword [rsp + 0x3c], r14d
mov word [rsp + 0x5c], r14w
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14005e7e7
mov eax, dword [rsp + 0x38]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14005e7de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0xffffffffffffffff
jmp 0x14005e905
mov esi, dword [rbp + 0x20008]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005e81b
cmp qword [rsp + 0x60], 0
jne 0x14005e81b
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r14d
mov word [rsp + 0x5c], r14w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test esi, esi
je 0x14005e86e
lea edx, [rsi - 1]
cmp word [rbp + rdx*2 - 0x40], 0xa
cmove esi, edx
test esi, esi
je 0x14005e86e
mov r8d, esi
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.1400e9bc0
test eax, eax
jne 0x14005e88b
lea rcx, [rsp + 0x30]
call fcn.1400250e0
xor eax, eax
jmp 0x14005e91b
mov rcx, r13
call fcn.140023100
test eax, eax
jne 0x14005e88b
lea rcx, [rsp + 0x30]
call fcn.1400250e0
xor eax, eax
jmp 0x14005e91b
mov rax, qword [0x140169c00]
mov dword [rax + 0x40], r14d
xor edx, edx
mov rcx, r12
call fcn.14003ca30
mov ebx, eax
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005e8d5
cmp qword [rsp + 0x60], 0
jne 0x14005e8d5
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [0x140135758]
mov dword [rsp + 0x3c], r14d
mov word [rsp + 0x5c], r14w
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14005e905
mov eax, dword [rsp + 0x38]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14005e8fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
test rcx, rcx
mov qword [rsp + 0x30], r15
je 0x14005e919
call fcn.140108f48
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