Function at 0x1008a500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d83b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1010d9f4
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x1010d9f4
call esi
cmp byte [0x1010db28], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
je 0x1008a564
mov dword [ebp - 0x14], 0
jmp 0x1008a8d6
push 1
call fcn.10090db0
add esp, 4
test al, al
jne 0x1008a57e
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x1008a8d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10090ae0
add esp, 8
cmp eax, 0xffffffff
jne 0x1008a598
or esi, eax
jmp 0x1008a8d9
push 0x1010d9f4
mov dword [0x10105094], eax
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x10105094]
cmp eax, 0xffffffff
je 0x1008a60f
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 0x1008a60f
cmp dword [ebp - 0x1c], 0
jbe 0x1008a60f
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x1008a5ec
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x1008a5f0
mov byte [ebp - 0xd], 1
push 0x1010d9f4
call edi
mov eax, dword [0x101050a0]
mov ecx, 0x20000
cmp byte [ebp - 0xd], 0
cmovne eax, ecx
mov dword [0x101050a0], eax
jmp 0x1008a616
push 0x1010d9f4
call edi
push 0x1010d9f4
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x10105094]
cmp eax, 0xffffffff
jne 0x1008a639
push 0x1010d9f4
call edi
xor eax, eax
jmp 0x1008a67f
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 0x1008a673
cmp dword [ebp - 0x1c], 0
jbe 0x1008a673
cmp dword [ebp - 0x14], 2
push 0x1010d9f4
jne 0x1008a678
call edi
mov eax, 2
jmp 0x1008a67f
push 0x1010d9f4
call edi
mov eax, 1
push 0
push 0
xorps xmm0, xmm0
mov dword [0x1010d9f0], eax
push 0
push 0
mov dword [ebp - 0x18], 0
movups xmmword [0x1010db74], xmm0
movups xmmword [0x1010db84], 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 0x1010db74
push 0
push 0
push 0x12c800
push dword [0x10105094]
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 0x1008a705
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008a705
mov ecx, 0x10105094
call fcn.1008d840
jmp 0x1008a8c3
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1008a744
mov eax, dword [0x10105094]
cmp eax, 0xffffffff
je 0x1008a8c3
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x10105094], 0xffffffff
jmp 0x1008a8c3
cmp dword [ebp - 0x18], 0x20
je 0x1008a76f
mov eax, dword [0x10105094]
cmp eax, 0xffffffff
je 0x1008a8c3
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [0x10105094], 0xffffffff
jmp 0x1008a8c3
push 0x3001
mov dword [0x1010db30], 0x1010db2c
mov dword [0x1010db2c], 0x1010db2c
mov dword [0x1010db40], 0x1010db3c
mov dword [0x1010db3c], 0x1010db3c
call fcn.10091950
push 0x3001
mov dword [0x1010d9e0], eax
call fcn.10091950
add esp, 8
mov dword [0x1010d9e4], eax
mov dword [0x1010db4c], 0
mov dword [0x1010db58], 0
mov dword [0x1010db64], 0
push 0x1010d9f4
mov dword [0x1010db70], 0
mov dword [0x1010db48], 0x1010db44
mov dword [0x1010db44], 0x1010db44
mov dword [0x1010db54], 0x1010db50
mov dword [0x1010db50], 0x1010db50
mov dword [0x1010db60], 0x1010db5c
mov dword [0x1010db5c], 0x1010db5c
mov dword [0x1010db6c], 0x1010db68
mov dword [0x1010db68], 0x1010db68
mov byte [0x1010db28], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10105094], 0xffffffff
je 0x1008a8b7
cmp dword [0x10105098], 0xffffffff
jne 0x1008a8b7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1008a8b7
push dword [0x10105088]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x1010d9e8], eax
call edi
push dword [0x10105084]
call edi
push dword [0x10105080]
call edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1008c820
push 0
push 0
call fcn.100aca12
add esp, 0x18
test eax, eax
jne 0x1008a8f3
push dword [0x10105084]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x10105098], 0xffffffff
push 0x1010d9f4
call edi
call fcn.1008a920
mov dword [ebp - 0x14], 0xffffffff
cmp esi, 0xffffffff
je 0x1008a8d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push 0x1010d9f4
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 [0x10105080]
mov dword [0x10105098], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1010d9f4
call edi
mov dword [ebp - 0x14], 0
jmp 0x1008a8ca