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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0x54]
push esi
call fcn.004b0ac5
add esp, 4
test eax, eax
jne 0x4ae18d
lea edx, [edi + 0x30]
add edi, 0x3c
mov dword [esp + 0x10], edi
cmp edx, edi
je 0x4adf53
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edi + 4], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [edi + 8], ecx
push esi
call fcn.004b0aea
mov eax, dword [esp + 0x14]
add esp, 4
mov edi, dword [edi]
mov eax, dword [eax + 4]
cmp edi, eax
mov dword [esp + 0x3c], eax
je 0x4ae160
mov eax, dword [edi + 0x18]
mov ecx, dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ae042
lea eax, [esp + 0x48]
mov dword [edi + 0x18], 0
push eax
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
add esi, 0x18
push esi
call fcn.004b0ac5
add esp, 4
test eax, eax
jne 0x4ae18d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp byte [eax + 8], 0
jne 0x4adfea
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov byte [eax + 8], 1
sub ecx, dword [eax + 0x10]
sbb edx, dword [eax + 0x14]
call fcn.004f1020
mov eax, dword [esp + 0x14]
push esi
mulsd xmm0, qword [eax]
movsd qword [esp + 0x34], xmm0
call fcn.004b0aea
movsd xmm0, qword [esp + 0x34]
lea eax, [edi + 0x38]
mov ecx, dword [esp + 0x20]
add esp, 4
push dword [esp + 0xc]
push eax
push dword [esp + 0x20]
push dword [esp + 0x58]
push dword [esp + 0x58]
sub esp, 8
movsd qword [esp], xmm0
call dword [esp + 0x3c]
add edi, 0x58
cmp edi, dword [esp + 0x3c]
jmp 0x4adf6b
cmp byte [edi], 0
je 0x4ae07e
mov eax, dword [esp + 0xc]
movsd xmm0, qword [edi + 8]
push eax
mov ecx, dword [eax + 8]
lea eax, [edi + 0x38]
push eax
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x1c]
mov edx, dword [ecx]
push dword [edi + 0x14]
push dword [edi + 0x10]
sub esp, 8
movsd qword [esp], xmm0
call dword [edx + 4]
add edi, 0x58
cmp edi, dword [esp + 0x3c]
jmp 0x4adf6b
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x58]
push eax
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
add esi, 0x18
push esi
mov dword [esp + 0x24], esi
call fcn.004b0ac5
add esp, 4
test eax, eax
jne 0x4ae18d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
cmp byte [eax + 8], 0
jne 0x4ae0ee
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov byte [eax + 8], 1
mov eax, ecx
mov dword [esp + 0x14], edx
jmp 0x4ae104
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
sbb edx, dword [esp + 0x14]
call fcn.004f1020
mov eax, dword [esp + 0x18]
push esi
mulsd xmm0, qword [eax]
movsd qword [esp + 0x24], xmm0
call fcn.004b0aea
movsd xmm0, qword [esp + 0x24]
lea eax, [edi + 0x38]
add esp, 4
mov ecx, dword [esp + 0x2c]
push dword [esp + 0xc]
push eax
lea eax, [edi + 0x20]
push eax
push dword [esp + 0x34]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
sub esp, 8
movsd qword [esp], xmm0
call dword [esp + 0x50]
add edi, 0x58
cmp edi, dword [esp + 0x3c]
jmp 0x4adf6b
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov esi, dword [edi]
cmp esi, eax
je 0x4ae184
mov edi, eax
nop
mov ecx, esi
call fcn.004ae1a0
add esi, 0x58
cmp esi, edi
jne 0x4ae170
mov edi, dword [esp + 0x10]
mov esi, dword [edi]
mov dword [edi + 4], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.004b0b90
int3