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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
cmp byte [edx + 4], 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], eax
je 0x1009f4df
test ecx, ecx
jns 0x1009f30e
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x1009f355
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1009f4c2
mov esi, dword [esp + 0x30]
mov eax, esi
mov ebx, dword [esp + 0x34]
or eax, ebx
je 0x1009f4c2
push 0
push 0xffffffffffffffff
push 0
push 0
call fcn.10017890
add esp, 0x10
or eax, edx
je 0x1009f4c2
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov edi, dword [esp + 0x30]
cmp dword [eax + 0x44], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
jne 0x1009f4b7
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x14], 0
jne 0x1009f4b7
test ecx, ecx
jns 0x1009f38a
or eax, 0xffffffff
jmp 0x1009f396
mov eax, ecx
mov dword [esp + 0x18], esi
sub eax, edi
mov dword [esp + 0x1c], ebx
cmp byte [edx + 4], 0
je 0x1009f4fc
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
push eax
push dword [edx]
push dword [esp + 0x28]
call dword [0x1011d0d0]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x1009f34e
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1009f3d7
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
jmp 0x1009f3e8
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
push esi
call fcn.10017890
mov ecx, eax
mov ebx, edx
mov edx, 0x1a9fbe77
mov dword [esp + 0x40], ecx
mul edx
mov edi, 0x624dd2f
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], eax
mov esi, edx
mov eax, ecx
add esp, 0x10
mul edi
mov ecx, 0x1a9fbe77
mov edi, eax
mov dword [esp + 0x24], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [esp + 0x28], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x24]
adc ecx, 0
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x30]
xor eax, eax
add ebx, ecx
mov ecx, dword [esp + 0x28]
adc eax, eax
add ecx, ebx
mov ebx, dword [esp + 0x14]
adc edx, eax
sub edi, ecx
sbb ebx, edx
shrd edi, ebx, 1
shr ebx, 1
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
adc ebx, edx
cdq
shrd edi, ebx, 9
shr ebx, 9
cmp edx, ebx
jb 0x1009f49d
ja 0x1009f485
cmp eax, edi
jbe 0x1009f49d
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x1009f362
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x44], 0
jne 0x1009f4b7
cmp byte [eax + 0x14], 0
jne 0x1009f4b7
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x10100b91
lea ecx, [esp + 0x44]
call fcn.100174c0
push 0x1011b160
lea eax, [esp + 0x44]
push eax
call fcn.100c0589
push 0x10100b91
lea ecx, [esp + 0x44]
call fcn.100174c0
push 0x1011b160
lea eax, [esp + 0x44]
push eax
call fcn.100c0589
push 0x10100b91
lea ecx, [esp + 0x44]
call fcn.100174c0
push 0x1011b160
lea eax, [esp + 0x44]
push eax
call fcn.100c0589
int3