Function at 0x4a3be0
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.004ecef6
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 0x4a3c7c
call fcn.004a87d0
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ecf70
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4a3c84
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, dword [ebp + 0xd0]
cmp dword [eax + 0x18], ebx
jne 0x4a3c99
mov dword [esp + 0x18], 0xffffffff
jmp 0x4a3ca5
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 0x4a3d15
jb 0x4a3cb7
cmp edi, dword [ebp + 0x1b8]
ja 0x4a3d15
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x50]
cmp eax, ebx
jle 0x4a3cc9
cmp eax, dword [ebp + 0x1f8]
jle 0x4a3d15
mov eax, dword [ebp + 0x1fc]
shl eax, 6
cmp eax, dword [ebp + 0x1f8]
jg 0x4a3dd9
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.004a1fa0
add dword [ebp + 0x1fc], 1
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
jmp 0x4a3dd9
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.004a1fa0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a3d6b
call fcn.004a87d0
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ecf70
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4a3d73
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x4c]
cmp eax, ebx
jle 0x4a3da5
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
cdq
push ecx
push edx
push eax
call fcn.004ecf70
add eax, edi
adc edx, esi
mov dword [ebp + 0x1b8], eax
mov dword [ebp + 0x1bc], edx
jmp 0x4a3dc9
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 0x4a3e69
cmp esi, dword [ebp + 0x1c4]
jb 0x4a3e69
ja 0x4a3df5
cmp edi, dword [ebp + 0x1c0]
jbe 0x4a3e69
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.004a1fa0
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a3e45
call fcn.004a87d0
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ecf70
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 0x4a40bc
ja 0x4a3e85
cmp edi, dword [ebx]
jbe 0x4a40bc
cmp dword [ebp + 0x68], 0x10
jle 0x4a3ef4
call fcn.004a87d0
mov ecx, dword [ebp + 0x1f0]
mov esi, dword [ebp + 0x1f4]
sub eax, ecx
sbb edx, esi
mov dword [esp + 0x1c], edx
jne 0x4a3ead
cmp eax, 0x989680
jbe 0x4a3ef4
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.004a4600
mov esi, ebp
call fcn.004a1f40
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 0x4a3fca
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4a3f13
xor ecx, ecx
jmp 0x4a3f16
lea ecx, [eax + 1]
mov edx, dword [ebp + 0xa8]
cmp ecx, edx
lea eax, [ebp + 0xa8]
je 0x4a3f4c
mov ecx, dword [ebp + 0xb0]
mov esi, dword [ebp + 0x80]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.004aa4d0
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.004ecef6
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.004a4600
jmp 0x4a3fe9
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.004a1fa0
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.004ecf70
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.004ecf70
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4a4081
jb 0x4a4056
cmp ecx, eax
jae 0x4a4081
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.004ecf70
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a40ab
call fcn.004a87d0
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ecf70
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