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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00404bd4
xor eax, eax
push ebp
push 0x4a306b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [0x502258]
call fcn.004049e4
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404d70
mov eax, ebx
call fcn.004217b0
mov esi, eax
mov eax, dword [0x502258]
call fcn.004049e4
push eax
lea eax, [ebp - 0x18]
call fcn.00404c3c
mov edx, eax
mov eax, ebx
pop ecx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [0x502258]
call fcn.00404b30
jne 0x4a301a
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
or eax, 3
cmp eax, 3
je 0x4a2cef
mov ecx, 0x4a308c
mov dl, 1
mov eax, dword [0x407f7c]
call fcn.0040d354
call fcn.00404078
mov byte [ebp - 0x21], 0
test byte [ebp - 0x1c], 2
je 0x4a2d62
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
xor edx, edx
push ebp
push 0x4a2d26
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x21], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a2d62
mov byte [ebp - 0x39], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.004217b0
cmp edx, dword [esp + 4]
jne 0x4a2d88
cmp eax, dword [esp]
pop edx
pop eax
je 0x4a3045
xor eax, eax
mov dword [0x503e50], eax
mov dword [0x503e54], eax
xor eax, eax
mov dword [0x503e58], eax
mov dword [0x503e5c], eax
test byte [ebp - 0x1c], 1
setne byte [ebp - 0x11]
xor eax, eax
push ebp
push 0x4a3013
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x21], 0
je 0x4a2ef3
cmp byte [ebp - 0x11], 0
je 0x4a2df7
mov dl, 1
mov eax, dword [0x41c508]
call fcn.00403868
mov dword [ebp - 0x2c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00421834
mov byte [ebp - 0x39], 1
jmp 0x4a2dfd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov al, byte [ebp - 0x21]
cmp al, 7
ja 0x4a2e0e
and eax, 0x7f
bt dword [0x503e4c], eax
jae 0x4a2e4f
cmp dword [ebp + 8], 0
jne 0x4a2e25
lea eax, [ebp - 0x38]
mov edx, 0x4a3114
call fcn.004047bc
jmp 0x4a2e30
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 8]
call fcn.004047bc
mov eax, dword [ebp - 0x38]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov ecx, dword [eax*4 + 0x502244]
mov dl, 1
mov eax, dword [0x499cd0]
call fcn.00499d34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4a2e6b
mov ecx, 0x4a3160
mov dl, 1
mov eax, dword [0x407f7c]
call fcn.0040d354
call fcn.00404078
xor eax, eax
push ebp
push 0x4a2ede
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 - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
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 - 0x44], eax
mov dword [ebp - 0x40], edx
fild qword [ebp - 0x44]
fild qword [0x503e60]
fdivp st(1)
fstp qword [0x503e58]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2ee5
mov eax, dword [ebp - 0x34]
call fcn.00403898
ret
cmp byte [ebp - 0x11], 0
je 0x4a2efe
mov dword [ebp - 0x2c], ebx
jmp 0x4a2f22
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.004217b0
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00421a4c
cmp byte [ebp - 0x11], 0
je 0x4a2ff7
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x4a1364]
call fcn.004a1cb4
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4a2fd1
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, dword [ebp - 0x28]
cdq
push edx
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.00421a4c
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 - 0x44], eax
mov dword [ebp - 0x40], edx
fild qword [ebp - 0x44]
fild qword [0x503e60]
fdivp st(1)
fstp qword [0x503e50]
wait
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2fd8
mov eax, dword [ebp - 0x30]
call fcn.00403898
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3045
cmp byte [ebp - 0x39], 0
je 0x4a3012
mov eax, dword [ebp - 0x2c]
call fcn.00403898
ret
xor ecx, ecx
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
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 - 8]
call fcn.00421a4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3072
lea eax, [ebp - 0x38]
call fcn.00404724
lea eax, [ebp - 0x18]
call fcn.00404724
lea eax, [ebp + 8]
call fcn.00404724
ret