Function at 0x401000
Capabilities:
Create device object
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx eax, word [esi]
push edi
push 0x4d6c7431
add eax, 2
push eax
xor edi, edi
push edi
mov byte [0x40d03c], 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi]
push eax
push ecx
push ebx
mov dword [esp + 0x1c], ebx
call sub.ntoskrnl.exe_memcpy
movzx edx, word [esi]
add esp, 0xc
push 0x4d6c7431
push 0x218
shr edx, 1
xor eax, eax
push edi
mov word [ebx + edx*2], ax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
je 0x40106f
mov dword [eax], 0x40b2e4
mov ecx, eax
jmp 0x401071
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push str.SystemRoot_system32drivershamaowifi
mov dword [0x40d044], ecx
call eax
push 0x3fe
lea edx, [esp + 0x46]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov word [esp + 0x4c], cx
call sub.ntoskrnl.exe_memset
movzx eax, word [esi]
mov ecx, dword [esi + 4]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 4
push 0x40d000
push str.Status3
lea eax, [esp + 0x4c]
call fcn.00401df0
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DevicehamaoWifiProtect0
lea eax, [esp + 0x1c]
push eax
call ebx
push str.DosDeviceshamaoWifiProtect0
lea ecx, [esp + 0x3c]
push ecx
call ebx
mov ebx, dword [ebp + 8]
mov eax, 0x401510
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], eax
push 0x40d048
mov dword [ebx + 0x94], eax
push edi
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], eax
push edi
mov dword [ebx + 0xa0], eax
push 0x22
mov dword [ebx + 0xa4], eax
lea edx, [esp + 0x28]
push edx
mov eax, 0x401480
push edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x70], 0x4014a0
mov dword [ebx + 0x34], 0x4013a0
push ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test edi, edi
jge 0x4011c3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4011b8
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x40d048]
test eax, eax
jne 0x4011eb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4011dd
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc00000e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or dword [eax + 0x1c], 0x10
mov eax, dword [0x40d048]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [eax + 0x5c], 1
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov eax, dword [0x40d048]
and dword [eax + 0x1c], 0xffffff7f
call fcn.00403170
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x4d6c7431
push 0x5c4
push 0
call edi
test eax, eax
je 0x40123e
push eax
mov eax, ebx
call fcn.00407430
jmp 0x401240
xor eax, eax
lea ecx, [eax + 0xc]
mov dword [0x40d030], eax
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test eax, eax
jne 0x40126f
mov ecx, dword [0x40d030]
test ecx, ecx
je 0x401265
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [0x40d030], 0
push 0x4d6c7431
push 0x3f8
push 0
call edi
test eax, eax
je 0x40128f
mov ecx, dword [esp + 0x10]
push eax
mov eax, ebx
call fcn.00406170
jmp 0x401291
xor eax, eax
lea ecx, [eax + 0xc]
mov dword [0x40d040], eax
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test eax, eax
jne 0x4012c0
mov ecx, dword [0x40d040]
test ecx, ecx
je 0x4012b6
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [0x40d040], 0
push 0x4d6c7431
push 0x9e0
push 0
call edi
test eax, eax
je 0x4012fd
mov edi, esi
push ebx
mov esi, eax
call fcn.004083a0
mov dword [0x40d038], eax
test eax, eax
je 0x401307
call fcn.00407f20
test eax, eax
jne 0x401307
mov edi, dword [0x40d038]
test edi, edi
je 0x4012fd
call fcn.00401340
mov dword [0x40d038], 0
mov esi, ebx
call fcn.00408530
lea eax, [esp + 0x20]
push eax
push 0
push 0x40d034
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401331
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8