Function at 0x40b230
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 0x40b4a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056e8
cmp dword [0x54e7d0], 1
jne 0x40b27b
cmp dword [0x54e7d4], 4
jle 0x40b2ba
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.00405b24
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40b484
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x428]
mov edx, dword [edx]
call fcn.0040588c
jmp 0x40b484
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
call fcn.004035b0
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0x41
jb 0x40b2d4
cmp byte [ebp - 0x1d], 0x5a
jbe 0x40b2d8
mov al, 1
jmp 0x40b2ea
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b2e4
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x40b2f2
mov al, 1
jmp 0x40b2fc
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
setne al
test al, al
je 0x40b304
mov al, 1
jmp 0x40b30e
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
setne al
test al, al
jne 0x40b484
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40b484
xor eax, eax
push ebp
push 0x40b47d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402fd4
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x40b45f
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 0x40b39e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00403008
jmp 0x40b35d
cmp dword [ebp - 0x14], 0
je 0x40b3b3
call fcn.004050b4
call fcn.004050b4
jmp 0x40b484
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x40b35d
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 0x40b43b
mov eax, dword [ebx + 0x10]
movzx eax, byte [eax]
call fcn.004035b0
cmp al, byte [ebp - 0x1d]
jne 0x40b43b
mov edi, dword [ebp - 4]
test edi, edi
je 0x40b3f2
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.00405b8c
mov eax, dword [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
mov edx, dword [ebx + 0x14]
call fcn.0040588c
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004059ac
call fcn.004050b4
call fcn.004050b4
jmp 0x40b484
inc dword [ebp - 0xc]
dec esi
jne 0x40b3c3
jmp 0x40b35d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4a9
lea eax, [ebp - 0x430]
mov edx, 2
call fcn.004056b8
ret