Function at 0x12af0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x858], ax
push 0x206
push 0
lea ecx, [ebp - 0x856]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [str.Device_]
mov dword [ebp - 0x640], ecx
mov edx, dword [0x17280]
mov dword [ebp - 0x63c], edx
mov eax, dword [0x17284]
mov dword [ebp - 0x638], eax
mov ecx, dword [0x17288]
mov dword [ebp - 0x634], ecx
mov dx, word [0x1728c]
mov word [ebp - 0x630], dx
push 0x1f6
push 0
lea eax, [ebp - 0x62e]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x21c], 0
xor ecx, ecx
mov word [ebp - 0x430], cx
jmp 0x12bca
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
shr eax, 1
mov word [ebp - 0x218], ax
mov cx, word [ebp - 0x218]
mov word [ebp - 0x64c], cx
movzx edx, word [ebp - 0x218]
test edx, edx
jle 0x12c7d
movzx eax, word [ebp - 0x218]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax*2 - 2]
cmp eax, 0x5c
jne 0x12c0f
jmp 0x12c7d
movzx ecx, word [ebp - 0x218]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx*2 - 2]
push ecx
call fcn.00012de0
movzx edx, word [ebp - 0x430]
mov word [ebp + edx*2 - 0x858], ax
movzx eax, word [ebp - 0x430]
movzx ecx, word [ebp - 0x430]
mov dx, word [ebp + eax*2 - 0x858]
mov word [ebp + ecx*2 - 0x210], dx
mov ax, word [ebp - 0x430]
add ax, 1
mov word [ebp - 0x430], ax
mov cx, word [ebp - 0x218]
sub cx, 1
mov word [ebp - 0x218], cx
jmp 0x12be7
lea edx, [ebp - 0x640]
mov dword [ebp - 0x644], edx
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 4
shl eax, 1
mov word [ebp - 0x648], ax
mov ecx, 0x208
mov word [ebp - 0x646], cx
mov dword [0x1774c], 0x17290
push str.DosDevices_
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 4
shl eax, 1
mov word [0x17748], ax
mov edx, 0x208
mov word [0x1774a], dx
mov eax, dword [ebp - 0x858]
mov dword [0x17740], eax
mov ecx, dword [ebp - 0x84e]
mov dword [0x17730], ecx
mov edx, dword [0x17740]
xor edx, dword [0x17730]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
add eax, dword [0x17730]
imul eax, dword [0x17740]
mov dword [0x17740], eax
mov ecx, dword [ebp - 0x214]
sub ecx, dword [0x17730]
imul ecx, dword [0x17740]
mov dword [0x17730], ecx
lea edx, [ebp - 0x858]
push edx
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea ecx, [ebp - 0x210]
push ecx
push 0x17748
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 0x648]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x12d88
jmp 0x12dcb
lea edx, [ebp - 0x648]
push edx
push 0x17748
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x12dbb
cmp dword [ebp - 4], 0
je 0x12db9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x12dcb
jmp 0x12dcb
mov eax, dword [ebp - 0x434]
mov esp, ebp
pop ebp
ret 8