Function at 0x40b9ac
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 0x40bd11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40bd24
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 0x40ba02
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40bcf6
mov eax, 0x41eb54
mov edx, 0x40bd78
call fcn.00403780
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 0x40ba62
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40ba78
cmp dword [ebp - 0x18], 0xea
jne 0x40bcb1
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x40ba85
call fcn.00402f1c
test eax, eax
jns 0x40ba8e
call fcn.00402f14
test eax, eax
jl 0x40ba3d
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40baaa
call fcn.00402f14
imul eax, eax, 4
jno 0x40bab4
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
test byte [edx + eax*8 + 0xc], 2
ret 0x20c
je 0x40bae0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40bacb
call fcn.00402f14
imul eax, eax, 4
jno 0x40bad5
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8]
call fcn.0040b9ac
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40baed
call fcn.00402f14
imul eax, eax, 4
jno 0x40baf7
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 8], 3
jne 0x40bca0
mov eax, 0x41eb54
mov edx, 0x40bdd0
call fcn.00403780
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp edx, 0x3e
jbe 0x40bb24
call fcn.00402f14
imul edx, edx, 4
jno 0x40bb2e
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, 0x40be30
call fcn.004038f0
add dword [0x41eb7c], 1
jno 0x40bb5a
call fcn.00402f1c
mov eax, 0x41eb54
mov edx, 0x40be3c
call fcn.00403780
mov eax, dword [0x41eb7c]
cmp eax, dword [0x41eb80]
jl 0x40bca0
mov eax, dword [0x41eb7c]
test eax, eax
jns 0x40bb88
call fcn.00402f14
push eax
mov ecx, dword [0x41ed08]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406e90
mov eax, 0x41eb54
mov edx, 0x40befc
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 0x40bc31
lea eax, [ebp - 0x30]
mov ecx, dword [0x41eb3c]
mov edx, 0x40bf94
call fcn.004038f0
mov eax, dword [ebp - 0x30]
call fcn.00412764
jmp 0x40bc56
mov eax, dword [0x41eb3c]
call fcn.0040ad10
lea eax, [ebp - 0x34]
mov ecx, dword [0x41eb3c]
mov edx, 0x40bfa8
call fcn.004038f0
mov eax, dword [ebp - 0x34]
call fcn.00412764
mov eax, 0x41eb54
mov edx, 0x40bfb8
call fcn.00403780
xor eax, eax
mov dword [0x41eb74], eax
mov eax, dword [0x41eb74]
test eax, eax
jns 0x40bc7a
call fcn.00402f14
push eax
mov ecx, dword [0x41ed0c]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406e90
mov eax, 0x41eb54
mov edx, 0x40c05c
call fcn.00403780
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x40ba9d
jmp 0x40ba3d
mov eax, dword [ebp - 0x1c]
call fcn.004024f0
mov eax, 0x41eb54
mov edx, 0x40c120
call fcn.00403780
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
je 0x40bce7
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00406434
mov eax, dword [ebp - 0x38]
call fcn.00412764
mov eax, 0x41eb54
mov edx, 0x40c194
call fcn.00403780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd18
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403750
ret