Function at 0x40ccf4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor edx, 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 0x40cfb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jns 0x40cd38
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40cf98
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 0x40cd89
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40cd9f
cmp dword [ebp - 0x18], 0xea
jne 0x40cf87
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x40cdac
call fcn.00402f1c
test eax, eax
jns 0x40cdb5
call fcn.00402f14
test eax, eax
jl 0x40cd64
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40cdd1
call fcn.00402f14
imul eax, eax, 4
jno 0x40cddb
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
test byte [edx + eax*8 + 0xc], 2
je 0x40ce07
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40cdf2
call fcn.00402f14
imul eax, eax, 4
jno 0x40cdfc
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8]
call fcn.0040ccf4
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40ce14
call fcn.00402f14
imul eax, eax, 4
jno 0x40ce1e
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 8], 3
jne 0x40cf76
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp edx, 0x3e
jbe 0x40ce3c
call fcn.00402f14
imul edx, edx, 4
jno 0x40ce46
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, 0x415afc
mov ecx, 0x40cfc8
call fcn.004038f0
add dword [0x415b28], 1
jno 0x40ce72
call fcn.00402f1c
mov eax, dword [0x415b28]
cmp eax, dword [0x415b2c]
jl 0x40cf76
mov eax, dword [0x415b28]
test eax, eax
jns 0x40ce91
call fcn.00402f14
push eax
mov ecx, 0x40cfd4
mov edx, 0x40cfe4
mov eax, 0x80000002
call fcn.00406f24
mov eax, dword [0x415afc]
push eax
mov edx, 0x40cfe4
mov ecx, 0x40d02c
mov eax, 0x80000002
call fcn.00406dfc
xor eax, eax
mov dword [0x415b24], eax
mov word [0x41413c], 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x415ad8]
call fcn.004038a4
mov ecx, eax
mov edx, 3
mov eax, dword [0x415afc]
call fcn.00403b04
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004054c0
mov eax, dword [ebp - 0x28]
mov edx, dword [0x415ad8]
call fcn.004039f0
jne 0x40cf27
lea eax, [ebp - 0x30]
mov ecx, dword [0x415afc]
mov edx, 0x40d03c
call fcn.004038f0
mov eax, dword [ebp - 0x30]
call fcn.00412fc4
jmp 0x40cf4c
mov eax, dword [0x415afc]
call fcn.0040c448
lea eax, [ebp - 0x34]
mov ecx, dword [0x415afc]
mov edx, 0x40d050
call fcn.004038f0
mov eax, dword [ebp - 0x34]
call fcn.00412fc4
xor eax, eax
mov dword [0x415b20], eax
mov eax, dword [0x415b20]
test eax, eax
jns 0x40cf61
call fcn.00402f14
push eax
mov edx, 0x40cfe4
mov ecx, 0x40d060
mov eax, 0x80000002
call fcn.00406f24
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x40cdc4
jmp 0x40cd64
mov eax, dword [ebp - 0x1c]
call fcn.004024f0
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfba
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00403750
ret