Function at 0x15f5d
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
call fcn.0002d28a
call fcn.0002d362
push dword [ebp + 0xc]
call fcn.0002d3b5
mov ebx, dword [ebp + 8]
xor esi, esi
xor eax, eax
inc eax
push esi
push eax
mov dword [0x1f0ac], ebx
push 0x1f0ec
mov dword [0x1f0e0], eax
mov dword [0x1f0e4], esi
mov dword [0x1f0e8], esi
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push 0x1f0b8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00016466
mov edi, eax
cmp edi, esi
jl 0x1624b
cmp word [ebp - 0xc], si
jbe 0x16246
cmp word [ebp - 0x14], si
jbe 0x16246
cmp byte [0x1f0bc], 0
je 0x15ffc
push 0x1f0b0
push esi
push 0x100
push 0x22
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
push dword [0x1f0b0]
call fcn.0002891f
cmp edi, esi
jge 0x16012
mov eax, edi
jmp 0x1624b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
cmp edi, esi
jge 0x1603b
push dword [ebx + 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1600b
push 0x1c
pop ecx
push 0x746c4653
lea edx, [ebx + 0x38]
push 0x70
mov eax, 0x15c16
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, 0x2c330
pop edi
mov dword [edx], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x68], eax
mov eax, 0x2bddb
push edi
push esi
mov dword [ebx + 0x6c], 0x2ce82
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x40], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x160a0
mov esi, 0xc000009a
push dword [0x1f0b0]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
jmp 0x1624b
push edi
push 0
push esi
call sub.ntoskrnl.exe_memset
mov dword [esi], edi
mov dword [esi + 4], 0x2bf33
mov dword [esi + 8], 0x2bf98
mov dword [esi + 0xc], 0x2bf9d
mov dword [esi + 0x10], 0x2bfa2
mov dword [esi + 0x14], 0x2bfa7
mov dword [esi + 0x18], 0x2bfac
mov dword [esi + 0x1c], 0x2bfb1
mov dword [esi + 0x20], 0x2bfb6
mov dword [esi + 0x24], 0x2bfbb
mov dword [esi + 0x28], 0x2bfc0
mov dword [esi + 0x34], 0x2c4fe
mov dword [esi + 0x38], 0x2c028
mov dword [esi + 0x40], 0x2c02d
mov dword [esi + 0x44], 0x15a18
mov dword [esi + 0x48], 0x2c032
mov dword [esi + 0x4c], 0x2c037
mov dword [esi + 0x50], 0x2c03c
mov dword [esi + 0x54], 0x2c041
mov dword [esi + 0x58], 0x15a1d
mov dword [esi + 0x5c], 0x15a22
mov dword [esi + 0x60], 0x2c046
mov dword [ebx + 0x28], esi
mov edx, dword [0x1f084]
xor edi, edi
add esp, 0xc
cmp edx, edi
je 0x161a6
mov eax, 0x15a2c
mov ecx, 0x15a27
mov dword [ebp - 0x40], eax
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
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x4c], 0x38
mov dword [ebp - 0x44], ecx
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
call edx
cmp eax, edi
mov dword [ebp + 0xc], eax
jge 0x161a6
push edi
push esi
mov dword [ebx + 0x28], edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [ebp + 0xc]
jmp 0x1608d
push fcn.0002cc05
push ebx
call dword [sym.imp.ntoskrnl.exe_IoRegisterFsRegistrationChange]
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x16193
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DeviceRawDisk
lea eax, [ebp - 0xc]
push eax
call esi
mov edi, dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov ebx, 0x80
push ebx
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
jl 0x161fb
push 1
push dword [ebp + 8]
call fcn.0002cc05
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push str.DeviceRawCdRom
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
jl 0x1622c
push 1
push dword [ebp + 8]
call fcn.0002cc05
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [0x1f0b0]
and dword [eax + 0x1c], 0xffffff7f
mov dword [0x1f0c0], 1
xor eax, eax
jmp 0x1624b
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 8