Function at 0x40bcf0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40c02c
call fcn.00403780
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x13
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jns 0x40bd46
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40bffe
mov dword [ebp - 0x10], 0x7e0
mov eax, dword [ebp - 0x10]
call fcn.004024d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00402bd8
mov dword [ebp - 0xc], 0x3f
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jns 0x40bd97
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40bdad
cmp dword [ebp - 0x18], 0xea
jne 0x40bfc8
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x40bdba
call fcn.00402f1c
test eax, eax
jns 0x40bdc3
call fcn.00402f14
test eax, eax
jl 0x40bd72
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40bddf
call fcn.00402f14
imul eax, eax, 4
jno 0x40bde9
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
test byte [edx + eax*8 + 0xc], 2
je 0x40be15
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40be00
call fcn.00402f14
imul eax, eax, 4
jno 0x40be0a
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8]
call fcn.0040bcf0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40be22
call fcn.00402f14
imul eax, eax, 4
jno 0x40be2c
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 8], 3
jne 0x40bfb7
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp edx, 0x3e
jbe 0x40be4a
call fcn.00402f14
imul edx, edx, 4
jno 0x40be54
call fcn.00402f1c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.0040385c
mov edx, dword [ebp - 0x24]
mov eax, 0x41eb3c
mov ecx, 0x40c098
call fcn.004038f0
add dword [0x41eb7c], 1
jno 0x40be80
call fcn.00402f1c
mov eax, 0x41eb54
mov edx, 0x40c0a4
call fcn.00403780
mov eax, dword [0x41eb7c]
cmp eax, dword [0x41eb80]
jl 0x40bfb7
mov eax, dword [0x41eb7c]
test eax, eax
jns 0x40beae
call fcn.00402f14
push eax
mov ecx, dword [0x41ed08]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406e90
mov eax, 0x41eb54
mov edx, 0x40c0d4
call fcn.00403780
mov eax, dword [0x41eb3c]
push eax
mov ecx, dword [0x41ed04]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406d68
xor eax, eax
mov dword [0x41eb78], eax
mov word [0x41d298], 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x41eb1c]
call fcn.004038a4
mov ecx, eax
mov edx, 3
mov eax, dword [0x41eb3c]
call fcn.00403afc
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00405190
mov eax, dword [ebp - 0x28]
mov edx, dword [0x41eb1c]
call fcn.004039f0
jne 0x40bf57
lea eax, [ebp - 0x30]
mov ecx, dword [0x41eb3c]
mov edx, 0x40c0f8
call fcn.004038f0
mov eax, dword [ebp - 0x30]
call fcn.00412f04
jmp 0x40bf7c
mov eax, dword [0x41eb3c]
call fcn.0040b384
lea eax, [ebp - 0x34]
mov ecx, dword [0x41eb3c]
mov edx, 0x40c10c
call fcn.004038f0
mov eax, dword [ebp - 0x34]
call fcn.00412f04
xor eax, eax
mov dword [0x41eb74], eax
mov eax, dword [0x41eb74]
test eax, eax
jns 0x40bf91
call fcn.00402f14
push eax
mov ecx, dword [0x41ed0c]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406e90
mov eax, 0x41eb54
mov edx, 0x40c11c
call fcn.00403780
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x40bdd2
jmp 0x40bd72
mov eax, dword [ebp - 0x1c]
call fcn.004024f0
mov eax, 0x41eb54
mov edx, 0x40c148
call fcn.00403780
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
je 0x40bffe
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00406434
mov eax, dword [ebp - 0x38]
call fcn.00412f04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c020
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403750
ret