Function at 0x935c0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
push eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
pop eax
mov esi, dword [ebp + 8]
push esi
push 1
call fcn.00049620
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.00049620
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
push eax
push 0x61
call fcn.00049620
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
push eax
push 0x878
call fcn.00049620
mov eax, esi
call fcn.00049660
push ebx
push 0xc8d40
call dword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
mov edi, dword [ebp + 0xc]
mov dword [0xb220c], ebx
mov eax, dword [edi + 4]
mov esi, 0xc0000001
cmp eax, ebx
je 0x9389d
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, 1
jne 0x9389d
movzx ebx, word [edi]
xor ecx, ecx
cmp cx, bx
je 0x9389d
call fcn.00093500
cmp al, 1
jne 0x9389d
push 0x877
add ebx, 2
call fcn.00049640
push eax
push ebx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x9389d
movzx edx, word [edi]
add edx, 2
push edx
push 0
push ebx
call sub.ntoskrnl.exe_memset
movzx eax, word [edi]
mov ecx, dword [edi + 4]
add esp, 0xc
and eax, 0xfffffffe
push eax
push ecx
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x5c
push ebx
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
add esp, 8
test eax, eax
je 0x936d2
xor edx, edx
cmp dx, word [eax + 2]
je 0x936d2
lea edi, [eax + 2]
mov dword [esp + 0x18], edi
jmp 0x936d8
mov dword [esp + 0x18], ebx
mov edi, ebx
call fcn.0003f5d0
call fcn.00093480
xor eax, eax
jmp 0x936f0
movzx ecx, word [eax + str.Device_]
mov word [eax + 0xc8b00], cx
add eax, 2
test cx, cx
jne 0x936f0
mov eax, 0xc8b00
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x93710
sub eax, edx
sar eax, 1
mov ecx, 0x100
sub ecx, eax
push ecx
push edi
push 0xc8b00
call dword [sym.imp.ntoskrnl.exe_wcsncat]
add esp, 0xc
call fcn.0003e6b0
call fcn.0003f000
call fcn.00013310
cmp al, 1
jne 0x93897
call fcn.00013620
cmp al, 1
jne 0x93897
call fcn.000138f0
call fcn.00014840
call fcn.00047920
cmp al, 1
jne 0x9388e
call fcn.00088740
call fcn.00083f10
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
call fcn.00055c50
push 1
push 1
push 0xc8ae0
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0xc8b00
lea edx, [esp + 0x24]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x22
lea ecx, [esp + 0x30]
push ecx
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test esi, esi
js 0x9388a
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00047df0
xor eax, eax
jmp 0x937e0
movzx ecx, word [eax + str.DosDevices_]
mov word [eax + 0xc88e0], cx
add eax, 2
test cx, cx
jne 0x937e0
mov eax, 0xc88e0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x93800
sub eax, edx
sar eax, 1
mov edx, 0x100
sub edx, eax
mov eax, dword [esp + 0x18]
push edx
push eax
push 0xc88e0
call dword [sym.imp.ntoskrnl.exe_wcsncat]
add esp, 0xc
push 0xc88e0
lea ecx, [esp + 0x2c]
push ecx
call ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
js 0x9387b
mov ecx, dword [esp + 0x1c]
push ecx
push 0x8eb
call fcn.00049620
call fcn.000928e0
mov eax, 0x92750
mov dword [edi + 0x34], 0x92390
mov dword [edi + 0x38], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x70], 0x931f0
jmp 0x93886
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
test esi, esi
jns 0x9389d
mov ebx, dword [esp + 0x1c]
call fcn.00013890
test esi, esi
jns 0x9389d
push ebx
call fcn.0008b8c0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8