Function at 0x41d6ac
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41d95e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00407278
cmp dword [0x52ec48], 1
jne 0x41d6f7
cmp dword [0x52ec4c], 4
jle 0x41d736
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x42c]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00407b34
push eax
call sub.mpr.dll_WNetGetUniversalNameW
test eax, eax
jne 0x41d940
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x42c]
mov edx, dword [edx]
call fcn.00407b94
jmp 0x41d940
mov eax, dword [ebp - 4]
movzx edx, word [eax]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41d74f
mov eax, edx
and ax, 0xffdf
mov word [ebp - 0x1a], ax
cmp word [ebp - 0x1a], 0x41
jb 0x41d761
cmp word [ebp - 0x1a], 0x5a
jbe 0x41d765
mov al, 1
jmp 0x41d777
mov eax, dword [ebp - 4]
test eax, eax
je 0x41d771
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x41d77f
mov al, 1
jmp 0x41d78a
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
setne al
test al, al
je 0x41d792
mov al, 1
jmp 0x41d79d
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
setne al
test al, al
jne 0x41d940
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x41d940
xor eax, eax
push ebp
push 0x41d939
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.004043c0
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x41d91b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x41d82d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004043f4
jmp 0x41d7ec
cmp dword [ebp - 0x10], 0
je 0x41d842
call fcn.004066b0
call fcn.004066b0
jmp 0x41d940
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x41d7ec
inc esi
xor edi, edi
mov eax, edi
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x41d8f5
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
mov word [ebp - 0x26], ax
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
add eax, 0xffffff9f
sub ax, 0x1a
jae 0x41d88a
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
and ax, 0xffdf
mov word [ebp - 0x26], ax
movzx eax, word [ebp - 0x1a]
cmp ax, word [ebp - 0x26]
jne 0x41d8f5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41d8ab
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00407f68
mov eax, dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
mov edx, dword [ebx + 0x14]
call fcn.00407b94
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00407d98
call fcn.004066b0
call fcn.004066b0
jmp 0x41d940
inc edi
dec esi
jne 0x41d84d
jmp 0x41d7ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d965
lea eax, [ebp - 0x434]
mov edx, 2
call fcn.00406f18
ret