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

Disassembly:
sub esp, 0x454
push ebx
mov ebx, dword [esp + 0x45c]
mov al, 0x10
push ebp
push esi
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov esi, ecx
mov al, 0x20
xor edx, edx
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov eax, dword [esi + 4]
mov byte [esp + 0xc], 1
mov byte [esp + 0xd], 2
mov byte [esp + 0xe], 4
mov byte [esp + 0xf], 8
mov byte [esp + 0x12], 0x18
cmp eax, edx
movsx ebp, byte [esp + ebx + 0xc]
push edi
jne 0x45cb8c
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0xc8
push 0xc8
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push 0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x27100
mov dword [esi + 8], eax
call fcn.00416550
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x45cb8a
mov ecx, 0x1387f
mov word [eax], cx
add eax, 2
dec ecx
jne 0x45cb81
xor edx, edx
mov ecx, 0x10a
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x46c]
mov dword [esp + 0x3c], 0x28
neg eax
sbb eax, eax
mov dword [esp + 0x40], 0xc8
and eax, 0x190
mov word [esp + 0x4a], bp
add eax, 0xffffff38
cmp ebx, 3
mov dword [esp + 0x44], eax
mov eax, 1
mov word [esp + 0x48], ax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
jg 0x45cc22
mov ecx, ebp
shl eax, cl
test eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea edx, [eax - 1]
je 0x45cc4f
lea ecx, [esp + 0x66]
mov eax, edx
mov byte [ecx + 1], 0
and al, 1
neg al
sbb al, al
add ecx, 4
and al, 1
dec al
mov byte [ecx - 6], al
mov byte [ecx - 5], al
mov byte [ecx - 4], al
mov eax, edx
dec edx
test eax, eax
jne 0x45cbfd
jmp 0x45cc4f
cmp ebx, 5
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
jne 0x45cc4f
mov dword [esp + 0x4c], 3
mov dword [esp + 0x64], 0xf800
mov dword [esp + 0x68], 0x7e0
mov dword [esp + 0x6c], 0x1f
mov edi, dword [sym.imp.GDI32.dll_GdiFlush]
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x34]
push ecx
call ebp
test eax, eax
je 0x45ccd4
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x3c]
push 0
push edx
mov ecx, dword [esi]
push eax
push 0xc8
push 0
push 0
push 0
push 0xc8
push 0xc8
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
test eax, eax
je 0x45cdb3
call edi
lea edx, [esp + 0x2c]
push edx
call ebp
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub edi, eax
mov dword [esp + 0x1c], edi
jns 0x45ccbc
neg edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
jmp 0x45cd78
lea edx, [esp + 0x24]
push 8
push edx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov eax, 0x3e8
xor edx, edx
div dword [esp + 0x24]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x20], eax
call edi
mov edx, dword [esi + 0x10]
push 0xcc0020
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push 0xc8
push 0xc8
push 0
push 0
push 0xc8
mov ebp, eax
mov eax, dword [esi]
push 0xc8
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ebx, eax
call dword [sym.imp.GDI32.dll_GdiFlush]
call edi
mov ecx, dword [esp + 0x24]
mov edi, eax
sub edi, ebp
mov ebp, dword [sym.imp.WINMM.dll_timeEndPeriod]
push ecx
mov dword [esp + 0x20], edi
call ebp
test ebx, ebx
jg 0x45cd71
mov edx, dword [esp + 0x24]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8
mov ebx, dword [esp + 0x468]
fild dword [esp + 0x1c]
mov ebp, dword [esp + 0x46c]
sub esp, 8
fmul qword [0x49a718]
fidiv dword [esp + 0x28]
fstp qword [esp]
push edi
push ebp
push ebx
push str.Format_i__inverted_i__time_i_clock___.4f_msec_n
call fcn.00406d50
mov eax, dword [esi + 0x1c]
add esp, 0x18
cmp edi, eax
jge 0x45cdb3
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8