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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
jmp 0x4f16e2
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6debc0], ebp
jne 0x4f16db
xor edi, edi
inc edi
cmp dword [0x6debbc], ebp
mov dword [0x6debd8], edi
jne 0x4f1885
cmp dword [0x6debe0], ebp
mov dword [0x6debc0], edi
jne 0x4f1733
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0051228a
pop ecx
call fcn.00512297
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x6debe0], eax
push 0x6debd0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4f179f
cmp dword [0x6debdc], ebp
mov dword [0x6debd0], ebp
mov dword [0x6debd4], ebp
jne 0x4f180e
cmp dword [0x6debe4], ebp
jne 0x4f180e
mov dword [0x6debe4], edi
push str.:9:TimeGetTime___initialization:_No_performance_counter_exists_
mov dword [0x6debc0], ebp
mov dword [0x6debd8], ebp
mov dword [0x6debdc], edi
call fcn.00426c01
pop ecx
mov dword [0x6debd8], edi
mov dword [0x6debdc], ebp
call fcn.004f16be
jmp 0x4f1a19
cmp dword [0x6debd4], ebp
jg 0x4f17d3
jl 0x4f17b5
cmp dword [0x6debd0], 0x3e8
jae 0x4f17c1
mov dword [0x6debd0], ebp
mov dword [0x6debd4], ebp
cmp dword [0x6debd4], ebp
jl 0x4f180e
jg 0x4f17d3
cmp dword [0x6debd0], ebp
jbe 0x4f180e
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4f180e
cmp dword [0x6debe8], ebp
jne 0x4f1802
cmp dword [0x6debdc], ebp
mov dword [0x6debe8], edi
jne 0x4f1802
push str.:8:QueryPerformanceCounter___FAILED_to_initialize_in_TimeGetTime___initialization_
jmp 0x4f1771
mov dword [0x6debd0], ebp
mov dword [0x6debd4], ebp
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ebx, edi
push edi
jmp 0x4f182c
cmp ebx, 0xa
jae 0x4f1832
cmp dword [0x6debdc], ebp
je 0x4f18fa
inc ebx
push ebx
call esi
test eax, eax
jne 0x4f1819
cmp dword [0x6debd4], ebp
jl 0x4f185f
jg 0x4f1844
cmp dword [0x6debd0], ebp
jbe 0x4f185f
push 0x6debc8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4f185f
mov dword [0x6debd0], ebp
mov dword [0x6debd4], ebp
push edi
call esi
mov dword [0x6debd0], ebp
mov dword [0x6debd4], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x6debc4], eax
mov dword [0x6debbc], edi
mov dword [0x6debc0], ebp
mov ebx, dword [0x6debd4]
cmp ebx, ebp
jl 0x4f19db
jg 0x4f18a3
mov esi, dword [0x6debd0]
cmp esi, ebp
jbe 0x4f19e1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4f1936
cmp dword [0x6debec], ebp
jne 0x4f1924
cmp dword [0x6debdc], ebp
mov dword [0x6debec], edi
jne 0x4f18e9
push str.:9:QueryPerformanceCounter___FAILED_______________________
mov dword [0x6debdc], edi
mov dword [0x6debd8], ebp
call fcn.004265da
pop ecx
mov dword [0x6debdc], ebp
mov dword [0x6debbc], ebp
mov dword [0x6debd8], ebp
jmp 0x4f1795
push str._GetLastError_
push ebx
push str.:8:QueryPerformanceCounter___FAILED_to_set_timeGetTime___granularity:_timeBeginPeriod__d__failed:_trying_one_higher:__s
mov dword [0x6debdc], edi
mov dword [0x6debd8], ebp
mov dword [0x6debc0], ebp
call fcn.00426c01
add esp, 0xc
jmp 0x4f1789
xor esi, esi
xor ebx, ebx
mov dword [0x6debd0], esi
mov dword [0x6debd4], ebx
jmp 0x4f1942
mov ebx, dword [0x6debd4]
mov esi, dword [0x6debd0]
cmp ebx, ebp
jg 0x4f19a1
jl 0x4f1950
cmp esi, 0x3e8
jae 0x4f19a1
mov eax, esi
or eax, ebx
je 0x4f19a1
cmp dword [0x6debf0], ebp
jne 0x4f1991
cmp dword [0x6debdc], ebp
mov dword [0x6debf0], edi
jne 0x4f1991
push esi
push str.:9:TimeGetTime___has_encountered_a_serious_exception:_the_performance_frequency_counter_has_a_resolution_of_only__d_milliseconds______This_is_too_low_to_be_of_any_use_
mov dword [0x6debdc], edi
mov dword [0x6debd8], ebp
call fcn.004265da
pop ecx
pop ecx
mov dword [0x6debd8], edi
mov dword [0x6debdc], ebp
xor esi, esi
xor ebx, ebx
mov dword [0x6debd0], esi
mov dword [0x6debd4], ebx
mov edi, dword [esp + 0x18]
sub edi, dword [0x6debc8]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x6debcc]
push ebp
push 0x3e8
push ebx
push esi
mov dword [esp + 0x24], eax
call fcn.0052a940
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0052a940
mov dword [esp + 0x14], eax
xor ebp, ebp
jmp 0x4f19e1
mov esi, dword [0x6debd0]
or esi, ebx
jne 0x4f1a08
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x6debc4]
cmp ecx, eax
jae 0x4f1a02
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x4f1a08
sub ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [0x6debe0]
mov ecx, dword [esp + 0x14]
mov dword [0x6debd8], ebp
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret