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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 8], xmm0
mov esi, edi
jmp 0x4b72b7
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x661a20], esi
jne 0x4b72b0
xor ebx, ebx
inc ebx
mov dword [0x661a38], ebx
cmp dword [0x661a1c], esi
jne 0x4b745d
mov dword [0x661a20], ebx
cmp dword [0x661a40], esi
jne 0x4b7308
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004ccf4a
pop ecx
call fcn.004ccf29
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x661a40], eax
push 0x661a30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4b7373
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
cmp dword [0x661a3c], esi
jne 0x4b73e1
cmp dword [0x661a44], esi
jne 0x4b73e1
mov dword [0x661a44], ebx
push str.:9:TimeGetTime___initialization:_No_performance_counter_exists_
mov dword [0x661a20], edi
mov dword [0x661a38], edi
mov dword [0x661a3c], ebx
call fcn.0041cce9
pop ecx
mov dword [0x661a38], ebx
mov dword [0x661a3c], edi
call fcn.004b729a
jmp 0x4b75f5
mov eax, dword [0x661a34]
cmp eax, edi
jg 0x4b73a8
jl 0x4b738a
cmp dword [0x661a30], 0x3e8
jae 0x4b739a
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
mov eax, dword [0x661a34]
cmp eax, edi
jl 0x4b73e1
jg 0x4b73a8
cmp dword [0x661a30], edi
jbe 0x4b73e1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b73e1
cmp dword [0x661a48], esi
jne 0x4b73d6
mov dword [0x661a48], ebx
cmp dword [0x661a3c], esi
jne 0x4b73d6
push str.:8:QueryPerformanceCounter___FAILED_to_initialize_in_TimeGetTime___initialization_
jmp 0x4b7345
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
mov edi, ebx
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeBeginPeriod]
jmp 0x4b73ff
cmp edi, 0xa
jae 0x4b7405
cmp dword [0x661a3c], esi
je 0x4b74cf
inc edi
push edi
call ebx
test eax, eax
jne 0x4b73ec
xor edi, edi
cmp dword [0x661a34], edi
jl 0x4b7433
jg 0x4b7419
cmp dword [0x661a30], edi
jbe 0x4b7433
push 0x661a28
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b7433
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
push 1
call ebx
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x661a24], eax
mov dword [0x661a1c], 1
mov dword [0x661a20], edi
mov eax, dword [0x661a34]
cmp eax, edi
jl 0x4b75bf
jg 0x4b747a
mov ebx, dword [0x661a30]
cmp ebx, edi
jbe 0x4b75c5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b7515
cmp dword [0x661a4c], esi
jne 0x4b750a
inc eax
mov dword [0x661a4c], eax
cmp dword [0x661a3c], esi
jne 0x4b74be
push str.:9:QueryPerformanceCounter___FAILED_______________________
mov dword [0x661a3c], eax
mov dword [0x661a38], edi
call fcn.0041c80a
pop ecx
mov dword [0x661a3c], edi
mov dword [0x661a1c], edi
mov dword [0x661a38], edi
jmp 0x4b7369
push str._GetLastError_
xor esi, esi
xor ebx, ebx
push edi
inc esi
mov dword [0x661a38], ebx
push str.:8:QueryPerformanceCounter___FAILED_to_set_timeGetTime___granularity:_timeBeginPeriod__d__failed:_trying_one_higher:__s
mov dword [0x661a3c], esi
mov dword [0x661a20], ebx
call fcn.0041cce9
add esp, 0xc
mov dword [0x661a38], esi
mov dword [0x661a3c], ebx
jmp 0x4b7369
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
mov ecx, dword [0x661a34]
mov ebx, dword [0x661a30]
cmp ecx, edi
jg 0x4b758b
jl 0x4b752f
cmp ebx, 0x3e8
jae 0x4b758b
mov eax, ebx
or eax, ecx
je 0x4b758b
cmp dword [0x661a50], esi
jne 0x4b7574
xor esi, esi
inc esi
cmp dword [0x661a3c], 0
mov dword [0x661a50], esi
jne 0x4b7574
push ebx
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 [0x661a3c], esi
mov dword [0x661a38], edi
call fcn.0041c80a
pop ecx
pop ecx
mov dword [0x661a38], esi
mov dword [0x661a3c], edi
xorps xmm0, xmm0
movlpd qword [0x661a30], xmm0
mov ebx, dword [0x661a30]
mov ecx, dword [0x661a34]
mov edi, dword [ebp - 8]
sub edi, dword [0x661a28]
mov esi, dword [ebp - 4]
sbb esi, dword [0x661a2c]
push 0
push 0x3e8
push ecx
push ebx
call fcn.004c2560
push edx
push eax
push esi
push edi
call fcn.004c2560
mov esi, eax
xor edi, edi
mov eax, dword [0x661a34]
jmp 0x4b75c5
mov ebx, dword [0x661a30]
or ebx, eax
jne 0x4b75e8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x661a24]
mov esi, eax
cmp ecx, esi
jae 0x4b75e4
or eax, 0xffffffff
sub eax, ecx
add esi, eax
jmp 0x4b75e8
sub ecx, esi
mov esi, ecx
mov eax, dword [0x661a40]
mov dword [0x661a38], edi
add eax, esi
pop edi
pop esi
pop ebx
leave
ret