Function at 0x10084b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1d45
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x100fd230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10104ea4
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x10104ea4
call esi
cmp byte [0x10104fd8], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
je 0x10084b64
mov dword [ebp - 0x14], 0
jmp 0x10084ed3
push 1
call fcn.1008b3b0
add esp, 4
test al, al
jne 0x10084b7e
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x10084ed3
push dword [ebp + 8]
call fcn.1008b0e0
add esp, 4
cmp eax, 0xffffffff
jne 0x10084b95
or esi, eax
jmp 0x10084ed6
push 0x10104ea4
mov dword [0x100fd094], eax
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x100fd094]
cmp eax, 0xffffffff
je 0x10084c0c
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 0x10084c0c
cmp dword [ebp - 0x1c], 0
jbe 0x10084c0c
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x10084be9
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x10084bed
mov byte [ebp - 0xd], 1
push 0x10104ea4
call edi
mov eax, dword [0x100fd0a0]
mov ecx, 0x20000
cmp byte [ebp - 0xd], 0
cmovne eax, ecx
mov dword [0x100fd0a0], eax
jmp 0x10084c13
push 0x10104ea4
call edi
push 0x10104ea4
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x100fd094]
cmp eax, 0xffffffff
jne 0x10084c36
push 0x10104ea4
call edi
xor eax, eax
jmp 0x10084c7c
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 0x10084c70
cmp dword [ebp - 0x1c], 0
jbe 0x10084c70
cmp dword [ebp - 0x14], 2
push 0x10104ea4
jne 0x10084c75
call edi
mov eax, 2
jmp 0x10084c7c
push 0x10104ea4
call edi
mov eax, 1
push 0
push 0
xorps xmm0, xmm0
mov dword [0x10104ea0], eax
push 0
push 0
mov dword [ebp - 0x18], 0
movups xmmword [0x10105024], xmm0
movups xmmword [0x10105034], 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 0x10105024
push 0
push 0
push 0x12c800
push dword [0x100fd094]
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 0x10084d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10084d02
mov ecx, 0x100fd094
call fcn.10087e40
jmp 0x10084ec0
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x100fd094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10084d41
mov eax, dword [0x100fd094]
cmp eax, 0xffffffff
je 0x10084ec0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x100fd094], 0xffffffff
jmp 0x10084ec0
cmp dword [ebp - 0x18], 0x20
je 0x10084d6c
mov eax, dword [0x100fd094]
cmp eax, 0xffffffff
je 0x10084ec0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x100fd094], 0xffffffff
jmp 0x10084ec0
push 0x3001
mov dword [0x10104fe0], 0x10104fdc
mov dword [0x10104fdc], 0x10104fdc
mov dword [0x10104ff0], 0x10104fec
mov dword [0x10104fec], 0x10104fec
call fcn.1008bf70
push 0x3001
mov dword [0x10104e90], eax
call fcn.1008bf70
add esp, 8
mov dword [0x10104e94], eax
mov dword [0x10104ffc], 0
mov dword [0x10105008], 0
mov dword [0x10105014], 0
push 0x10104ea4
mov dword [0x10105020], 0
mov dword [0x10104ff8], 0x10104ff4
mov dword [0x10104ff4], 0x10104ff4
mov dword [0x10105004], 0x10105000
mov dword [0x10105000], 0x10105000
mov dword [0x10105010], 0x1010500c
mov dword [0x1010500c], 0x1010500c
mov dword [0x1010501c], 0x10105018
mov dword [0x10105018], 0x10105018
mov byte [0x10104fd8], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100fd094], 0xffffffff
je 0x10084eb4
cmp dword [0x100fd098], 0xffffffff
jne 0x10084eb4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10084eb4
push dword [0x100fd088]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x10104e98], eax
call edi
push dword [0x100fd084]
call edi
push dword [0x100fd080]
call edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x10086e20
push 0
push 0
call fcn.100a7074
add esp, 0x18
test eax, eax
jne 0x10084ef0
push dword [0x100fd084]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x100fd098], 0xffffffff
push 0x10104ea4
call edi
call fcn.10084f20
mov dword [ebp - 0x14], 0xffffffff
cmp esi, 0xffffffff
je 0x10084ed3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push 0x10104ea4
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 [0x100fd080]
mov dword [0x100fd098], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10104ea4
call edi
mov dword [ebp - 0x14], 0
jmp 0x10084ec7