Function at 0x40f7ec
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
mov eax, dword [ebp - 8]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40fa8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40fa5c
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x51
mov eax, dword [ebp - 0x18]
call fcn.00402494
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
je 0x40f877
test eax, eax
jne 0x40fa5c
cmp eax, 0xea
jne 0x40f8ad
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004024d4
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x40fa5c
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x40f7c8]
call fcn.00403da0
add esp, 4
mov esi, dword [ebp - 0xc]
mov ax, word [ebp - 0x14]
dec eax
test ax, ax
jl 0x40f8ee
inc eax
mov word [ebp - 0x26], ax
xor eax, eax
movsx edx, ax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + edx*4], esi
add esi, 0x20
inc eax
dec word [ebp - 0x26]
jne 0x40f8db
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
je 0x40f918
push 0
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x40f7c8]
call fcn.00403da0
add esp, 4
jmp 0x40fa5c
mov eax, dword [ebp - 0x24]
call fcn.00403be4
dec eax
test ax, ax
jl 0x40fa3c
inc eax
mov word [ebp - 0x26], ax
mov word [ebp - 0x1e], 0
movsx eax, word [ebp - 0x1e]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
mov esi, eax
lea edi, [ebp - 0x46]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x46]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40fa3c
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402494
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
je 0x40f9a9
test eax, eax
je 0x40f9a9
mov eax, dword [ebp - 0x10]
call fcn.004024b4
jmp 0x40fa21
cmp eax, 0xea
jne 0x40f9e5
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004024d4
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
je 0x40f9e5
mov eax, dword [ebp - 0x10]
call fcn.004024b4
jmp 0x40fa21
mov esi, dword [ebp - 0x10]
mov bx, word [ebp - 0x14]
dec ebx
test bx, bx
jl 0x40fa14
inc ebx
lea edx, [ebp - 0x4c]
mov eax, dword [esi + 0x14]
call fcn.00404768
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040f41c
add esi, 0x20
dec bx
jne 0x40f9f3
mov eax, dword [ebp - 0x10]
call fcn.004024b4
jmp 0x40f966
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x40fa3c
inc word [ebp - 0x1e]
dec word [ebp - 0x26]
jne 0x40f935
mov eax, dword [ebp - 0xc]
call fcn.004024b4
push 0
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x40f7c8]
call fcn.00403da0
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa94
lea eax, [ebp - 0x4c]
call fcn.0040317c
lea eax, [ebp - 0x24]
mov edx, dword [0x40f7c8]
call fcn.00403dac
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031a0
ret