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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
cmp dword [ebp + 0x10], 1
jae 0x4022d9
xor eax, eax
jmp 0x40252c
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x18], dl
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov dword [ebp - 0x14], 1
mov ecx, dword [0x405014]
imul ecx, dword [0x405018]
mov edx, dword [0x405018]
imul edx, edx, 5
sub ecx, edx
mov dword [0x405014], ecx
mov dword [ebp - 0x10], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 0x18]
and eax, 0xff
cmp edx, eax
jne 0x4024c5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x4023bd
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x18]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x4024c3
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
call fcn.00402530
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [0x405014]
imul edx, dword [0x405018]
mov eax, dword [0x405018]
imul eax, eax, 5
sub edx, eax
mov dword [0x405014], edx
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00402530
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 0x4024c3
mov ecx, dword [0x405018]
add ecx, 7
mov dword [0x405014], ecx
mov edx, dword [0x405018]
shl edx, 1
mov dword [0x405014], edx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + eax]
mov byte [ecx], al
mov ecx, dword [0x405014]
mov edx, dword [0x405018]
lea eax, [edx + ecx - 9]
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov ecx, dword [0x405018]
add ecx, 8
mov dword [0x405018], ecx
jmp 0x402424
jmp 0x4024f4
mov edx, dword [0x405018]
add edx, 7
mov dword [0x405014], edx
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
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 0x402325
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [0x405018]
imul edx, dword [0x405018]
sub edx, 3
mov dword [0x405014], edx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret