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

Disassembly:
push 0xffffffffffffffff
push 0x4781b2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
push ebp
call fcn.0041f760
xor ebx, ebx
mov dword [esp + 0x5c], ebx
push 4
mov dword [ebp], vtable.ytDrawUI.0
lea esi, [ebp + 0x38]
call fcn.0045bbe0
add esp, 4
mov dword [esi], eax
cmp eax, ebx
je 0x41a3d9
mov dword [eax], 1
mov byte [esi + 0x14], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
mov dword [ebp + 0x84], ebx
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb0], ebx
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0xd8], ebx
mov byte [ebp + 0xdc], 1
mov byte [ebp + 0xdd], bl
mov byte [esp + 0x5c], 0xe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0xc8], eax
push 1
lea edi, [esp + 0x24]
lea eax, [esp + 0x34]
mov byte [ebp + 0xcc], bl
mov byte [ebp + 0xcd], bl
mov dword [ebp + 0xd0], 0xff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0040f180
mov edi, eax
mov byte [esp + 0x5c], 0xf
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41a4d9
cmp eax, dword [edi + 0x10]
je 0x41a4f9
call fcn.0040f210
lea eax, [ebp + 0x38]
mov esi, edi
mov edi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x41a4f9
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [esp + 0x30]
mov byte [esp + 0x5c], 0xe
call fcn.0040f210
mov ecx, dword [ebp + 0xa4]
cmp ecx, ebx
je 0x41a51e
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov dword [ebp + 0xa4], ebx
mov ecx, dword [ebp + 0xa8]
cmp ecx, ebx
je 0x41a535
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov dword [ebp + 0xa8], ebx
fldz
push 0x28
fst dword [ebp + 0xc0]
mov dword [ebp + 0x2c], ebx
fstp dword [ebp + 0xbc]
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0xc5], bl
mov byte [ebp + 0xc4], bl
call fcn.0045bbe0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a5a1
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x14]
push eax
mov dword [esi], vtable.ytCallBase.0
call edi
fild qword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
fstp qword [esi + 0x10]
call edi
fild qword [esp + 0x20]
fstp qword [esi + 0x18]
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebp
mov dword [esi], vtable.ytCallback_class_ytDrawUI_.0
jmp 0x41a5a3
xor esi, esi
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], esi
call fcn.00404120
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret