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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
call fcn.0040561c
xor eax, eax
push ebp
push 0x49542b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x515884]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x495031
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
xchg edx, eax
call fcn.004058bc
mov eax, ebx
call fcn.004220c8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
call fcn.0040568c
mov edx, eax
mov eax, dword [0x515884]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x495062
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [0x515884]
call fcn.004055c4
jne 0x4953db
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x20]
or eax, 3
cmp eax, 3
je 0x4950af
mov ecx, 0x49544c
mov dl, 1
mov eax, dword [0x408858]
call fcn.0040de74
call fcn.00404a6c
mov byte [ebp - 0x25], 0
test byte [ebp - 0x20], 2
je 0x495123
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
xor edx, edx
push ebp
push 0x4950e7
push dword fs:[edx]
mov dword fs:[edx], esp
movzx eax, byte [ebp - 0x24]
mov byte [ebp - 0x25], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495123
mov byte [ebp - 0x3d], 0
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.004220c8
cmp edx, dword [esp + 4]
jne 0x495149
cmp eax, dword [esp]
pop edx
pop eax
je 0x495408
xor eax, eax
mov dword [0x51bd50], eax
mov dword [0x51bd54], eax
xor eax, eax
mov dword [0x51bd58], eax
mov dword [0x51bd5c], eax
test byte [ebp - 0x20], 1
setne byte [ebp - 0x19]
xor eax, eax
push ebp
push 0x4953d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x25], 0
je 0x4952b4
cmp byte [ebp - 0x19], 0
je 0x4951b8
mov dl, 1
mov eax, dword [0x41cef8]
call fcn.004041e0
mov dword [ebp - 0x34], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x34]
call fcn.0042214c
mov byte [ebp - 0x3d], 1
jmp 0x4951be
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x25]
cmp al, 7
ja 0x4951d0
and eax, 0x7f
bt dword [0x51bd4c], eax
jae 0x495210
cmp dword [ebp + 8], 0
jne 0x4951e7
lea eax, [ebp - 8]
mov edx, 0x4954d4
call fcn.00405234
jmp 0x4951f2
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405234
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [ebp - 0x25]
mov ecx, dword [eax*4 + 0x515870]
mov dl, 1
mov eax, dword [0x48ca00]
call fcn.0048ca64
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x49522c
mov ecx, 0x495520
mov dl, 1
mov eax, dword [0x408858]
call fcn.0040de74
call fcn.00404a6c
xor eax, eax
push ebp
push 0x49529f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0xc]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
fild qword [ebp - 0x4c]
fild qword [0x51bd60]
fdivp st(1)
fstp qword [0x51bd58]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4952a6
mov eax, dword [ebp - 0x3c]
call fcn.00404210
ret
cmp byte [ebp - 0x19], 0
je 0x4952bf
mov dword [ebp - 0x34], ebx
jmp 0x4952e3
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.004220c8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00422364
cmp byte [ebp - 0x19], 0
je 0x4953b8
lea edx, [ebp - 0x30]
mov ecx, 4
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x48cce4]
call fcn.0048d59c
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x495392
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.00422364
mov eax, dword [ebp - 0xc]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
fild qword [ebp - 0x4c]
fild qword [0x51bd60]
fdivp st(1)
fstp qword [0x51bd50]
wait
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495399
mov eax, dword [ebp - 0x38]
call fcn.00404210
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495408
cmp byte [ebp - 0x3d], 0
je 0x4953d3
mov eax, dword [ebp - 0x34]
call fcn.00404210
ret
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00422364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495432
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051c0
lea eax, [ebp + 8]
call fcn.0040519c
ret