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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call fcn.10001898
movsx eax, al
xor ebx, ebx
pop ecx
cmp dword [edi + 4], ebx
mov dword [ebp - 4], eax
mov esi, 0xc8
jne 0x1000bf7e
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push esi
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 8]
mov dword [edi + 4], eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x27100
mov dword [edi + 8], eax
call fcn.1006efdc
cmp eax, ebx
pop ecx
mov dword [edi + 0x10], eax
je 0x1000bf7e
mov ecx, 0x1387f
mov word [eax], cx
inc eax
inc eax
dec ecx
jne 0x1000bf76
push 0x428
lea eax, [ebp - 0x450]
push ebx
push eax
call fcn.100b1940
mov eax, dword [ebp + 0xc]
add esp, 0xc
neg eax
mov ecx, dword [ebp - 4]
push 1
sbb eax, eax
mov dword [ebp - 0x450], 0x28
and eax, 0x190
mov dword [ebp - 0x44c], esi
add eax, 0xffffff38
cmp dword [ebp + 8], 3
mov dword [ebp - 0x448], eax
pop eax
mov word [ebp - 0x444], ax
mov word [ebp - 0x442], cx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], ebx
jg 0x1000c02a
shl eax, cl
cmp eax, ebx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
lea edx, [eax - 1]
je 0x1000c064
lea ecx, [ebp - 0x426]
mov eax, edx
mov byte [ecx + 1], bl
and al, 1
neg al
sbb al, al
and al, 1
dec al
mov byte [ecx - 2], al
mov byte [ecx - 1], al
mov byte [ecx], al
add ecx, 4
mov eax, edx
dec edx
test eax, eax
jne 0x1000c007
jmp 0x1000c064
cmp dword [ebp + 8], 5
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
jne 0x1000c064
mov dword [ebp - 0x440], 3
mov dword [ebp - 0x428], 0xf800
mov dword [ebp - 0x424], 0x7e0
mov dword [ebp - 0x420], 0x1f
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1000c0d6
lea eax, [ebp - 0x450]
push ebx
push eax
push dword [edi + 0x10]
push esi
push ebx
push ebx
push ebx
push esi
push esi
push ebx
push ebx
push dword [edi]
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
test eax, eax
je 0x1000c0cf
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x20]
jns 0x1000c0b1
neg esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp esi, dword [edi + 0x1c]
jge 0x1000c0cf
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x10]
push 8
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
push dword [ebp - 0x10]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
push 0xcc0020
lea eax, [ebp - 0x450]
push ebx
push eax
push dword [edi + 0x10]
push esi
push esi
push ebx
push ebx
push esi
push esi
push ebx
push ebx
push dword [edi]
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
call dword [sym.imp.WINMM.dll_timeGetTime]
push dword [ebp - 0x10]
mov esi, eax
sub esi, dword [ebp - 4]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
cmp dword [ebp - 8], ebx
jg 0x1000c0bb
push dword [ebp - 0x10]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
jmp 0x1000c0cf