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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push esi
push edi
test ebx, ebx
je 0x100fad78
test byte [ebx + 0xb0], 2
je 0x100fad78
push 0x10
push 0xec
call fcn.10434a32
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x100fad78
lea esi, [edi + 0x24]
mov edx, 0x10
mov dword [ebp - 8], esi
mov ecx, esi
nop
or dword [ecx + 8], 0xff
lea ecx, [ecx + 0xc]
mov dword [ecx - 0xc], 0
mov dword [ecx - 8], 0
sub edx, 1
jne 0x100faa20
push 0xec
push edx
push edi
call fcn.10425c00
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [0x11d0c5b8]
mov dword [edi + 0x20], ebx
mov dword [ebp - 4], 0
mov ebx, dword [eax + ecx*4]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0xf944], 0
jbe 0x100fab97
nop dword [eax + eax]
xor ebx, ebx
mov edi, esi
mov eax, dword [ebp - 0xc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
mov esi, dword [eax + 0x10]
mov dword [edi], esi
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 1
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fab39
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d0]
lea ecx, [ebp - 0x68]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x1c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
mov eax, dword [ebp - 0x18]
jmp 0x100fab54
mov eax, dword [esi + 0x10d0]
lea ecx, [ebp - 0x68]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
test eax, eax
jne 0x100fad60
mov eax, dword [ebp - 0x24]
inc ebx
mov dword [edi + 4], eax
add edi, 0xc
cmp ebx, 2
jb 0x100faa84
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
inc edx
add esi, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], esi
cmp edx, dword [eax + 0xf944]
jb 0x100faa80
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1f0]
push 0x78100000
push 2
push 1
mov eax, dword [eax + 0x74]
add eax, 0xfff
and eax, 0xfffff000
push eax
push eax
call fcn.10025350
mov eax, dword [ebp - 0x190]
and eax, 0xffffff
mov dword [ebp - 8], 0
or eax, 0x2000000
mov dword [ebp - 0x190], eax
lea eax, [edi + 0x18]
mov dword [ebp - 4], eax
mov edi, dword [ebx + 0x10]
add edi, 0x7a80
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10
push 0x2c0
mov dword [ebp - 0xc], 0x8876017c
call fcn.10434a32
mov esi, eax
add esp, 8
test esi, esi
je 0x100fad0e
push 0x2c0
push 0
push esi
call fcn.10425c00
mov eax, 1
add esp, 0xc
mov word [esi + 0x10], ax
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + 0x7b30], 0
jne 0x100fac41
mov dword [ecx + 0x7b30], esi
mov eax, dword [ecx + 0x7b2c]
test eax, eax
je 0x100fac4d
mov dword [eax], esi
mov dword [esi], 0
mov eax, dword [ebx + 0x10]
push 0
push ecx
mov eax, dword [eax + 0x7b2c]
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
inc dword [ecx + 0x7b34]
push eax
push 0x480000
push 0x800200
lea eax, [ebp - 0x1f0]
mov dword [ecx + 0x7b2c], esi
push eax
push esi
mov ecx, edi
call fcn.10050a30
mov dword [ebp - 0xc], eax
test eax, eax
js 0x100faca6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov dword [eax], esi
jmp 0x100fad40
mov ecx, esi
call fcn.1004ee00
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x100facc3
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
test eax, eax
je 0x100facd1
mov dword [eax + 4], edx
jmp 0x100face4
mov dword [ecx + 0x7b2c], edx
mov eax, dword [esi + 4]
test eax, eax
je 0x100face4
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x100facef
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100fad17
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
cmp byte [ebx + 8], 0
jne 0x100fad25
call fcn.10450c0b
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0xbe2c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov dword [eax], esi
test esi, esi
je 0x100fad60
mov ecx, dword [ebp - 8]
add eax, 4
inc ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, 2
jb 0x100fabe0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.100fa6b0
push 0xec
push esi
call fcn.1045088a
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret