Function at 0x4609ba
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 0x4609d7
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5cea28], esi
jne 0x4609d0
xor ebx, ebx
inc ebx
mov dword [0x5cea40], ebx
cmp dword [0x5cea24], esi
jne 0x460b7d
mov dword [0x5cea28], ebx
cmp dword [0x5cea48], esi
jne 0x460a28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0047022a
pop ecx
call fcn.00470209
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x5cea48], eax
push 0x5cea38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x460a93
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
cmp dword [0x5cea44], esi
jne 0x460b01
cmp dword [0x5cea4c], esi
jne 0x460b01
mov dword [0x5cea4c], ebx
push str.:9:TimeGetTime___initialization:_No_performance_counter_exists_
mov dword [0x5cea28], edi
mov dword [0x5cea40], edi
mov dword [0x5cea44], ebx
call fcn.0040d9e1
pop ecx
mov dword [0x5cea40], ebx
mov dword [0x5cea44], edi
call fcn.004609ba
jmp 0x460d15
mov eax, dword [0x5cea3c]
cmp eax, edi
jg 0x460ac8
jl 0x460aaa
cmp dword [0x5cea38], 0x3e8
jae 0x460aba
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
mov eax, dword [0x5cea3c]
cmp eax, edi
jl 0x460b01
jg 0x460ac8
cmp dword [0x5cea38], edi
jbe 0x460b01
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x460b01
cmp dword [0x5cea50], esi
jne 0x460af6
mov dword [0x5cea50], ebx
cmp dword [0x5cea44], esi
jne 0x460af6
push str.:8:QueryPerformanceCounter___FAILED_to_initialize_in_TimeGetTime___initialization_
jmp 0x460a65
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
mov edi, ebx
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeBeginPeriod]
jmp 0x460b1f
cmp edi, 0xa
jae 0x460b25
cmp dword [0x5cea44], esi
je 0x460bef
inc edi
push edi
call ebx
test eax, eax
jne 0x460b0c
xor edi, edi
cmp dword [0x5cea3c], edi
jl 0x460b53
jg 0x460b39
cmp dword [0x5cea38], edi
jbe 0x460b53
push 0x5cea30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x460b53
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
push 1
call ebx
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5cea2c], eax
mov dword [0x5cea24], 1
mov dword [0x5cea28], edi
mov eax, dword [0x5cea3c]
cmp eax, edi
jl 0x460cdf
jg 0x460b9a
mov ebx, dword [0x5cea38]
cmp ebx, edi
jbe 0x460ce5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x460c35
cmp dword [0x5cea54], esi
jne 0x460c2a
inc eax
mov dword [0x5cea54], eax
cmp dword [0x5cea44], esi
jne 0x460bde
push str.:9:QueryPerformanceCounter___FAILED_______________________
mov dword [0x5cea44], eax
mov dword [0x5cea40], edi
call fcn.0040d511
pop ecx
mov dword [0x5cea44], edi
mov dword [0x5cea24], edi
mov dword [0x5cea40], edi
jmp 0x460a89
push str._GetLastError_
xor esi, esi
xor ebx, ebx
push edi
inc esi
mov dword [0x5cea40], ebx
push str.:8:QueryPerformanceCounter___FAILED_to_set_timeGetTime___granularity:_timeBeginPeriod__d__failed:_trying_one_higher:__s
mov dword [0x5cea44], esi
mov dword [0x5cea28], ebx
call fcn.0040d9e1
add esp, 0xc
mov dword [0x5cea40], esi
mov dword [0x5cea44], ebx
jmp 0x460a89
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
mov ecx, dword [0x5cea3c]
mov ebx, dword [0x5cea38]
cmp ecx, edi
jg 0x460cab
jl 0x460c4f
cmp ebx, 0x3e8
jae 0x460cab
mov eax, ebx
or eax, ecx
je 0x460cab
cmp dword [0x5cea58], esi
jne 0x460c94
xor esi, esi
inc esi
cmp dword [0x5cea44], 0
mov dword [0x5cea58], esi
jne 0x460c94
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 [0x5cea44], esi
mov dword [0x5cea40], edi
call fcn.0040d511
pop ecx
pop ecx
mov dword [0x5cea40], esi
mov dword [0x5cea44], edi
xorps xmm0, xmm0
movlpd qword [0x5cea38], xmm0
mov ebx, dword [0x5cea38]
mov ecx, dword [0x5cea3c]
mov edi, dword [ebp - 8]
sub edi, dword [0x5cea30]
mov esi, dword [ebp - 4]
sbb esi, dword [0x5cea34]
push 0
push 0x3e8
push ecx
push ebx
call fcn.00465840
push edx
push eax
push esi
push edi
call fcn.00465840
mov esi, eax
xor edi, edi
mov eax, dword [0x5cea3c]
jmp 0x460ce5
mov ebx, dword [0x5cea38]
or ebx, eax
jne 0x460d08
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x5cea2c]
mov esi, eax
cmp ecx, esi
jae 0x460d04
or eax, 0xffffffff
sub eax, ecx
add esi, eax
jmp 0x460d08
sub ecx, esi
mov esi, ecx
mov eax, dword [0x5cea48]
mov dword [0x5cea40], edi
add eax, esi
pop edi
pop esi
pop ebx
leave
ret