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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10085990
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100aa470]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea edi, [esi + 0x6e8]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
lea edi, [esi + 0x48c]
xor ebx, ebx
mov dword [esp + 0x48], ebx
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1000b676
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x28], 1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ecx
mov byte [esp + 0x50], 1
push edx
mov dword [esp + 0x24], ebx
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.10010f00
mov edi, eax
test edi, edi
jns 0x1000b6ea
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1000b6d3
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
sbb eax, dword [esp + 0x20]
add dword [esi], edx
adc dword [esi + 4], eax
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, 0x100
test ebx, ebx
je 0x1000b6fd
mov dword [esp + 0x14], 0x80070057
jmp 0x1000b775
cmp dword [esi + 0x9f4], 1
jne 0x1000b710
mov dword [esp + 0x14], 0xc00d6d60
jmp 0x1000b775
cmp byte [esi + 0x9f8], 0
je 0x1000b732
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 8], edi
mov dword [ecx], 0
mov dword [esp + 0x14], 0xc00d6d61
jmp 0x1000b778
mov ecx, dword [esi + 0xaa0]
test ecx, ecx
je 0x1000b761
mov eax, dword [esi + 0xaa8]
cmp eax, dword [esi + 0xa9c]
jae 0x1000b761
cmp dword [ecx + eax*4], 0
je 0x1000b761
cmp eax, dword [esi + 0xaa4]
jne 0x1000b76b
cmp byte [esi + 0xa37], 0
jne 0x1000b76b
mov dword [esp + 0x14], 0x80004005
jmp 0x1000b775
mov edx, dword [esi + 0x55c]
mov dword [esp + 0x14], edx
mov ebx, dword [ebp + 0x14]
cmp dword [esi + 0x9f4], 0
jne 0x1000b7f5
cmp dword [esp + 0x14], 0
jl 0x1000b986
mov eax, dword [esi + 0xaa0]
test eax, eax
je 0x1000b7ab
mov edx, dword [esi + 0xaa8]
cmp edx, dword [esi + 0xa9c]
jae 0x1000b7ab
mov eax, dword [eax + edx*4]
test eax, eax
jne 0x1000b7b2
mov eax, 0x80004003
jmp 0x1000b7c6
mov eax, dword [eax + 0x10]
add eax, 0x18
lea ebx, [esi + 0xa48]
call fcn.1003d030
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
js 0x1000b986
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], edi
mov dword [eax], 0
mov dword [esp + 0x14], 0xc00d6d61
mov dword [esi + 0x9f4], 1
jmp 0x1000ba00
cmp dword [esp + 0x14], 0
mov dword [esi + 0x9f4], 3
jl 0x1000b8b2
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebx + 4]
lea edi, [esi + 0xa48]
push edx
mov ecx, edi
call fcn.1003cd90
cmp dword [esp + 0x14], 0
jl 0x1000b855
cmp dword [esi + 0x500], 0
je 0x1000b837
mov dword [ebx + 8], 0x1000000
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov ecx, 1
add dword [esi + 0x6b4], ecx
test al, al
je 0x1000b8b2
add dword [esi + 0xb6c], ecx
test al, al
je 0x1000b8b2
call fcn.1003cd20
mov eax, dword [esi + 0xa10]
test eax, eax
je 0x1000b874
mov edx, dword [esi + 0xa0c]
push edx
call fcn.1000a290
mov eax, dword [esi + 0xa20]
test eax, eax
je 0x1000b88a
mov ecx, dword [esi + 0xa1c]
push ecx
call fcn.1000a290
mov edi, dword [esi + 0x510]
cmp dword [edi], 0
je 0x1000b8b2
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x14]
cmp byte [esi + 0xa39], 0
mov edi, 0xfffffff5
je 0x1000b909
mov eax, dword [esi + 0xa20]
mov ecx, dword [esi + 0xa1c]
test eax, eax
je 0x1000b8d6
push ecx
call fcn.1000a290
mov dword [esi + 0xa24], eax
test eax, eax
je 0x1000b909
mov byte [esi + 0xa39], 0
cmp dword [esi + 0x9fc], edi
jne 0x1000b909
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.1000b100
cmp dword [esp + 0x14], 0
jl 0x1000b909
test eax, eax
jns 0x1000b909
mov dword [esp + 0x14], eax
cmp byte [esi + 0xa38], 0
je 0x1000b941
cmp dword [esi + 0x9fc], edi
je 0x1000b941
mov eax, dword [esi + 0xa10]
mov ecx, dword [esi + 0xa0c]
test eax, eax
je 0x1000b930
push ecx
call fcn.1000a290
mov dword [esi + 0xa14], eax
test eax, eax
je 0x1000b941
mov byte [esi + 0xa38], 0
cmp byte [esi + 0xa5c], 0
jne 0x1000b986
cmp dword [esi + 0x4f8], 0
jne 0x1000b986
cmp byte [esi + 0xa37], 0
jne 0x1000b986
cmp byte [esi + 0x4f7], 0
jne 0x1000b986
cmp byte [esi + 0xa38], 0
jne 0x1000ba4c
cmp byte [esi + 0xa39], 0
jne 0x1000ba4c
mov edi, esi
call fcn.1000fb30
cmp dword [esp + 0x14], 0xc00d6d61
je 0x1000ba00
test ebx, ebx
je 0x1000b9c4
cmp dword [esp + 0x14], 0
jl 0x1000b9a7
cmp dword [ebx + 4], 0
jne 0x1000b9c4
cmp dword [ebx + 8], 0
jne 0x1000b9c4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000b9bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x300
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x1000b9f1
cmp dword [esi + 0x55c], 0
jl 0x1000b9f1
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
push eax
mov ecx, esi
call edx
push 0
lea eax, [esp + 0x28]
mov ebx, esi
call fcn.1000a440
cmp byte [esp + 0x28], 0
mov dword [esp + 0x14], 0
je 0x1000ba0b
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1000ba33
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
sbb eax, dword [esp + 0x20]
add dword [esi], edx
adc dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esp + 0x14], 0
jl 0x1000b986
mov eax, dword [esi + 0xaa8]
cmp eax, dword [esi + 0xaa4]
jne 0x1000b986
mov dword [esp + 0x14], 0x80004005
jmp 0x1000b990