Function at 0x40a428
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a69a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404ec4
cmp dword [0x4fb7f0], 1
jne 0x40a473
cmp dword [0x4fb7f4], 4
jle 0x40a4b2
mov dword [ebp - 0x1c], 0x400
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x428]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40a67c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x428]
mov edx, dword [edx]
call fcn.00405068
jmp 0x40a67c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
call fcn.00403250
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0x41
jb 0x40a4cc
cmp byte [ebp - 0x1d], 0x5a
jbe 0x40a4d0
mov al, 1
jmp 0x40a4e2
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a4dc
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x40a4ea
mov al, 1
jmp 0x40a4f4
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
setne al
test al, al
je 0x40a4fc
mov al, 1
jmp 0x40a506
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
setne al
test al, al
jne 0x40a67c
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40a67c
xor eax, eax
push ebp
push 0x40a675
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x40a657
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xea
jne 0x40a596
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00402ed4
jmp 0x40a555
cmp dword [ebp - 0x14], 0
je 0x40a5ab
call fcn.00404948
call fcn.00404948
jmp 0x40a67c
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x40a555
inc esi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x28]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40a633
mov eax, dword [ebx + 0x10]
movzx eax, byte [eax]
call fcn.00403250
cmp al, byte [ebp - 0x1d]
jne 0x40a633
mov edi, dword [ebp - 4]
test edi, edi
je 0x40a5ea
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00405368
mov eax, dword [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
mov edx, dword [ebx + 0x14]
call fcn.00405068
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405188
call fcn.00404948
call fcn.00404948
jmp 0x40a67c
inc dword [ebp - 0xc]
dec esi
jne 0x40a5bb
jmp 0x40a555
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a6a1
lea eax, [ebp - 0x430]
mov edx, 2
call fcn.00404e94
ret