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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.00401c30
movsx ebp, al
mov eax, dword [esi + 4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x46220c
push ebx
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 ebx
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x27100
mov dword [esi + 8], eax
call fcn.004178f0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x46220c
mov ecx, 0x1387f
mov word [eax], cx
add eax, 2
dec ecx
jne 0x462203
mov ecx, 0x10a
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x468]
mov dword [esp + 0x38], 0x28
neg eax
sbb eax, eax
mov dword [esp + 0x3c], 0xc8
and eax, 0x190
mov word [esp + 0x44], 1
add eax, 0xffffff38
mov word [esp + 0x46], bp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x464]
cmp eax, 3
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
jg 0x4622ab
mov eax, 1
mov ecx, ebp
shl eax, cl
cmp eax, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea edx, [eax - 1]
je 0x4622d8
lea ecx, [esp + 0x62]
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 0x462286
jmp 0x4622d8
cmp eax, 5
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
jne 0x4622d8
mov dword [esp + 0x48], 3
mov dword [esp + 0x60], 0xf800
mov dword [esp + 0x64], 0x7e0
mov dword [esp + 0x68], 0x1f
mov edi, dword [sym.imp.GDI32.dll_GdiFlush]
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
je 0x4623a1
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x38]
push ebx
push edx
mov ecx, dword [esi]
push eax
push 0xc8
push ebx
push ebx
push ebx
push 0xc8
push 0xc8
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
test eax, eax
je 0x462394
call edi
lea edx, [esp + 0x20]
push edx
call ebp
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
sub edi, eax
mov dword [esp + 0x10], edi
jns 0x46233f
neg edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x10]
mov ebx, dword [esp + 0x468]
mov ebp, dword [esp + 0x464]
sub esp, 8
fmul qword [0x4a3678]
fidiv dword [esp + 0x1c]
fstp qword [esp]
push edi
push ebx
push ebp
push str.Format_i__inverted_i__time_i_clock___.4f_msec_n
call fcn.00407990
mov eax, dword [esi + 0x1c]
add esp, 0x18
cmp edi, eax
jge 0x462394
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 8
lea edx, [esp + 0x18]
push 8
push edx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov eax, 0x3e8
xor edx, edx
div dword [esp + 0x18]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x14], eax
call edi
mov edx, dword [esi + 0x10]
push 0xcc0020
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
push 0xc8
push 0xc8
push ebx
push ebx
push 0xc8
mov ebp, eax
mov eax, dword [esi]
push 0xc8
push ebx
push ebx
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 + 0x18]
mov edi, eax
sub edi, ebp
mov ebp, dword [sym.imp.WINMM.dll_timeEndPeriod]
push ecx
mov dword [esp + 0x14], edi
call ebp
test ebx, ebx
jg 0x462352
mov edx, dword [esp + 0x18]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 8