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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x10], 1
jae 0x4022c4
xor eax, eax
jmp 0x402520
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x18], dl
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 1
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov ecx, dword [0x405018]
add ecx, 7
mov dword [0x405014], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [0x405018]
shl edx, 1
mov dword [0x405014], edx
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], 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 0x4024be
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x4023c5
mov edx, dword [0x405018]
add edx, 8
mov dword [0x405018], edx
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov ecx, dword [0x405018]
add ecx, 8
mov dword [0x405018], ecx
mov edx, dword [0x405018]
shl edx, 3
mov dword [0x405018], edx
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 0x4024bc
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00402524
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [0x405014]
mov eax, dword [0x405018]
lea ecx, [eax + edx - 9]
mov dword [0x405014], ecx
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.00402524
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
jmp 0x40242d
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jae 0x4024bc
mov ecx, dword [0x405018]
add ecx, 8
mov dword [0x405018], ecx
mov edx, dword [0x405014]
imul edx, dword [0x405018]
mov eax, dword [0x405018]
imul eax, eax, 5
sub edx, eax
mov dword [0x405014], edx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + ecx]
mov byte [edx], cl
mov edx, dword [0x405018]
shl edx, 1
mov dword [0x405014], edx
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [0x405014]
imul edx, edx, 0x63
mov dword [0x405014], edx
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x402424
jmp 0x4024f5
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov ecx, dword [0x405018]
add ecx, 8
mov dword [0x405018], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jb 0x402312
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov ecx, dword [0x405014]
imul ecx, ecx, 0x63
mov dword [0x405014], ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret