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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100f2040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi]
mov dword [0x100f6364], eax
cmp dword [esi + 4], 0
je 0x10080996
cmp dword [esi + 8], 0
je 0x10080996
cmp dword [esi + 0x10], 0
je 0x10080996
cmp dword [esi + 0x14], 0
je 0x10080996
cmp dword [esi + 0xc], 0
je 0x10080996
mov eax, dword [0x100f5f50]
test eax, eax
je 0x1008043c
cmp dword [eax + 0x7c], 0
je 0x1008043c
mov ecx, dword [0x100f5f54]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x1008043c
cmp byte [0x100f5f62], 0
je 0x1007ffc6
mov ecx, 0xd78c9c
call fcn.1001e350
mov ebx, eax
test ebx, ebx
je 0x1007ffbd
push 4
push ebx
call edi
test eax, eax
jne 0x1007ffbd
push 4
add ebx, 0xb7c
push ebx
call edi
test eax, eax
jne 0x1007ffbd
mov ecx, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [ecx + 0x42], al
jmp 0x1007ffc1
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x100f5f50]
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0x2c]
cmp al, byte [ecx + 0x42]
jne 0x1008043c
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1008002b
push 4
push ebx
call edi
test eax, eax
jne 0x1008002b
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008002b
cmp byte [ebx], al
je 0x1008002b
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080108
push 4
push ebx
call edi
test eax, eax
jne 0x10080108
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080108
cmp byte [ebx], al
je 0x10080108
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080204
push 4
push ebx
call edi
test eax, eax
jne 0x10080204
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080204
cmp byte [ebx], al
je 0x10080204
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080204
push 4
push ebx
call edi
test eax, eax
jne 0x10080204
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080204
cmp byte [ebx], al
je 0x10080204
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x100800c6
push 4
push eax
call edi
test eax, eax
jne 0x100800c2
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x100800f9
push 4
push eax
call edi
test eax, eax
jne 0x100800f9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10080204
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080135
push 4
push ebx
call edi
test eax, eax
jne 0x10080135
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080162
push 4
push ebx
call edi
test eax, eax
jne 0x10080162
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080186
push 4
push ebx
call edi
test eax, eax
jne 0x10080186
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100801b3
push 4
push ebx
call edi
test eax, eax
jne 0x100801b3
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100801e0
push 4
push ebx
call edi
test eax, eax
jne 0x100801e0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080204
push 4
push ebx
call edi
test eax, eax
jne 0x10080204
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008035a
push 4
push ebx
call edi
test eax, eax
jne 0x1008035a
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008035a
cmp byte [ebx], al
je 0x1008035a
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1008025e
push 4
push ebx
call edi
test eax, eax
jne 0x1008025e
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008025e
cmp byte [ebx], al
jne 0x1008035a
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1008028b
push 4
push ebx
call edi
test eax, eax
jne 0x1008028b
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100802b8
push 4
push ebx
call edi
test eax, eax
jne 0x100802b8
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100802dc
push 4
push ebx
call edi
test eax, eax
jne 0x100802dc
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080309
push 4
push ebx
call edi
test eax, eax
jne 0x10080309
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080336
push 4
push ebx
call edi
test eax, eax
jne 0x10080336
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
mov eax, dword [esp + 0x1c]
add eax, 0x3a
jmp 0x10080989
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080996
cmp byte [ebx], al
je 0x10080996
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080996
cmp byte [ebx], al
je 0x10080996
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x100803f5
push 4
push eax
call edi
test eax, eax
jne 0x100803f1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x10080428
push 4
push eax
call edi
test eax, eax
jne 0x10080428
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10080996
jmp 0x1008025e
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080492
push 4
push ebx
call edi
test eax, eax
jne 0x10080492
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080492
cmp byte [ebx], al
je 0x10080492
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008056f
push 4
push ebx
call edi
test eax, eax
jne 0x1008056f
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008056f
cmp byte [ebx], al
je 0x1008056f
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100806e9
push 4
push ebx
call edi
test eax, eax
jne 0x100806e9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100806e9
cmp byte [ebx], al
je 0x100806e9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100806e9
push 4
push ebx
call edi
test eax, eax
jne 0x100806e9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100806e9
cmp byte [ebx], al
je 0x100806e9
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1008052d
push 4
push eax
call edi
test eax, eax
jne 0x10080529
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x10080560
push 4
push eax
call edi
test eax, eax
jne 0x10080560
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x100806e9
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1008059c
push 4
push ebx
call edi
test eax, eax
jne 0x1008059c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100805c9
push 4
push ebx
call edi
test eax, eax
jne 0x100805c9
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100805ed
push 4
push ebx
call edi
test eax, eax
jne 0x100805ed
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1008061a
push 4
push ebx
call edi
test eax, eax
jne 0x1008061a
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080647
push 4
push ebx
call edi
test eax, eax
jne 0x10080647
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008066b
push 4
push ebx
call edi
test eax, eax
jne 0x1008066b
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080698
push 4
push ebx
call edi
test eax, eax
jne 0x10080698
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100806c5
push 4
push ebx
call edi
test eax, eax
jne 0x100806c5
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x100806e9
push 4
push ebx
call edi
test eax, eax
jne 0x100806e9
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x57
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008073f
push 4
push ebx
call edi
test eax, eax
jne 0x1008073f
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008073f
cmp byte [ebx], al
je 0x1008073f
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1008081c
push 4
push ebx
call edi
test eax, eax
jne 0x1008081c
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008081c
cmp byte [ebx], al
je 0x1008081c
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080996
cmp byte [ebx], al
je 0x10080996
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080996
cmp byte [ebx], al
je 0x10080996
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x100807da
push 4
push eax
call edi
test eax, eax
jne 0x100807d6
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x1008080d
push 4
push eax
call edi
test eax, eax
jne 0x1008080d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100e6d48]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10080996
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080849
push 4
push ebx
call edi
test eax, eax
jne 0x10080849
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080876
push 4
push ebx
call edi
test eax, eax
jne 0x10080876
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008089a
push 4
push ebx
call edi
test eax, eax
jne 0x1008089a
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100808c7
push 4
push ebx
call edi
test eax, eax
jne 0x100808c7
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100808f4
push 4
push ebx
call edi
test eax, eax
jne 0x100808f4
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080918
push 4
push ebx
call edi
test eax, eax
jne 0x10080918
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100e6d4c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080945
push 4
push ebx
call edi
test eax, eax
jne 0x10080945
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080972
push 4
push ebx
call edi
test eax, eax
jne 0x10080972
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100e6d48]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080996
push 4
push ebx
call edi
test eax, eax
jne 0x10080996
mov eax, dword [esp + 0x1c]
add eax, 0x57
push dword [esp + 0x14]
mov ecx, ebx
push eax
call dword [0x100e6d4c]
cmp byte [esi + 0x19], 0
jne 0x10080aed
cmp byte [esi + 0x18], 0
je 0x10080aed
cmp dword [esi + 8], 0
je 0x10080aed
cmp byte [0x100f65a5], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x100809f8
push 0x100f65c0
call ebx
cmp eax, 1
jne 0x100809e8
push 0x100f65c8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov al, 1
mov byte [0x100f65a4], al
mov byte [0x100f65a5], al
jmp 0x100809fd
xor al, al
mov byte [0x100f65a5], 1
mov byte [0x100f65a4], al
jmp 0x100809fd
mov al, byte [0x100f65a4]
test al, al
je 0x10080a40
push 0x100f65c0
call ebx
mov edx, dword [0x100f65c4]
mov ecx, dword [0x100f65c0]
call fcn.100c73f0
mov edx, dword [0x100f65cc]
mov ecx, dword [0x100f65c8]
movsd qword [esp + 0x10], xmm0
call fcn.100c73f0
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x10080a5e
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100e91f0]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [0x100e87b4]
movaps xmm1, xmm2
subss xmm1, dword [esi + 0x1c]
comiss xmm0, xmm1
jae 0x10080aed
mov ebx, dword [esi + 8]
movss dword [esi + 0x1c], xmm2
test ebx, ebx
je 0x10080ab1
push 4
push ebx
call edi
test eax, eax
jne 0x10080ab1
lea ecx, [ebx + 0xd0]
call fcn.1001e2e0
mov ebx, dword [esi + 8]
cmp al, 2
jne 0x10080ab4
test ebx, ebx
je 0x10080aed
push 4
push ebx
call edi
test eax, eax
jne 0x10080aed
lea ecx, [ebx + 0xd0]
mov dl, 6
jmp 0x10080ae8
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x10080aed
push 4
push ebx
call edi
test eax, eax
jne 0x10080aed
lea ecx, [ebx + 0xd0]
call fcn.1001e2e0
cmp al, 6
jne 0x10080aed
mov esi, dword [esi + 8]
test esi, esi
je 0x10080aed
push 4
push esi
call edi
test eax, eax
jne 0x10080aed
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.1001e280
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10089100
mov esp, ebp
pop ebp
ret