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

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0xd8
mov dword [rsp + 0x90], 0x65b
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x00420804]
and eax, 2
test eax, eax
jne 0x410b55
mov eax, dword [0x00420804]
and eax, 1
test eax, eax
je 0x410e88
mov eax, dword [rsp + 0xf0]
cmp dword [0x00420808], eax
jae 0x410b6b
xor eax, eax
jmp 0x410f65
mov ecx, 0x800
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x410b8d
mov eax, 0xe
jmp 0x410f65
cmp dword [rsp + 0xf0], 0
jne 0x410c4b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xb0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0xb4], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x8e]
movzx edx, word [rsp + 0x8c]
movzx r8d, word [rsp + 0x8a]
movzx r9d, word [rsp + 0x88]
movzx r10d, word [rsp + 0x86]
movzx r11d, word [rsp + 0x82]
movzx ebx, word [rsp + 0x80]
mov edi, dword [rsp + 0xb0]
mov dword [rsp + 0x60], edi
mov edi, dword [rsp + 0xb4]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
mov r9d, ebx
lea r8, [0x00420c50]
mov edx, 0x400
mov rcx, qword [rsp + 0x70]
call fcn.004101d0
jmp 0x410dc1
cmp dword [rsp + 0xf0], 3
jne 0x410d0a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xb8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0xbc], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x8e]
movzx edx, word [rsp + 0x8c]
movzx ebx, word [rsp + 0x8a]
movzx edi, word [rsp + 0x88]
movzx r8d, word [rsp + 0x86]
movzx r9d, word [rsp + 0x82]
movzx r10d, word [rsp + 0x80]
mov r11d, dword [rsp + 0xb8]
mov dword [rsp + 0x60], r11d
mov r11d, dword [rsp + 0xbc]
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r9d
mov r9d, r10d
lea r8, [0x00420cc0]
mov edx, 0x400
mov rcx, qword [rsp + 0x70]
call fcn.004101d0
jmp 0x410dc1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xc0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0xc4], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x8e]
movzx edx, word [rsp + 0x8c]
movzx ebx, word [rsp + 0x8a]
movzx edi, word [rsp + 0x88]
movzx r8d, word [rsp + 0x86]
movzx r9d, word [rsp + 0x82]
movzx r10d, word [rsp + 0x80]
mov r11d, dword [rsp + 0xc0]
mov dword [rsp + 0x68], r11d
mov r11d, dword [rsp + 0xc4]
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r9d
mov r9d, r10d
lea r8, [0x00420d30]
mov edx, 0x400
mov rcx, qword [rsp + 0x70]
call fcn.004101d0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcslen]
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x98], rax
mov eax, 0x400
sub eax, dword [rsp + 0xa0]
mov eax, eax
mov ecx, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rdx + rcx*2]
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0xf8]
mov rdx, rax
call fcn.004122a0
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcslen]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0x3fd
jb 0x410e70
mov rax, qword [rsp + 0x70]
mov word [rax + 0x7fa], 0xd
mov rax, qword [rsp + 0x70]
mov word [rax + 0x7fc], 0xa
mov rax, qword [rsp + 0x70]
mov word [rax + 0x7fe], 0
jmp 0x410e86
lea r8, [0x00420da4]
mov edx, 0x400
mov rcx, qword [rsp + 0x70]
call fcn.00412250
jmp 0x410e94
mov eax, dword [rsp + 0x90]
jmp 0x410f65
mov eax, dword [0x00420804]
and eax, 2
test eax, eax
je 0x410ecc
mov eax, dword [0x00420804]
and eax, 0x10
test eax, eax
jne 0x410ebb
mov eax, dword [0x00420804]
and eax, 4
test eax, eax
je 0x410ecc
mov rcx, qword [rsp + 0x70]
call fcn.00410a70
mov dword [rsp + 0x90], eax
mov eax, dword [0x00420804]
and eax, 1
test eax, eax
je 0x410f4b
mov rcx, qword [rsp + 0x70]
call fcn.00410f80
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x410f08
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov eax, 0xe
jmp 0x410f65
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
mov eax, dword [0x00420804]
and eax, 0x10
test eax, eax
jne 0x410f3a
mov eax, dword [0x00420804]
and eax, 4
test eax, eax
je 0x410f4b
mov rcx, qword [rsp + 0x70]
call fcn.00411020
mov dword [rsp + 0x90], eax
cmp qword [rsp + 0x70], 0
je 0x410f5e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov eax, dword [rsp + 0x90]
add rsp, 0xd8
pop rdi
pop rbx
ret