Function at 0x40b348
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 0x40b68f
push dword fs:[eax]
mov dword fs:[eax], esp
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 0x40b38f
call fcn.00402a00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b674
mov eax, 0x41eb74
mov edx, 0x40b6a4
call fcn.0040326c
mov dword [ebp - 0x10], 0x7e0
mov eax, 0x41eb74
mov edx, 0x40b750
call fcn.0040326c
mov eax, dword [ebp - 0x10]
call fcn.00402490
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004027e8
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 0x40b3fe
call fcn.00402a00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40b414
cmp dword [ebp - 0x18], 0xea
jne 0x40b62f
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x40b421
call fcn.00402a08
test eax, eax
jns 0x40b42a
call fcn.00402a00
test eax, eax
jl 0x40b3d9
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40b446
call fcn.00402a00
imul eax, eax, 4
jno 0x40b450
call fcn.00402a08
mov edx, dword [ebp - 0x1c]
test byte [edx + eax*8 + 0xc], 2
je 0x40b47c
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40b467
call fcn.00402a00
imul eax, eax, 4
jno 0x40b471
call fcn.00402a08
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8]
call fcn.0040b348
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40b489
call fcn.00402a00
imul eax, eax, 4
jno 0x40b493
call fcn.00402a08
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 8], 3
jne 0x40b61e
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp edx, 0x3e
jbe 0x40b4b1
call fcn.00402a00
imul edx, edx, 4
jno 0x40b4bb
call fcn.00402a08
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.00403348
mov edx, dword [ebp - 0x24]
mov eax, 0x41eb5c
mov ecx, 0x40b7d4
call fcn.004033e8
add dword [0x41eb9c], 1
jno 0x40b4e7
call fcn.00402a08
mov eax, 0x41eb74
mov edx, 0x40b7e0
call fcn.0040326c
mov eax, dword [0x41eb9c]
cmp eax, dword [0x41eba0]
jl 0x40b61e
mov eax, dword [0x41eb9c]
test eax, eax
jns 0x40b515
call fcn.00402a00
push eax
mov ecx, dword [0x41ed28]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.00406614
mov eax, dword [0x41eb5c]
push eax
mov ecx, dword [0x41ed24]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.004064ec
xor eax, eax
mov dword [0x41eb98], eax
mov word [0x41d1f4], 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x41eb3c]
call fcn.0040339c
mov ecx, eax
mov edx, 3
mov eax, dword [0x41eb5c]
call fcn.004035f4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00404998
mov eax, dword [ebp - 0x28]
mov edx, dword [0x41eb3c]
call fcn.004034e8
jne 0x40b5af
lea eax, [ebp - 0x30]
mov ecx, dword [0x41eb5c]
mov edx, 0x40b81c
call fcn.004033e8
mov eax, dword [ebp - 0x30]
call fcn.004128f8
jmp 0x40b5d4
mov eax, dword [0x41eb5c]
call fcn.0040a7a8
lea eax, [ebp - 0x34]
mov ecx, dword [0x41eb5c]
mov edx, 0x40b830
call fcn.004033e8
mov eax, dword [ebp - 0x34]
call fcn.004128f8
mov eax, 0x41eb74
mov edx, 0x40b840
call fcn.0040326c
xor eax, eax
mov dword [0x41eb94], eax
mov eax, dword [0x41eb94]
test eax, eax
jns 0x40b5f8
call fcn.00402a00
push eax
mov ecx, dword [0x41ed2c]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.00406614
mov eax, 0x41eb74
mov edx, 0x40b918
call fcn.0040326c
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x40b439
jmp 0x40b3d9
mov eax, dword [ebp - 0x1c]
call fcn.004024b0
mov eax, 0x41eb74
mov edx, 0x40b95c
call fcn.0040326c
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
je 0x40b665
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00405bb8
mov eax, dword [ebp - 0x38]
call fcn.004128f8
mov eax, 0x41eb74
mov edx, 0x40b970
call fcn.0040326c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b696
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.0040323c
ret