Function at 0x13b0e
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov edi, 0x12db8
mov ecx, edi
xor ebx, ebx
mov dword [ebp - 4], esi
mov word [ebp - 0x10], si
mov word [ebp - 0xe], si
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
cmp dword [0x12da4], esi
mov ecx, edi
jne 0x13c4a
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov eax, dword [0x12ecc]
add eax, 0x16
cmp dword [0x12dd8], esi
mov word [ebp - 0xe], ax
je 0x13b70
cmp byte [ebp + 0x18], bl
je 0x13b70
add word [ebp - 0xe], 0xe
movzx eax, word [ebp - 0xe]
push 0x4364624b
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], edi
jne 0x13bb3
movzx eax, word [ebp - 0xe]
mov dword [ebp + 0x18], 0xc0000001
mov dword [ebp - 4], 0xc0050001
mov dword [ebp + 0xc], 0x2716
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 1
jmp 0x13d05
movzx ecx, word [ebp - 0xe]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
push 0x13ae6
lea eax, [ebp - 0x10]
push eax
call edi
push dword [0x12ed0]
lea eax, [ebp - 0x10]
push eax
call edi
cmp dword [0x12dd8], esi
je 0x13bfd
cmp byte [ebp + 0x18], 0
je 0x13bfd
push 0x13afa
lea eax, [ebp - 0x10]
push eax
call edi
push 0x13b0a
lea eax, [ebp - 0x10]
push eax
call edi
push 0x30
pop edi
push dword [ebp + 0x10]
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push esi
shr eax, 1
push esi
mov word [ecx + eax*2 - 2], di
push 0xb
lea eax, [ebp - 0x10]
push eax
push 0xe0
push dword [ebp + 8]
inc edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, 0xc0000035
mov dword [ebp + 0x18], eax
je 0x13c0b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x13c6f
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov edi, dword [ebp + 0x10]
push edi
push esi
push esi
push 0xb
push esi
push 0xe0
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
cmp dword [ebp + 0x18], esi
jge 0x13c95
movzx eax, word [ebp - 0xe]
mov dword [ebp - 4], 0xc005000d
mov dword [ebp + 0xc], 0x2716
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 1
jmp 0x13d15
mov eax, dword [edi]
or dword [eax + 0x1c], 4
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 0x38
pop ecx
push 0x18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax]
xor edi, edi
push edi
push edi
mov dword [ebx], eax
mov esi, 0x4364624b
push esi
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_IoInitializeRemoveLockEx]
lea eax, [ebx + 0x6c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
lea eax, [ebx + 0x70]
push esi
mov dword [eax + 4], eax
mov dword [eax], eax
push dword [ebx + 0x58]
mov dword [ebx + 0x30], edi
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
mov dword [ebx + 0x40], eax
jne 0x13d0a
mov dword [ebp + 0x18], 0xc000009a
mov dword [ebp - 4], 0xc0050002
mov dword [ebp + 0xc], 0x2724
xor esi, esi
mov edi, dword [ebp + 0x10]
jmp 0x13d1a
push ebx
call fcn.00011306
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x13d73
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
cmp dword [ebp - 4], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
je 0x13d4e
mov eax, dword [edi]
cmp eax, esi
jne 0x13d37
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
call fcn.0001133a
cmp ebx, esi
je 0x13d64
mov eax, dword [ebx + 0x40]
cmp eax, esi
je 0x13d64
push esi
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebx + 0x40], esi
mov eax, dword [edi]
cmp eax, esi
je 0x13d73
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [edi], esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x14