Function at 0x12d60
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 [0x18418]
mov dword [ebp - 0x63c], edx
mov eax, dword [0x1841c]
mov dword [ebp - 0x638], eax
mov ecx, dword [0x18420]
mov dword [ebp - 0x634], ecx
mov dx, word [0x18424]
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 0x12e3a
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 0x12eed
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 0x12e7f
jmp 0x12eed
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.00013050
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 0x12e57
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 [0x188e4], 0x18428
push str.DosDevices_
call dword [sym.imp.ntoskrnl.exe_wcslen]
add esp, 4
shl eax, 1
mov word [0x188e0], ax
mov edx, 0x208
mov word [0x188e2], dx
mov eax, dword [ebp - 0x858]
mov dword [0x188d8], eax
mov ecx, dword [ebp - 0x84e]
mov dword [0x188c8], ecx
mov edx, dword [0x188d8]
xor edx, dword [0x188c8]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
add eax, dword [0x188c8]
imul eax, dword [0x188d8]
mov dword [0x188d8], eax
mov ecx, dword [ebp - 0x214]
sub ecx, dword [0x188c8]
imul ecx, dword [0x188d8]
mov dword [0x188c8], 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 0x188e0
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 0x12ff8
jmp 0x1303b
lea edx, [ebp - 0x648]
push edx
push 0x188e0
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x1302b
cmp dword [ebp - 4], 0
je 0x13029
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1303b
jmp 0x1303b
mov eax, dword [ebp - 0x434]
mov esp, ebp
pop ebp
ret 8