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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea edx, [ecx + eax - 9]
mov dword [0x405014], edx
cmp dword [ebp + 0x10], 1
jae 0x402331
xor eax, eax
jmp 0x4025b9
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov ecx, dword [0x405018]
imul ecx, dword [0x405018]
sub ecx, 3
mov dword [0x405014], ecx
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ebp - 0x18], al
mov ecx, dword [0x405014]
sub ecx, 4
mov dword [0x405018], ecx
mov dword [ebp - 0x14], 1
mov edx, dword [0x405018]
shl edx, 3
mov dword [0x405018], edx
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea edx, [ecx + eax - 9]
mov dword [0x405014], edx
mov dword [ebp - 0x10], 0
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
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 0x402570
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x402456
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea edx, [ecx + eax - 9]
mov dword [0x405014], edx
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x18]
mov byte [edx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x40256e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004025bd
add esp, 8
mov edx, dword [ebp - 0x14]
add edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea edx, [ecx + eax - 9]
mov dword [0x405014], edx
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.004025bd
add esp, 8
mov edx, dword [ebp - 0x14]
add edx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0
jmp 0x4024be
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 8]
jae 0x40256e
mov edx, dword [0x405018]
add edx, 7
mov dword [0x405014], edx
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [0x405018]
shl edx, 3
mov dword [0x405018], edx
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
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
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x405014]
imul ecx, ecx, 0x63
mov dword [0x405014], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
jmp 0x4024b5
jmp 0x40259b
mov edx, dword [0x405018]
shl edx, 3
mov dword [0x405018], edx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jb 0x40239d
mov ecx, dword [0x405014]
imul ecx, ecx, 0x63
mov dword [0x405014], ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret