Function at 0x401fc9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
cmp dword [ebp + 0x10], 1
jae 0x401ff0
xor eax, eax
jmp 0x402250
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x18], dl
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x14], 1
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea edx, [ecx + eax - 9]
mov dword [0x40903c], edx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 4], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
and edx, 0xff
cmp ecx, edx
jne 0x40220a
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x4020ea
mov eax, dword [0x409040]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x409040], eax
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [0x40903c]
imul edx, edx, 0x63
mov dword [0x40903c], edx
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x18]
mov byte [eax], cl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x402208
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00402254
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [0x409040]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x409040], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.00402254
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
jmp 0x402153
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jae 0x402208
mov ecx, dword [0x409040]
add ecx, 7
mov dword [0x40903c], ecx
mov edx, dword [0x40903c]
imul edx, dword [0x409040]
mov eax, dword [0x409040]
imul eax, eax, 5
sub edx, eax
mov dword [0x40903c], edx
mov ecx, dword [0x409040]
imul ecx, dword [0x409040]
sub ecx, 3
mov dword [0x40903c], ecx
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + edx]
mov byte [eax], dl
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [0x409040]
shl edx, 1
mov dword [0x40903c], edx
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
jmp 0x40214a
jmp 0x402233
mov eax, dword [0x409040]
add eax, 8
mov dword [0x409040], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 4]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jb 0x402036
mov edx, dword [0x409040]
shl edx, 1
mov dword [0x40903c], edx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret