Function at 0x10086aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3db5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10105f04
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x10105f04
call esi
cmp byte [0x10106038], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
je 0x10086b04
mov dword [ebp - 0x14], 0
jmp 0x10086e76
push 1
call fcn.1008d310
add esp, 4
test al, al
jne 0x10086b1e
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x10086e76
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1008d040
add esp, 8
cmp eax, 0xffffffff
jne 0x10086b38
or esi, eax
jmp 0x10086e79
push 0x10105f04
mov dword [0x100ff094], eax
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x100ff094]
cmp eax, 0xffffffff
je 0x10086baf
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x22019c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10086baf
cmp dword [ebp - 0x1c], 0
jbe 0x10086baf
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x10086b8c
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x10086b90
mov byte [ebp - 0xd], 1
push 0x10105f04
call edi
mov eax, dword [0x100ff0a0]
mov ecx, 0x20000
cmp byte [ebp - 0xd], 0
cmovne eax, ecx
mov dword [0x100ff0a0], eax
jmp 0x10086bb6
push 0x10105f04
call edi
push 0x10105f04
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x100ff094]
cmp eax, 0xffffffff
jne 0x10086bd9
push 0x10105f04
call edi
xor eax, eax
jmp 0x10086c1f
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x22019c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10086c13
cmp dword [ebp - 0x1c], 0
jbe 0x10086c13
cmp dword [ebp - 0x14], 2
push 0x10105f04
jne 0x10086c18
call edi
mov eax, 2
jmp 0x10086c1f
push 0x10105f04
call edi
mov eax, 1
push 0
push 0
xorps xmm0, xmm0
mov dword [0x10105f00], eax
push 0
push 0
mov dword [ebp - 0x18], 0
movups xmmword [0x10106084], xmm0
movups xmmword [0x10106094], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push 0
push 0x20
push 0x10106084
push 0
push 0
push 0x12c800
push dword [0x100ff094]
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10086ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10086ca5
mov ecx, 0x100ff094
call fcn.10089da0
jmp 0x10086e63
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10086ce4
mov eax, dword [0x100ff094]
cmp eax, 0xffffffff
je 0x10086e63
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x100ff094], 0xffffffff
jmp 0x10086e63
cmp dword [ebp - 0x18], 0x20
je 0x10086d0f
mov eax, dword [0x100ff094]
cmp eax, 0xffffffff
je 0x10086e63
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x100ff094], 0xffffffff
jmp 0x10086e63
push 0x3001
mov dword [0x10106040], 0x1010603c
mov dword [0x1010603c], 0x1010603c
mov dword [0x10106050], 0x1010604c
mov dword [0x1010604c], 0x1010604c
call fcn.1008e100
push 0x3001
mov dword [0x10105ef0], eax
call fcn.1008e100
add esp, 8
mov dword [0x10105ef4], eax
mov dword [0x1010605c], 0
mov dword [0x10106068], 0
mov dword [0x10106074], 0
push 0x10105f04
mov dword [0x10106080], 0
mov dword [0x10106058], 0x10106054
mov dword [0x10106054], 0x10106054
mov dword [0x10106064], 0x10106060
mov dword [0x10106060], 0x10106060
mov dword [0x10106070], 0x1010606c
mov dword [0x1010606c], 0x1010606c
mov dword [0x1010607c], 0x10106078
mov dword [0x10106078], 0x10106078
mov byte [0x10106038], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100ff094], 0xffffffff
je 0x10086e57
cmp dword [0x100ff098], 0xffffffff
jne 0x10086e57
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10086e57
push dword [0x100ff088]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x10105ef8], eax
call edi
push dword [0x100ff084]
call edi
push dword [0x100ff080]
call edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x10088dc0
push 0
push 0
call fcn.100a573b
add esp, 0x18
test eax, eax
jne 0x10086e93
push dword [0x100ff084]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x100ff098], 0xffffffff
push 0x10105f04
call edi
call fcn.10086ec0
mov dword [ebp - 0x14], 0xffffffff
cmp esi, 0xffffffff
je 0x10086e76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push 0x10105f04
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [0x100ff080]
mov dword [0x100ff098], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10105f04
call edi
mov dword [ebp - 0x14], 0
jmp 0x10086e6a