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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x3e0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x2a0]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
xor ebp, ebp
mov esi, ebp
call qword [rax + 0x38]
cmp dword [rsp + 0x34], ebp
jl 0x10005fd1c
cmp dword [rdi + 0x27c], ebp
je 0x10005fd3f
mov dword [rdi + 0x274], ebp
mov rcx, qword [rdi + 0x268]
cmp rcx, rbp
je 0x10005fd3b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x268], rbp
mov esi, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
mov r12d, 1
lea r13d, [r12 + 1]
cmp ecx, ebp
je 0x10005fdf6
sub ecx, r12d
je 0x10005fde9
sub ecx, r12d
je 0x10005fdd2
sub ecx, r12d
je 0x10005fd8e
sub ecx, r12d
je 0x10005fd84
cmp ecx, r12d
je 0x10005fd7d
mov ebx, 0x2779
jmp 0x10005fe49
mov ebx, 0x2778
jmp 0x10005fdee
mov ebx, 0x2777
jmp 0x10005fe49
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x24]
cmp eax, 0x1d4c0
jbe 0x10005fdcb
mov dword [rdi + 0x274], ebp
mov rcx, qword [rdi + 0x268]
mov ebx, 0x277a
cmp rcx, rbp
je 0x10005fdc2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x268], rbp
lea rdx, [0x10002b760]
jmp 0x10005fe31
mov ebx, 0x2775
jmp 0x10005fe49
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x24]
cmp eax, 0x1d4c0
ja 0x10005fe06
mov ebx, 0x2776
jmp 0x10005fe49
mov ebx, 0x277a
mov dword [rdi + 0x274], ebp
jmp 0x10005fe49
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x24]
cmp eax, 0x1d4c0
jbe 0x10005fe44
mov dword [rdi + 0x274], ebp
mov rcx, qword [rdi + 0x268]
mov ebx, 0x277a
cmp rcx, rbp
je 0x10005fe2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x268], rbp
lea rdx, [0x10002b738]
mov esi, 0x80072efd
mov ecx, r13d
mov dword [rsp + 0x34], esi
call fcn.1000526dc
jmp 0x10005fe49
mov ebx, 0x2774
mov r8d, dword [rsp + 0x34]
cmp r8d, ebp
je 0x10005fe6c
lea rdx, [0x10002c510]
mov ecx, r13d
call fcn.1000527f4
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x38]
cmp ecx, 0xffffffff
jne 0x10005fed9
mov rcx, qword [0x100088070]
mov edi, 0x80
lea r8, [rsp + 0x50]
mov r9d, edi
mov edx, 0x26e8
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
jne 0x10005ff16
lea rdx, [0x100025048]
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x50]
sub rdx, rax
lea rax, [rdi + 0x7fffff7e]
cmp rax, rbp
je 0x10005fecc
movzx eax, word [rdx + rcx]
cmp ax, bp
je 0x10005fecc
mov word [rcx], ax
add rcx, r13
sub rdi, r12
jne 0x10005feac
cmp rdi, rbp
jne 0x10005fed4
sub rcx, r13
mov word [rcx], bp
jmp 0x10005ff16
mov edi, dword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp edi, ebp
jbe 0x10005fef9
cmp rax, rbp
je 0x10005ff16
sub ecx, dword [rsp + 0x3c]
xor edx, edx
mov eax, ecx
div edi
mov edx, eax
jmp 0x10005ff0c
cmp rax, rbp
je 0x10005ff16
sub ecx, dword [rsp + 0x3c]
mov eax, 0x10624dd3
mul ecx
shr edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.100058214
mov rcx, qword [0x100088070]
lea r8, [rsp + 0x1d0]
mov r9d, 0x100
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
je 0x10005ffef
xor eax, eax
or r8, 0xffffffffffffffff
lea rdi, [rsp + 0x1d0]
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x50]
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r8
repne scasw ax, word [rdi]
mov rax, r13
not rcx
sub rcx, r12
lea rbx, [rdx + rcx + 0x21]
mul rbx
cmovo rax, r8
mov rcx, rax
call fcn.10007fa96
mov rdi, rax
cmp rax, rbp
je 0x10005ffef
lea rax, [rsp + 0x150]
cmp rax, rbp
je 0x10005ffa8
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x150]
call fcn.1000585c8
jmp 0x10005ffad
mov eax, 0x80004005
cmp eax, ebp
jl 0x10005ffe7
lea rax, [rsp + 0x150]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x1d0]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.10003a080
cmp qword [0x1000888e8], rbp
je 0x10005ffe7
mov rcx, rdi
call fcn.100051c8c
mov rcx, rdi
call fcn.10007faa2
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x3c]
cmp ecx, ebp
cmove ecx, r12d
xor edx, edx
imul eax, eax, 0x64
div ecx
mov ecx, eax
call fcn.100051c48
mov eax, esi
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret