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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100ee940]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x40], ebx
push dword [esi + 0x18]
call fcn.10065e90
add esp, 4
test eax, eax
jne 0x10017aae
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10078d70
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movsd qword [ebp - 0x3c], xmm0
call fcn.10078d70
movsd xmm1, qword [ebp - 0x3c]
mov ecx, esi
divsd xmm1, xmm0
movsd qword [ebp - 0x3c], xmm1
call fcn.10019660
push dword [esi + 0x18]
call fcn.10063f80
imul ecx, dword [esi + 0x28], 0x220
add esp, 4
mov eax, dword [esi + 0x1c]
cmp byte [ecx + eax + 0xb5], 0
jne 0x1001789e
mov eax, ebx
inc ebx
mov dword [ebp - 0x40], ebx
cmp eax, 5
jl 0x1001789e
call fcn.10065ae0
mov dword [ebp - 0x40], 0
jmp 0x100178a3
call fcn.10065a60
lea eax, [ebp - 0x2c]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.10078d70
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
movsd qword [ebp - 0x4c], xmm0
call fcn.10078d70
movsd xmm1, qword [ebp - 0x4c]
divsd xmm1, xmm0
mov eax, dword [esi + 0x1c]
imul ecx, dword [esi + 0x28], 0x220
subsd xmm1, qword [ebp - 0x3c]
movsd xmm0, qword [0x100e3af0]
mulsd xmm1, xmm0
divsd xmm0, qword [ecx + eax + 0xb8]
comisd xmm0, xmm1
jbe 0x10017a98
subsd xmm0, xmm1
lea ecx, [ebp - 0x54]
cvttsd2si eax, xmm0
cdq
mov ebx, edx
mov edi, eax
mov dword [ebp - 0x38], ebx
call fcn.10002ad0
mov ecx, edi
or ecx, ebx
jne 0x1001792b
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
jmp 0x10017993
test ebx, ebx
jg 0x10017939
jl 0x10017935
test edi, edi
jae 0x10017939
or al, 0xff
jmp 0x1001793b
mov al, 1
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], ebx
test al, al
jle 0x100179a0
push 0
push 0x3e8
push dword [ebp - 0x38]
push edi
call fcn.10079290
mov ecx, eax
or edi, 0xffffffff
sub edi, ecx
mov eax, 0x7fffffff
sbb eax, edx
cmp esi, edi
jne 0x10017971
cmp ebx, eax
je 0x1001798b
cmp ebx, eax
jg 0x1001797f
jl 0x1001797b
cmp esi, edi
jae 0x1001797f
or al, 0xff
jmp 0x10017981
mov al, 1
test al, al
jns 0x1001798b
add esi, ecx
adc ebx, edx
jmp 0x10017993
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], ebx
nop dword [eax]
lea ecx, [ebp - 0x64]
call fcn.10002ad0
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
cmp esi, edx
jne 0x100179ba
cmp ebx, ecx
je 0x10017a8f
cmp ebx, ecx
jg 0x100179c8
jl 0x100179c4
cmp esi, edx
jae 0x100179c8
or al, 0xff
jmp 0x100179ca
mov al, 1
test al, al
jle 0x10017a8f
mov edi, esi
mov esi, ebx
sub edi, edx
sbb esi, ecx
cmp edi, 0x914f0000
jne 0x100179ee
cmp esi, 0x4e94
je 0x10017a7d
cmp esi, 0x4e94
jg 0x10017a04
jl 0x10017a00
cmp edi, 0x914f0000
jae 0x10017a04
or al, 0xff
jmp 0x10017a06
mov al, 1
test al, al
jns 0x10017a7d
push 0
push 0xf4240
push esi
push edi
call fcn.100a4590
push 0
mov ebx, eax
mov eax, edx
push 0xf4240
push eax
push ebx
mov dword [ebp - 0x38], eax
call fcn.10079290
cmp eax, edi
jne 0x10017a35
cmp edx, esi
je 0x10017a66
cmp edx, esi
jg 0x10017a43
jl 0x10017a3f
cmp eax, edi
jae 0x10017a43
or al, 0xff
jmp 0x10017a45
mov al, 1
test al, al
jns 0x10017a66
mov eax, dword [ebp - 0x38]
add ebx, 1
push ebx
adc eax, 0
mov dword [ebp - 0x38], eax
call sub.KERNEL32.dll_Sleep
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x30]
jmp 0x100179a0
mov eax, dword [ebp - 0x38]
push ebx
mov dword [ebp - 0x38], eax
call sub.KERNEL32.dll_Sleep
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x30]
jmp 0x100179a0
push 0x5265c00
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
jmp 0x100179a0
mov esi, dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push dword [esi + 0x18]
call fcn.10065e90
mov ebx, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x10017826
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10078315
mov esp, ebp
pop ebp
ret 4