Function at 0x435f53
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 0x435f70
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5990f0], esi
jne 0x435f69
xor ebx, ebx
inc ebx
mov dword [0x599108], ebx
cmp dword [0x5990ec], esi
jne 0x436116
mov dword [0x5990f0], ebx
cmp dword [0x599110], esi
jne 0x435fc1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0044a34a
pop ecx
call fcn.0044a329
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x599110], eax
push 0x599100
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x43602c
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
cmp dword [0x59910c], esi
jne 0x43609a
cmp dword [0x599114], esi
jne 0x43609a
mov dword [0x599114], ebx
push str.:9:TimeGetTime___initialization:_No_performance_counter_exists_
mov dword [0x5990f0], edi
mov dword [0x599108], edi
mov dword [0x59910c], ebx
call fcn.0040d7f3
pop ecx
mov dword [0x599108], ebx
mov dword [0x59910c], edi
call fcn.00435f53
jmp 0x4362ae
mov eax, dword [0x599104]
cmp eax, edi
jg 0x436061
jl 0x436043
cmp dword [0x599100], 0x3e8
jae 0x436053
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
mov eax, dword [0x599104]
cmp eax, edi
jl 0x43609a
jg 0x436061
cmp dword [0x599100], edi
jbe 0x43609a
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x43609a
cmp dword [0x599118], esi
jne 0x43608f
mov dword [0x599118], ebx
cmp dword [0x59910c], esi
jne 0x43608f
push str.:8:QueryPerformanceCounter___FAILED_to_initialize_in_TimeGetTime___initialization_
jmp 0x435ffe
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
mov edi, ebx
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeBeginPeriod]
jmp 0x4360b8
cmp edi, 0xa
jae 0x4360be
cmp dword [0x59910c], esi
je 0x436188
inc edi
push edi
call ebx
test eax, eax
jne 0x4360a5
xor edi, edi
cmp dword [0x599104], edi
jl 0x4360ec
jg 0x4360d2
cmp dword [0x599100], edi
jbe 0x4360ec
push 0x5990f8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4360ec
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
push 1
call ebx
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5990f4], eax
mov dword [0x5990ec], 1
mov dword [0x5990f0], edi
mov eax, dword [0x599104]
cmp eax, edi
jl 0x436278
jg 0x436133
mov ebx, dword [0x599100]
cmp ebx, edi
jbe 0x43627e
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4361ce
cmp dword [0x59911c], esi
jne 0x4361c3
inc eax
mov dword [0x59911c], eax
cmp dword [0x59910c], esi
jne 0x436177
push str.:9:QueryPerformanceCounter___FAILED_______________________
mov dword [0x59910c], eax
mov dword [0x599108], edi
call fcn.0040d324
pop ecx
mov dword [0x59910c], edi
mov dword [0x5990ec], edi
mov dword [0x599108], edi
jmp 0x436022
push str._GetLastError_
xor esi, esi
xor ebx, ebx
push edi
inc esi
mov dword [0x599108], ebx
push str.:8:QueryPerformanceCounter___FAILED_to_set_timeGetTime___granularity:_timeBeginPeriod__d__failed:_trying_one_higher:__s
mov dword [0x59910c], esi
mov dword [0x5990f0], ebx
call fcn.0040d7f3
add esp, 0xc
mov dword [0x599108], esi
mov dword [0x59910c], ebx
jmp 0x436022
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
mov ecx, dword [0x599104]
mov ebx, dword [0x599100]
cmp ecx, edi
jg 0x436244
jl 0x4361e8
cmp ebx, 0x3e8
jae 0x436244
mov eax, ebx
or eax, ecx
je 0x436244
cmp dword [0x599120], esi
jne 0x43622d
xor esi, esi
inc esi
cmp dword [0x59910c], 0
mov dword [0x599120], esi
jne 0x43622d
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 [0x59910c], esi
mov dword [0x599108], edi
call fcn.0040d324
pop ecx
pop ecx
mov dword [0x599108], esi
mov dword [0x59910c], edi
xorps xmm0, xmm0
movlpd qword [0x599100], xmm0
mov ebx, dword [0x599100]
mov ecx, dword [0x599104]
mov edi, dword [ebp - 8]
sub edi, dword [0x5990f8]
mov esi, dword [ebp - 4]
sbb esi, dword [0x5990fc]
push 0
push 0x3e8
push ecx
push ebx
call fcn.0043f960
push edx
push eax
push esi
push edi
call fcn.0043f960
mov esi, eax
xor edi, edi
mov eax, dword [0x599104]
jmp 0x43627e
mov ebx, dword [0x599100]
or ebx, eax
jne 0x4362a1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x5990f4]
mov esi, eax
cmp ecx, esi
jae 0x43629d
or eax, 0xffffffff
sub eax, ecx
add esi, eax
jmp 0x4362a1
sub ecx, esi
mov esi, ecx
mov eax, dword [0x599110]
mov dword [0x599108], edi
add eax, esi
pop edi
pop esi
pop ebx
leave
ret