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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x44], eax
fild qword [esp + 0x40]
and ecx, 0x80000000
mov dword [esp + 0x44], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
fild qword [esp + 0x40]
push esi
push edi
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004ec676
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
lea eax, [esp + 0x48]
push eax
fstp qword [ebp + 0xa0]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a343c
call fcn.004a7f50
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ec6f0
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4a3444
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, dword [ebp + 0xd0]
cmp dword [eax + 0x18], ebx
jne 0x4a3459
mov dword [esp + 0x18], 0xffffffff
jmp 0x4a3465
mov edx, dword [eax + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x18], ecx
cmp esi, dword [ebp + 0x1bc]
ja 0x4a34d5
jb 0x4a3477
cmp edi, dword [ebp + 0x1b8]
ja 0x4a34d5
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x50]
cmp eax, ebx
jle 0x4a3489
cmp eax, dword [ebp + 0x1f8]
jle 0x4a34d5
mov eax, dword [ebp + 0x1fc]
shl eax, 6
cmp eax, dword [ebp + 0x1f8]
jg 0x4a3599
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x30]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x2c], 2
call fcn.004a1760
add dword [ebp + 0x1fc], 1
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
jmp 0x4a3599
lea edx, [esp + 0x2c]
push edx
push ebp
lea edx, [esp + 0x38]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 2
call fcn.004a1760
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a352b
call fcn.004a7f50
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ec6f0
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4a3533
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x4c]
cmp eax, ebx
jle 0x4a3565
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
cdq
push ecx
push edx
push eax
call fcn.004ec6f0
add eax, edi
adc edx, esi
mov dword [ebp + 0x1b8], eax
mov dword [ebp + 0x1bc], edx
jmp 0x4a3589
mov edx, dword [ebp + 0x1d8]
mov eax, dword [ebp + 0x1dc]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add edx, edi
adc eax, esi
mov dword [ebp + 0x1b8], edx
mov dword [ebp + 0x1bc], eax
mov dword [ebp + 0x1f8], ebx
mov dword [ebp + 0x1fc], 1
cmp dword [esp + 0x18], ebx
jl 0x4a3629
cmp esi, dword [ebp + 0x1c4]
jb 0x4a3629
ja 0x4a35b5
cmp edi, dword [ebp + 0x1c0]
jbe 0x4a3629
lea ecx, [esp + 0x34]
push ecx
push ebp
lea edx, [esp + 0x40]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 3
call fcn.004a1760
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a3605
call fcn.004a7f50
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ec6f0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x1e0]
mov eax, dword [ebp + 0x1e4]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add edx, edi
adc eax, esi
mov dword [ebp + 0x1c0], edx
mov dword [ebp + 0x1c4], eax
cmp esi, dword [ebp + 0x1cc]
lea ebx, [ebp + 0x1c8]
jb 0x4a387c
ja 0x4a3645
cmp edi, dword [ebx]
jbe 0x4a387c
cmp dword [ebp + 0x68], 0x10
jle 0x4a36b4
call fcn.004a7f50
mov ecx, dword [ebp + 0x1f0]
mov esi, dword [ebp + 0x1f4]
sub eax, ecx
sbb edx, esi
mov dword [esp + 0x1c], edx
jne 0x4a366d
cmp eax, 0x989680
jbe 0x4a36b4
mov ecx, dword [ebp + 0x208]
mov byte [ebp + 0x5e], 1
lea edx, [esp + 0x54]
mov byte [ebp + 0x60], 1
mov dword [ebp + 0x64], 0x1e
mov edi, dword [ecx + 4]
push edx
mov eax, ebp
mov byte [esp + 0x58], 1
call fcn.004a3dc0
mov esi, ebp
call fcn.004a1700
mov edx, dword [0x637b10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
mov eax, dword [ebp + 0x7c]
xor edi, edi
cmp dword [eax + 0x24], edi
jle 0x4a378a
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4a36d3
xor ecx, ecx
jmp 0x4a36d6
lea ecx, [eax + 1]
mov edx, dword [ebp + 0xa8]
cmp ecx, edx
lea eax, [ebp + 0xa8]
je 0x4a370c
mov ecx, dword [ebp + 0xb0]
mov esi, dword [ebp + 0x80]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.004a9c50
add dword [ebp + 0x180], eax
add dword [ebp + 0x140], eax
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
fild qword [esp + 0x18]
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004ec676
mov ecx, dword [ebp + 0x208]
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
lea eax, [esp + 0x17]
fstp qword [ebp + 0xa0]
mov edi, dword [ecx + 4]
push eax
mov eax, ebp
mov byte [esp + 0x1b], 1
call fcn.004a3dc0
jmp 0x4a37a9
lea edx, [esp + 0x40]
push edx
push ebp
lea edx, [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 1
call fcn.004a1760
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x74]
add dword [ebp + 0x68], 1
mov ecx, dword [ebp + 0x68]
lea eax, [edx + eax*4]
imul eax, ecx
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
add eax, 0x2710
cdq
push ecx
push edx
push eax
call fcn.004ec6f0
mov ecx, dword [ebp + 0x1b4]
mov dword [ebp + 0x1e8], eax
mov eax, dword [ebp + 0x68]
imul eax, eax, 0x186a0
push ecx
mov ecx, dword [ebp + 0x1b0]
mov dword [ebp + 0x1ec], edx
cdq
push ecx
push edx
push eax
call fcn.004ec6f0
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4a3841
jb 0x4a3816
cmp ecx, eax
jae 0x4a3841
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x1b4]
imul eax, eax, 0x186a0
push ecx
mov ecx, dword [ebp + 0x1b0]
cdq
push ecx
push edx
push eax
call fcn.004ec6f0
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a386b
call fcn.004a7f50
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ec6f0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0x1e8]
mov eax, dword [ebp + 0x1ec]
add dword [ebx], edx
adc dword [ebx + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4