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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00404b04
xor eax, eax
push ebp
push 0x486e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x486b5b
cmp eax, 0
je 0x486e41
test bl, bl
jne 0x486b69
cmp byte [ebp + 0x10], 0
je 0x486e1d
mov eax, dword [0x4d1988]
call fcn.00404914
push eax
mov eax, dword [0x4d1988]
call fcn.00404b14
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
mov edi, dword [eax]
call dword [edi + 0x10]
test bl, bl
je 0x486b96
mov dword [ebp - 0x20], 1
jmp 0x486b9b
xor eax, eax
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x10], 0
je 0x486ba5
or dword [ebp - 0x20], 2
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x10]
cmp byte [ebp + 0x10], 0
je 0x486bd3
xor eax, eax
mov al, byte [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x10]
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [0x4d3c30], eax
mov dword [0x4d3c34], eax
xor eax, eax
mov dword [0x4d3c38], eax
mov dword [0x4d3c3c], eax
xor eax, eax
push ebp
push 0x486e16
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x486cff
cmp byte [ebp + 0x10], 0
je 0x486c3e
mov dl, 1
mov eax, dword [0x41a688]
call fcn.00403814
mov dword [ebp - 0x10], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041f04c
mov byte [ebp - 0x19], 1
jmp 0x486c44
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
push eax
mov cl, 3
mov dl, 1
mov eax, dword [0x47ec08]
call fcn.0047f2ac
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x486cea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 0x24]
call fcn.0041f264
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
fild qword [0x4d3c40]
fdivp st(1)
fstp qword [0x4d3c30]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486cf1
mov eax, dword [ebp - 0x24]
call fcn.00403844
ret
cmp byte [ebp + 0x10], 0
je 0x486d08
mov dword [ebp - 0x10], esi
cmp byte [ebp + 0x10], 0
je 0x486dfa
mov al, byte [ebp + 0x10]
cmp al, 7
ja 0x486d23
and eax, 0x7f
bt dword [0x4d3c2c], eax
jae 0x486d64
cmp dword [ebp + 8], 0
jne 0x486d3a
lea eax, [ebp - 0x18]
mov edx, 0x486e78
call fcn.004046ec
jmp 0x486d45
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.004046ec
mov eax, dword [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebp + 0x10]
mov ecx, dword [eax*4 + 0x4d1974]
mov dl, 1
mov eax, dword [0x47e974]
call fcn.0047e9d8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x486d80
mov ecx, 0x486ec4
mov dl, 1
mov eax, dword [0x407c10]
call fcn.0040c4ec
call fcn.00403fe4
xor eax, eax
push ebp
push 0x486df3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
fild qword [0x4d3c40]
fdivp st(1)
fstp qword [0x4d3c38]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486dfa
mov eax, dword [ebp - 0x14]
call fcn.00403844
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486e41
cmp byte [ebp - 0x19], 0
je 0x486e15
mov eax, dword [ebp - 0x10]
call fcn.00403844
ret
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
call fcn.0041efc8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041f264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486e66
lea eax, [ebp - 0x18]
call fcn.00404654
lea eax, [ebp + 8]
call fcn.00404654
ret