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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x448
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.00401c90
movsx ebp, al
mov eax, dword [esi + 4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x47cf6c
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.0041ed90
add esp, 4
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x47cf6c
mov ecx, 0x1387f
mov word [eax], cx
add eax, 2
dec ecx
jne 0x47cf63
mov ecx, 0x10a
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x30], 0x28
neg eax
sbb eax, eax
mov dword [esp + 0x34], 0xc8
and eax, 0x190
mov word [esp + 0x3c], 1
add eax, 0xffffff38
mov word [esp + 0x3e], bp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x45c]
cmp eax, 3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
jg 0x47d00b
mov eax, 1
mov ecx, ebp
shl eax, cl
cmp eax, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea edx, [eax - 1]
je 0x47d038
lea ecx, [esp + 0x5a]
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 0x47cfe6
jmp 0x47d038
cmp eax, 5
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
jne 0x47d038
mov dword [esp + 0x40], 3
mov dword [esp + 0x58], 0xf800
mov dword [esp + 0x5c], 0x7e0
mov dword [esp + 0x60], 0x1f
mov edi, dword [sym.imp.GDI32.dll_GdiFlush]
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
je 0x47d0c7
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x30]
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 0x47d0ba
call edi
lea edx, [esp + 0x20]
push edx
call ebp
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub edi, eax
jns 0x47d093
neg edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp edi, dword [esi + 0x1c]
jge 0x47d0ba
mov edx, dword [esp + 0x45c]
mov eax, dword [esp + 0x460]
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret 8
lea ecx, [esp + 0x10]
push 8
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov ecx, dword [esi + 0x10]
mov ebp, eax
push 0xcc0020
lea eax, [esp + 0x34]
push ebx
push eax
mov edx, dword [esi]
push ecx
push 0xc8
push 0xc8
push ebx
push ebx
push 0xc8
push 0xc8
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ebx, eax
call dword [sym.imp.GDI32.dll_GdiFlush]
call edi
mov edi, eax
mov eax, dword [esp + 0x10]
sub edi, ebp
mov ebp, dword [sym.imp.WINMM.dll_timeEndPeriod]
push eax
call ebp
test ebx, ebx
jg 0x47d09e
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret 8