Function at 0x14005dc20
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.1400c8fe0
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 r12, rcx
mov r13, qword [0x140103f30]
mov rcx, r8
call fcn.140012eb0
mov rcx, rbx
test al, al
je 0x14005dc8c
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
jmp 0x14005dc92
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov rsi, rax
cmp rax, 1
jge 0x14005dcb8
mov rax, qword [0x1400fe060]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, r12
call fcn.140046680
jmp 0x14005df4b
lea rax, vtable.TextStream.0
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov ecx, dword [0x140105f90]
cmp ecx, 0xffffffff
je 0x14005dd08
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, ebx
mov byte [rsp + 0x4e], cl
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x1400fe060]
mov r9d, dword [rax + 0x13c]
btr r9d, 0x1f
mov r8d, 0x30c
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400a8b50
test al, al
jne 0x14005dd5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dword [rcx + 0x40], eax
mov dl, 1
jmp 0x14005df35
mov r15d, dword gs:[0x48]
mov rdi, rbx
test rsi, rsi
jle 0x14005de9a
nop dword [rax]
nop word [rax + rax]
mov r9d, 1
mov r8d, 0xffff
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400a8d00
mov r14d, eax
test eax, eax
je 0x14005de05
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140105d3c]
mov rcx, qword [0x1400fe060]
cmp eax, dword [rcx + 0x118]
jbe 0x14005ddf8
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005ddec
cmp dword [0x140105110], r15d
jne 0x14005ddec
mov edx, 1
lea ecx, [rdx - 2]
call fcn.1400019b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140105d3c], eax
inc rdi
cmp rdi, rsi
jl 0x14005dd80
jmp 0x14005dea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dword [rcx + 0x40], eax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005de3d
cmp qword [rsp + 0x60], 0
jne 0x14005de3d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], ebx
mov word [rsp + 0x5c], bx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x14005de83
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [r9 - 1]
mov rcx, qword [0x140101c20]
call fcn.1400afca0
jmp 0x14005df3d
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, r12
call fcn.1400465b0
jmp 0x14005df3d
mov r14d, dword [rbp + 0x20008]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x14005dec9
cmp qword [rsp + 0x60], 0
jne 0x14005dec9
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], ebx
mov word [rsp + 0x5c], bx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test r14d, r14d
je 0x14005df0f
lea edx, [r14 - 1]
cmp word [rbp + rdx*2 - 0x40], 0xa
cmovne edx, r14d
test edx, edx
je 0x14005df0f
mov r8d, edx
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.1400afca0
test eax, eax
jne 0x14005df29
jmp 0x14005df3f
mov byte [rsp + 0x20], 1
xor r9d, r9d
xor edx, edx
lea r8, [r9 - 1]
mov rcx, r13
call fcn.1400afca0
test eax, eax
je 0x14005df3f
mov rax, qword [0x1400fe060]
mov dword [rax + 0x40], ebx
xor edx, edx
mov rcx, r12
call fcn.140046680
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400277b0
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