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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100f7040]
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 [0x100fb36c], eax
cmp dword [esi + 4], 0
je 0x10080b56
cmp dword [esi + 8], 0
je 0x10080b56
cmp dword [esi + 0x10], 0
je 0x10080b56
cmp dword [esi + 0x14], 0
je 0x10080b56
cmp dword [esi + 0xc], 0
je 0x10080b56
mov eax, dword [0x100faf58]
test eax, eax
je 0x100805fc
cmp dword [eax + 0x7c], 0
je 0x100805fc
mov ecx, dword [0x100faf5c]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x100805fc
cmp byte [0x100faf6a], 0
je 0x10080186
mov ecx, 0xd78c9c
call fcn.1001e520
mov ebx, eax
test ebx, ebx
je 0x1008017d
push 4
push ebx
call edi
test eax, eax
jne 0x1008017d
push 4
add ebx, 0xb7c
push ebx
call edi
test eax, eax
jne 0x1008017d
mov ecx, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [ecx + 0x42], al
jmp 0x10080181
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x100faf58]
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0x2c]
cmp al, byte [ecx + 0x42]
jne 0x100805fc
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x100801eb
push 4
push ebx
call edi
test eax, eax
jne 0x100801eb
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100801eb
cmp byte [ebx], al
je 0x100801eb
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100802c8
push 4
push ebx
call edi
test eax, eax
jne 0x100802c8
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100802c8
cmp byte [ebx], al
je 0x100802c8
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x100803c4
push 4
push ebx
call edi
test eax, eax
jne 0x100803c4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100803c4
cmp byte [ebx], al
je 0x100803c4
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100803c4
push 4
push ebx
call edi
test eax, eax
jne 0x100803c4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100803c4
cmp byte [ebx], al
je 0x100803c4
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 0x10080286
push 4
push eax
call edi
test eax, eax
jne 0x10080282
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
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 0x100802b9
push 4
push eax
call edi
test eax, eax
jne 0x100802b9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x100803c4
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100802f5
push 4
push ebx
call edi
test eax, eax
jne 0x100802f5
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080322
push 4
push ebx
call edi
test eax, eax
jne 0x10080322
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080346
push 4
push ebx
call edi
test eax, eax
jne 0x10080346
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080373
push 4
push ebx
call edi
test eax, eax
jne 0x10080373
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100803a0
push 4
push ebx
call edi
test eax, eax
jne 0x100803a0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100803c4
push 4
push ebx
call edi
test eax, eax
jne 0x100803c4
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008051a
push 4
push ebx
call edi
test eax, eax
jne 0x1008051a
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008051a
cmp byte [ebx], al
je 0x1008051a
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1008041e
push 4
push ebx
call edi
test eax, eax
jne 0x1008041e
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008041e
cmp byte [ebx], al
jne 0x1008051a
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1008044b
push 4
push ebx
call edi
test eax, eax
jne 0x1008044b
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080478
push 4
push ebx
call edi
test eax, eax
jne 0x10080478
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008049c
push 4
push ebx
call edi
test eax, eax
jne 0x1008049c
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100804c9
push 4
push ebx
call edi
test eax, eax
jne 0x100804c9
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100804f6
push 4
push ebx
call edi
test eax, eax
jne 0x100804f6
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
mov eax, dword [esp + 0x1c]
add eax, 0x3a
jmp 0x10080b49
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080b56
cmp byte [ebx], al
je 0x10080b56
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080b56
cmp byte [ebx], al
je 0x10080b56
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 0x100805b5
push 4
push eax
call edi
test eax, eax
jne 0x100805b1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
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 0x100805e8
push 4
push eax
call edi
test eax, eax
jne 0x100805e8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10080b56
jmp 0x1008041e
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080652
push 4
push ebx
call edi
test eax, eax
jne 0x10080652
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080652
cmp byte [ebx], al
je 0x10080652
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008072f
push 4
push ebx
call edi
test eax, eax
jne 0x1008072f
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1008072f
cmp byte [ebx], al
je 0x1008072f
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100808a9
push 4
push ebx
call edi
test eax, eax
jne 0x100808a9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100808a9
cmp byte [ebx], al
je 0x100808a9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100808a9
push 4
push ebx
call edi
test eax, eax
jne 0x100808a9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100808a9
cmp byte [ebx], al
je 0x100808a9
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 0x100806ed
push 4
push eax
call edi
test eax, eax
jne 0x100806e9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
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 0x10080720
push 4
push eax
call edi
test eax, eax
jne 0x10080720
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x100808a9
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1008075c
push 4
push ebx
call edi
test eax, eax
jne 0x1008075c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080789
push 4
push ebx
call edi
test eax, eax
jne 0x10080789
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100807ad
push 4
push ebx
call edi
test eax, eax
jne 0x100807ad
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100807da
push 4
push ebx
call edi
test eax, eax
jne 0x100807da
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080807
push 4
push ebx
call edi
test eax, eax
jne 0x10080807
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1008082b
push 4
push ebx
call edi
test eax, eax
jne 0x1008082b
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080858
push 4
push ebx
call edi
test eax, eax
jne 0x10080858
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080885
push 4
push ebx
call edi
test eax, eax
jne 0x10080885
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x100808a9
push 4
push ebx
call edi
test eax, eax
jne 0x100808a9
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x57
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100808ff
push 4
push ebx
call edi
test eax, eax
jne 0x100808ff
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100808ff
cmp byte [ebx], al
je 0x100808ff
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100809dc
push 4
push ebx
call edi
test eax, eax
jne 0x100809dc
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100809dc
cmp byte [ebx], al
je 0x100809dc
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080b56
cmp byte [ebx], al
je 0x10080b56
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10080b56
cmp byte [ebx], al
je 0x10080b56
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 0x1008099a
push 4
push eax
call edi
test eax, eax
jne 0x10080996
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
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 0x100809cd
push 4
push eax
call edi
test eax, eax
jne 0x100809cd
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ec5f8]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10080b56
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080a09
push 4
push ebx
call edi
test eax, eax
jne 0x10080a09
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080a36
push 4
push ebx
call edi
test eax, eax
jne 0x10080a36
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10080a5a
push 4
push ebx
call edi
test eax, eax
jne 0x10080a5a
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080a87
push 4
push ebx
call edi
test eax, eax
jne 0x10080a87
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080ab4
push 4
push ebx
call edi
test eax, eax
jne 0x10080ab4
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10080ad8
push 4
push ebx
call edi
test eax, eax
jne 0x10080ad8
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ec5fc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10080b05
push 4
push ebx
call edi
test eax, eax
jne 0x10080b05
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10080b32
push 4
push ebx
call edi
test eax, eax
jne 0x10080b32
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ec5f8]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10080b56
push 4
push ebx
call edi
test eax, eax
jne 0x10080b56
mov eax, dword [esp + 0x1c]
add eax, 0x57
push dword [esp + 0x14]
mov ecx, ebx
push eax
call dword [0x100ec5fc]
cmp byte [esi + 0x19], 0
jne 0x10080cad
cmp byte [esi + 0x18], 0
je 0x10080cad
cmp dword [esi + 8], 0
je 0x10080cad
cmp byte [0x100fb5ad], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x10080bb8
push 0x100fb5c8
call ebx
cmp eax, 1
jne 0x10080ba8
push 0x100fb5d0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov al, 1
mov byte [0x100fb5ac], al
mov byte [0x100fb5ad], al
jmp 0x10080bbd
xor al, al
mov byte [0x100fb5ad], 1
mov byte [0x100fb5ac], al
jmp 0x10080bbd
mov al, byte [0x100fb5ac]
test al, al
je 0x10080c00
push 0x100fb5c8
call ebx
mov edx, dword [0x100fb5cc]
mov ecx, dword [0x100fb5c8]
call fcn.100cbc70
mov edx, dword [0x100fb5d4]
mov ecx, dword [0x100fb5d0]
movsd qword [esp + 0x10], xmm0
call fcn.100cbc70
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x10080c1e
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100eeac0]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [0x100ee064]
movaps xmm1, xmm2
subss xmm1, dword [esi + 0x1c]
comiss xmm0, xmm1
jae 0x10080cad
mov ebx, dword [esi + 8]
movss dword [esi + 0x1c], xmm2
test ebx, ebx
je 0x10080c71
push 4
push ebx
call edi
test eax, eax
jne 0x10080c71
lea ecx, [ebx + 0xd0]
call fcn.1001e4b0
mov ebx, dword [esi + 8]
cmp al, 2
jne 0x10080c74
test ebx, ebx
je 0x10080cad
push 4
push ebx
call edi
test eax, eax
jne 0x10080cad
lea ecx, [ebx + 0xd0]
mov dl, 6
jmp 0x10080ca8
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x10080cad
push 4
push ebx
call edi
test eax, eax
jne 0x10080cad
lea ecx, [ebx + 0xd0]
call fcn.1001e4b0
cmp al, 6
jne 0x10080cad
mov esi, dword [esi + 8]
test esi, esi
je 0x10080cad
push 4
push esi
call edi
test eax, eax
jne 0x10080cad
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.1001e450
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100892c0
mov esp, ebp
pop ebp
ret