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

Disassembly:
push ebp
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408974
push 0x15
call fcn.00453e55
mov dword [esp], 0
push 5
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x4089ae
cmp edi, 0
jne 0x4089ae
xor eax, eax
jmp 0x4089b3
mov eax, 1
or eax, eax
je 0x4089c0
mov ebx, dword [esp]
or ebx, 4
mov dword [esp], ebx
push 6
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x4089dc
cmp edi, 0
jne 0x4089dc
xor eax, eax
jmp 0x4089e1
mov eax, 1
or eax, eax
je 0x4089ee
mov ebx, dword [esp]
or ebx, 8
mov dword [esp], ebx
push 7
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x408a0a
cmp edi, 0
jne 0x408a0a
xor eax, eax
jmp 0x408a0f
mov eax, 1
or eax, eax
je 0x408a1c
mov ebx, dword [esp]
or ebx, 2
mov dword [esp], ebx
push 8
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x408a38
cmp edi, 0
jne 0x408a38
xor eax, eax
jmp 0x408a3d
mov eax, 1
or eax, eax
je 0x408a4d
mov ebx, dword [esp]
or ebx, 0x500000
mov dword [esp], ebx
push 9
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x408a69
cmp edi, 0
jne 0x408a69
xor eax, eax
jmp 0x408a6e
mov eax, 1
or eax, eax
je 0x408a7b
mov ebx, dword [esp]
or ebx, 1
mov dword [esp], ebx
mov dword [esp + 4], 0
push 0xb
call fcn.00453cbe
push edx
push eax
pop ebx
pop edi
cmp ebx, 0
jne 0x408a9f
cmp edi, 0
jne 0x408a9f
xor eax, eax
jmp 0x408aa4
mov eax, 1
or eax, eax
je 0x408ab0
mov dword [esp + 4], 1
push dword [0x576098]
push dword [0x576098]
push 0x14
call fcn.00453c09
lea ebp, [esp + 0x20]
lea eax, [ebp]
push eax
call fcn.00461680
push dword [0x576098]
call fcn.00407ff2
lea eax, [esp + 0xc]
push eax
call fcn.00461680
lea ebp, [esp + 0x1c]
push dword [ebp]
call fcn.0045f640
and eax, eax
je 0x408afc
xor eax, eax
jmp 0x408b01
mov eax, 1
and eax, eax
jne 0x408b21
push dword [esp + 8]
call fcn.0045f640
and eax, eax
je 0x408b16
xor eax, eax
jmp 0x408b1b
mov eax, 1
and eax, eax
jne 0x408b21
jmp 0x408b28
mov eax, 1
jmp 0x408b2a
xor eax, eax
and eax, eax
je 0x408b49
mov ebp, dword [0x5739b0]
push dword [ebp + 0xa8]
push 0x15
call fcn.00453c71
jmp 0x408e37
call fcn.004058b3
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_QueryPerformanceCounter
push 1
push 0
call fcn.00453cbe
cmp eax, dword [esp]
jne 0x408ba1
push dword [0x576098]
push dword [esp + 8]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
call fcn.0040882f
lea eax, [esp + 0x10]
push eax
call fcn.00461680
push dword [esp + 0xc]
push 0x15
call fcn.00453c71
jmp 0x408cdc
push 1
call fcn.00453cbe
cmp eax, dword [esp]
jne 0x408c0c
push dword [0x576098]
push dword [esp + 8]
push dword [0x576098]
push dword [0x576098]
push 0x13
call fcn.00453c09
add dword [0x576098], 2
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
mov edx, dword [0x56d574]
add dword [esp + 8], edx
call fcn.00408666
lea eax, [esp + 0x10]
push eax
call fcn.00461680
push dword [esp + 0xc]
push 0x15
call fcn.00453c71
jmp 0x408cdc
push 2
call fcn.00453cbe
cmp eax, dword [esp]
jne 0x408c54
push dword [0x576098]
push dword [esp + 0xc]
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
call fcn.00404a1b
lea eax, [esp + 0x10]
push eax
call fcn.00461680
push dword [esp + 0xc]
push 0x15
call fcn.00453c71
jmp 0x408cdc
push 3
call fcn.00453cbe
cmp eax, dword [esp]
jne 0x408c99
push dword [0x576098]
push dword [esp + 0xc]
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
call fcn.004063ef
lea eax, [esp + 0x10]
push eax
call fcn.00461680
push dword [esp + 0xc]
push 0x15
call fcn.00453c71
jmp 0x408cdc
push 4
call fcn.00453cbe
cmp eax, dword [esp]
jne 0x408cdc
push dword [0x576098]
push dword [esp + 0xc]
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
call fcn.00409446
lea eax, [esp + 0x10]
push eax
call fcn.00461680
push dword [esp + 0xc]
push 0x15
call fcn.00453c71
pop eax
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.dll_QueryPerformanceCounter
push dword [esp + 0x18]
push dword [esp + 0x18]
lea eax, [esp + 0x14]
mov edx, dword [eax]
sub dword [esp], edx
mov edx, dword [eax + 4]
sbb dword [esp + 4], edx
pop dword [esp + 0x18]
pop dword [esp + 0x18]
push dword [0x576098]
push dword [0x576098]
push dword [0x576098]
push 4
fild qword [0x5738a8]
fdiv qword [0x56cf88]
sub esp, 8
fstp qword [esp]
call fcn.00460670
add dword [0x576098], 2
push 0x17
mov edx, dword [0x56d574]
add dword [esp + 4], edx
call fcn.00453c71
pop dword [0x576098]
push dword [0x576098]
push dword [0x576098]
push dword [0x576098]
push 4
fild qword [esp + 0x24]
fdiv qword [0x56cf88]
sub esp, 8
fstp qword [esp]
call fcn.00460670
add dword [0x576098], 2
push 0x18
mov edx, dword [0x56d574]
add dword [esp + 4], edx
call fcn.00453c71
pop dword [0x576098]
push dword [esp + 0x18]
push dword [esp + 0x18]
pop ebx
pop edi
cmp edi, dword [0x5738ac]
jg 0x408dc3
jl 0x408dbf
cmp ebx, dword [0x5738a8]
ja 0x408dc3
xor eax, eax
jmp 0x408dc8
mov eax, 1
or eax, eax
je 0x408de3
push dword [0x573948]
push 2
push 0x18
call fcn.00453bde
jmp 0x408df8
push dword [0x57394c]
push 2
push 0x18
call fcn.00453bde
push dword [esp + 0x18]
push dword [esp + 0x18]
pop dword [0x5738a8]
pop dword [0x5738ac]
push 0xffffffff
call fcn.00430140
lea ebp, [esp + 0x1c]
mov edx, 0x56b028
lea ecx, [ebp]
call fcn.0040a008
mov edx, 0x56b028
lea ecx, [esp + 8]
call fcn.0040a008
xor eax, eax
push dword [esp + 8]
call fcn.00461730
lea edx, [esp + 0x1c]
push 0x56cf98
push edx
call fcn.0040a360
add esp, 0x20
pop edi
pop ebx
pop ebp
ret