Function at 0x10076db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e17e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x1010f16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1011290c
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x1011290c
call esi
cmp byte [0x10112970], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
je 0x10076e14
mov dword [ebp - 0x14], 0
jmp 0x10077186
push 1
call fcn.100785b0
add esp, 4
test al, al
jne 0x10076e2e
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x10077186
push dword [ebp + 8]
call fcn.100786a0
add esp, 4
cmp eax, 0xffffffff
jne 0x10076e45
or esi, eax
jmp 0x10077189
push 0x104
push dword [ebp + 8]
mov dword [0x1010f014], eax
push 0x101129c0
call fcn.100b1840
add esp, 0xc
mov dword [ebp - 0x14], 0
push 0x1011290c
call esi
mov eax, dword [0x1010f014]
cmp eax, 0xffffffff
je 0x10076ed1
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 0x10076ed1
cmp dword [ebp - 0x1c], 0
jbe 0x10076ed1
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x10076eae
mov byte [ebp - 0xd], 0
cmp eax, 1
jne 0x10076eb2
mov byte [ebp - 0xd], 1
push 0x1011290c
call edi
mov eax, dword [0x1010f020]
mov ecx, 0x20000
cmp byte [ebp - 0xd], 0
cmovne eax, ecx
mov dword [0x1010f020], eax
jmp 0x10076ed8
push 0x1011290c
call edi
push 0x1011290c
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x1010f014]
cmp eax, 0xffffffff
jne 0x10076efb
push 0x1011290c
call edi
xor eax, eax
jmp 0x10076f41
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 0x10076f35
cmp dword [ebp - 0x1c], 0
jbe 0x10076f35
cmp dword [ebp - 0x14], 2
push 0x1011290c
jne 0x10076f3a
call edi
mov eax, 2
jmp 0x10076f41
push 0x1011290c
call edi
mov eax, 1
push 0
push 0
xorps xmm0, xmm0
mov dword [0x10112908], eax
push 0
push 0
mov dword [ebp - 0x18], 0
movups xmmword [0x10112ac4], xmm0
movups xmmword [0x10112ad4], 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 0x10112ac4
push 0
push 0
push 0x12c800
push dword [0x1010f014]
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 0x10076fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10076fc7
mov ecx, 0x1010f014
call fcn.10074cd0
jmp 0x10077173
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x1010f014]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10077005
mov eax, dword [0x1010f014]
cmp eax, 0xffffffff
je 0x10077173
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1010f014], 0xffffffff
jmp 0x10077173
cmp dword [ebp - 0x18], 0x20
je 0x1007701a
mov ecx, 0x1010f014
call fcn.10074cd0
jmp 0x10077173
push 0x3001
mov dword [0x10112978], 0x10112974
mov dword [0x10112974], 0x10112974
mov dword [0x10112988], 0x10112984
mov dword [0x10112984], 0x10112984
call fcn.10079250
push 0x3001
mov dword [0x101128f8], eax
call fcn.10079250
add esp, 8
mov dword [0x101128fc], eax
call fcn.100793f0
push 0x1011290c
mov dword [0x10112994], 0
mov dword [0x101129a0], 0
mov dword [0x101129ac], 0
mov dword [0x101129b8], 0
mov dword [0x10112990], 0x1011298c
mov dword [0x1011298c], 0x1011298c
mov dword [0x1011299c], 0x10112998
mov dword [0x10112998], 0x10112998
mov dword [0x101129a8], 0x101129a4
mov dword [0x101129a4], 0x101129a4
mov dword [0x101129b4], 0x101129b0
mov dword [0x101129b0], 0x101129b0
mov byte [0x10112970], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1010f014], 0xffffffff
je 0x10077167
cmp dword [0x1010f018], 0xffffffff
jne 0x10077167
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10077167
push dword [0x1010f008]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x10112900], eax
call edi
push dword [0x1010f004]
call edi
push dword [section..data]
call edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x10077f20
push 0
push 0
call fcn.100ba680
add esp, 0x18
test eax, eax
jne 0x100771a3
push dword [0x1010f004]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x1010f018], 0xffffffff
push 0x1011290c
call edi
call fcn.10076b00
mov dword [ebp - 0x14], 0xffffffff
cmp esi, 0xffffffff
je 0x10077186
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push 0x1011290c
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 [section..data]
mov dword [0x1010f018], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1011290c
call edi
mov dword [ebp - 0x14], 0
jmp 0x1007717a