Function at 0x4ca9ca
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 0x4ca9e7
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x69db98], esi
jne 0x4ca9e0
xor ebx, ebx
inc ebx
mov dword [0x69dbb0], ebx
cmp dword [0x69db94], esi
jne 0x4cab8d
mov dword [0x69db98], ebx
cmp dword [0x69dbb8], esi
jne 0x4caa38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004ee4ba
pop ecx
call fcn.004ee499
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x69dbb8], eax
push 0x69dba8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4caaa3
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
cmp dword [0x69dbb4], esi
jne 0x4cab11
cmp dword [0x69dbbc], esi
jne 0x4cab11
mov dword [0x69dbbc], ebx
push str.:9:TimeGetTime___initialization:_No_performance_counter_exists_
mov dword [0x69db98], edi
mov dword [0x69dbb0], edi
mov dword [0x69dbb4], ebx
call fcn.00425c08
pop ecx
mov dword [0x69dbb0], ebx
mov dword [0x69dbb4], edi
call fcn.004ca9ca
jmp 0x4cad25
mov eax, dword [0x69dbac]
cmp eax, edi
jg 0x4caad8
jl 0x4caaba
cmp dword [0x69dba8], 0x3e8
jae 0x4caaca
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
mov eax, dword [0x69dbac]
cmp eax, edi
jl 0x4cab11
jg 0x4caad8
cmp dword [0x69dba8], edi
jbe 0x4cab11
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4cab11
cmp dword [0x69dbc0], esi
jne 0x4cab06
mov dword [0x69dbc0], ebx
cmp dword [0x69dbb4], esi
jne 0x4cab06
push str.:8:QueryPerformanceCounter___FAILED_to_initialize_in_TimeGetTime___initialization_
jmp 0x4caa75
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
mov edi, ebx
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeBeginPeriod]
jmp 0x4cab2f
cmp edi, 0xa
jae 0x4cab35
cmp dword [0x69dbb4], esi
je 0x4cabff
inc edi
push edi
call ebx
test eax, eax
jne 0x4cab1c
xor edi, edi
cmp dword [0x69dbac], edi
jl 0x4cab63
jg 0x4cab49
cmp dword [0x69dba8], edi
jbe 0x4cab63
push 0x69dba0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4cab63
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
push 1
call ebx
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x69db9c], eax
mov dword [0x69db94], 1
mov dword [0x69db98], edi
mov eax, dword [0x69dbac]
cmp eax, edi
jl 0x4cacef
jg 0x4cabaa
mov ebx, dword [0x69dba8]
cmp ebx, edi
jbe 0x4cacf5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4cac45
cmp dword [0x69dbc4], esi
jne 0x4cac3a
inc eax
mov dword [0x69dbc4], eax
cmp dword [0x69dbb4], esi
jne 0x4cabee
push str.:9:QueryPerformanceCounter___FAILED_______________________
mov dword [0x69dbb4], eax
mov dword [0x69dbb0], edi
call fcn.004255b9
pop ecx
mov dword [0x69dbb4], edi
mov dword [0x69db94], edi
mov dword [0x69dbb0], edi
jmp 0x4caa99
push str._GetLastError_
xor esi, esi
xor ebx, ebx
push edi
inc esi
mov dword [0x69dbb0], ebx
push str.:8:QueryPerformanceCounter___FAILED_to_set_timeGetTime___granularity:_timeBeginPeriod__d__failed:_trying_one_higher:__s
mov dword [0x69dbb4], esi
mov dword [0x69db98], ebx
call fcn.00425c08
add esp, 0xc
mov dword [0x69dbb0], esi
mov dword [0x69dbb4], ebx
jmp 0x4caa99
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
mov ecx, dword [0x69dbac]
mov ebx, dword [0x69dba8]
cmp ecx, edi
jg 0x4cacbb
jl 0x4cac5f
cmp ebx, 0x3e8
jae 0x4cacbb
mov eax, ebx
or eax, ecx
je 0x4cacbb
cmp dword [0x69dbc8], esi
jne 0x4caca4
xor esi, esi
inc esi
cmp dword [0x69dbb4], 0
mov dword [0x69dbc8], esi
jne 0x4caca4
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 [0x69dbb4], esi
mov dword [0x69dbb0], edi
call fcn.004255b9
pop ecx
pop ecx
mov dword [0x69dbb0], esi
mov dword [0x69dbb4], edi
xorps xmm0, xmm0
movlpd qword [0x69dba8], xmm0
mov ebx, dword [0x69dba8]
mov ecx, dword [0x69dbac]
mov edi, dword [ebp - 8]
sub edi, dword [0x69dba0]
mov esi, dword [ebp - 4]
sbb esi, dword [0x69dba4]
push 0
push 0x3e8
push ecx
push ebx
call fcn.004e3b10
push edx
push eax
push esi
push edi
call fcn.004e3b10
mov esi, eax
xor edi, edi
mov eax, dword [0x69dbac]
jmp 0x4cacf5
mov ebx, dword [0x69dba8]
or ebx, eax
jne 0x4cad18
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x69db9c]
mov esi, eax
cmp ecx, esi
jae 0x4cad14
or eax, 0xffffffff
sub eax, ecx
add esi, eax
jmp 0x4cad18
sub ecx, esi
mov esi, ecx
mov eax, dword [0x69dbb8]
mov dword [0x69dbb0], edi
add eax, esi
pop edi
pop esi
pop ebx
leave
ret