Function at 0x2d210
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0002d006
call fcn.0002d0e0
push dword [ebp + 0xc]
call fcn.0002d14e
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
inc eax
push ebx
push eax
mov dword [0x27b6c], edi
push 0x2a18c
mov dword [0x2a180], eax
mov dword [0x2a184], ebx
mov dword [0x2a188], ebx
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x2d76c
lea eax, [ebp - 0xc]
push eax
call esi
push 0x27b70
push ebx
push 0x100
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, 0xc000003a
jne 0x2d2ae
push 0x2d738
lea eax, [ebp - 0xc]
push eax
call esi
push 0x27b70
push ebx
push 0x100
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
jl 0x2d4db
lea eax, [ebp + 0xf]
and eax, 0x7fffffff
mov ecx, ebx
jl 0x2d313
cmp ecx, ebx
je 0x2d2cd
inc ecx
cmp ecx, eax
jle 0x2d2c2
jmp 0x2d313
lea eax, [edi + 0x38]
push 0x1c
mov ecx, eax
pop edx
mov esi, dword [0x27014]
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x2d2d5
mov ecx, dword [0x27008]
mov dword [eax], ecx
mov eax, 0x2b912
mov dword [edi + 0x3c], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x6c], 0x2c328
mov eax, dword [0x2700c]
mov dword [edi + 0x80], eax
mov eax, dword [0x27010]
mov dword [edi + 0x40], eax
push 0x746c4653
push 0x70
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
jne 0x2d33f
mov esi, 0xc000009a
push dword [0x27b70]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
jmp 0x2d4db
push 0x70
push ebx
push esi
call sub.ntoskrnl.exe_memset
mov dword [esi], 0x70
mov dword [esi + 4], 0x2b02e
mov dword [esi + 8], 0x2b0f0
mov dword [esi + 0xc], 0x2b150
mov dword [esi + 0x10], 0x2b1b0
mov dword [esi + 0x14], 0x2b206
mov dword [esi + 0x18], 0x2b08e
mov dword [esi + 0x1c], 0x2b25c
mov dword [esi + 0x20], 0x2b3f2
mov dword [esi + 0x24], 0x2b44a
mov dword [esi + 0x28], 0x2b4a0
mov dword [esi + 0x34], 0x2ba42
mov dword [esi + 0x38], 0x2b502
mov dword [esi + 0x40], 0x2b558
mov dword [esi + 0x44], 0x18710
mov dword [esi + 0x48], 0x2b5b4
mov dword [esi + 0x4c], 0x2b610
mov dword [esi + 0x50], 0x2b664
mov dword [esi + 0x54], 0x2b6ca
mov dword [esi + 0x58], 0x18760
mov dword [esi + 0x5c], 0x187b0
mov dword [esi + 0x60], 0x2b730
mov dword [edi + 0x28], esi
mov edx, dword [0x27b44]
add esp, 0xc
cmp edx, ebx
je 0x2d447
mov eax, 0x18804
mov ecx, 0x16e16
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
push eax
push edi
mov dword [ebp - 0x44], 0x38
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
call edx
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x2d447
push ebx
push esi
mov dword [edi + 0x28], ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [ebp + 0xc]
jmp 0x2d32c
push fcn.0002c09e
push edi
call dword [sym.imp.ntoskrnl.exe_IoRegisterFsRegistrationChange]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x2d434
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x2d718
lea eax, [ebp - 0xc]
push eax
call ebx
mov esi, dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x80
push edi
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jl 0x2d49c
push 1
push dword [ebp + 8]
call fcn.0002c09e
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push 0x2d6f6
lea eax, [ebp - 0xc]
push eax
call ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jl 0x2d4cd
push 1
push dword [ebp + 8]
call fcn.0002c09e
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [0x27b70]
and dword [eax + 0x1c], 0xffffff7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8