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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call fcn.10001831
movsx eax, al
xor ebx, ebx
pop ecx
cmp dword [edi + 4], ebx
mov dword [ebp - 4], eax
mov esi, 0xc8
jne 0x1000943f
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.1005bf24
cmp eax, ebx
pop ecx
mov dword [edi + 0x10], eax
je 0x1000943f
mov ecx, 0x1387f
mov word [eax], cx
inc eax
inc eax
dec ecx
jne 0x10009437
push 0x428
lea eax, [ebp - 0x454]
push ebx
push eax
call fcn.100982c0
mov eax, dword [ebp + 0xc]
add esp, 0xc
neg eax
mov ecx, dword [ebp - 4]
push 1
sbb eax, eax
mov dword [ebp - 0x454], 0x28
and eax, 0x190
mov dword [ebp - 0x450], esi
add eax, 0xffffff38
cmp dword [ebp + 8], 3
mov dword [ebp - 0x44c], eax
pop eax
mov word [ebp - 0x448], ax
mov word [ebp - 0x446], cx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
jg 0x100094eb
shl eax, cl
cmp eax, ebx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
lea edx, [eax - 1]
je 0x10009525
lea ecx, [ebp - 0x42a]
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 0x100094c8
jmp 0x10009525
cmp dword [ebp + 8], 5
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
jne 0x10009525
mov dword [ebp - 0x444], 3
mov dword [ebp - 0x42c], 0xf800
mov dword [ebp - 0x428], 0x7e0
mov dword [ebp - 0x424], 0x1f
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100095ca
lea eax, [ebp - 0x454]
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 0x100095c3
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
jns 0x1000957c
neg esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
fild dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ecx
push ecx
fmul qword [0x100997b0]
fidiv dword [ebp - 8]
fstp qword [esp]
push esi
push ebx
push dword [ebp + 8]
push str.Format_i__inverted_i__time_i_clock___.4f_msec_n
call fcn.100069c5
add esp, 0x18
cmp esi, dword [edi + 0x1c]
jge 0x100095c3
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], esi
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]
mov eax, 0x3e8
xor edx, edx
div dword [ebp - 0x10]
mov dword [ebp - 8], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 4], eax
push 0xcc0020
lea eax, [ebp - 0x454]
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 - 0x14], 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]
mov dword [ebp - 4], esi
call dword [sym.imp.WINMM.dll_timeEndPeriod]
cmp dword [ebp - 0x14], ebx
jg 0x1000958c
push dword [ebp - 0x10]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
jmp 0x100095c3