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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4b41e0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xc], esi
push edi
mov edi, ecx
test esi, esi
jne 0x440fc1
lea esi, [edi + 0x138]
mov dword [esp + 0x10], esi
mov ebx, dword [ebp + 0x14]
lea ecx, [edi + 0x3d0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x18]
mov dword [esp + 0x34], ecx
push dword [ebp + 0x1c]
push edx
push eax
push esi
call fcn.0041b440
cmp dword [ebp + 0xc], 4
jne 0x441003
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469e65
mov esp, ebp
pop ebp
ret 0x20
push dword [edi + 0x630]
mov eax, dword [sym.imp.USER32.dll_BringWindowToTop]
mov dword [esp + 0x24], eax
call eax
mov ecx, dword [edi + 0x3d8]
mov eax, dword [edi + 0x3d4]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x3dc]
push 0x80
mov dword [esp + 0x20], ecx
lea ecx, [edi + 0x400]
push eax
mov dword [esp + 0x1c], eax
call fcn.00417b80
test esi, esi
jne 0x441066
lea esi, [edi + 0xc0]
lea ecx, [edi + 0x400]
test esi, esi
mov eax, esi
cmove eax, ecx
mov dword [ecx + 0x1c0], eax
mov dword [edi + 0x3fc], esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0x3e8
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0047aad0
mov ecx, eax
call fcn.0047ac30
movsd qword [esp + 0x40], xmm0
test ebx, ebx
je 0x4410b6
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.0047ac30
divsd xmm0, qword [esp + 0x40]
jmp 0x4410b9
xorps xmm0, xmm0
push 0
mov ecx, edi
movsd qword [esp + 0x3c], xmm0
mov esi, 0xfffffc18
call fcn.0043fc50
test eax, eax
je 0x441193
test ebx, ebx
je 0x44113d
movsd xmm0, qword [esp + 0x38]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
lahf
test ah, 0x44
jnp 0x441119
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.0047ac30
movaps xmm1, xmm0
divsd xmm1, qword [esp + 0x40]
subsd xmm1, qword [esp + 0x28]
divsd xmm1, qword [0x4a9cb8]
mov eax, ebx
shr eax, 0x1f
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4aa020]
comisd xmm1, xmm0
jae 0x441193
mov eax, dword [edi + 0xc0]
cmp eax, 0xfffffffa
je 0x441191
lea ecx, [edi + 0x400]
cmp dword [edi + 0xf0], ecx
jne 0x441168
cmp eax, dword [esp + 0x14]
je 0x44118a
cmp eax, dword [esp + 0x18]
je 0x441180
cmp eax, dword [esp + 0x1c]
je 0x44117b
push 0
mov ecx, edi
call fcn.0043fc50
test eax, eax
jne 0x4410d5
jmp 0x441193
or esi, 0xffffffff
jmp 0x441193
mov esi, dword [ebp + 0xc]
dec esi
neg esi
sbb esi, esi
jmp 0x441193
mov esi, 1
jmp 0x441193
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4411a5
push dword [eax + 0x230]
call dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
call fcn.0041c490
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469e65
mov esp, ebp
pop ebp
ret 0x20