Function at 0x4d9c5c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d9ea9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0047658c
mov edx, 0x4d9ec0
call fcn.004764e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00442bd4
mov eax, dword [0x4f07f4]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004607a4
mov dl, 1
mov eax, dword [0x416120]
call fcn.00403864
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4d9e93
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402808
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4d9e93
test eax, eax
jne 0x4d9e93
mov esi, dword [ebp - 8]
mov ax, word [ebp - 0xc]
dec eax
test ax, ax
jl 0x4d9d47
inc eax
mov word [ebp - 0x1e], ax
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.0041898c
add esi, 0x20
dec word [ebp - 0x1e]
jne 0x4d9d34
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4d9e93
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 8]
dec eax
test ax, ax
jl 0x4d9e48
inc eax
mov word [ebp - 0x1e], ax
mov word [ebp - 0x16], 0
movsx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x1c]
call fcn.00418ae8
mov esi, eax
lea edi, [ebp - 0x3e]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3e]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4d9e48
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402808
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4d9e2d
test eax, eax
jne 0x4d9e2d
mov esi, dword [ebp - 8]
mov bx, word [ebp - 0xc]
dec ebx
test bx, bx
jl 0x4d9da7
inc ebx
lea edx, [ebp - 0x44]
mov eax, dword [esi + 0x14]
call fcn.00409748
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov eax, dword [eax + 0x26c]
mov edx, dword [0x4f1f58]
call fcn.0047873c
mov edx, 1
call fcn.00477694
add esi, 0x20
dec bx
jne 0x4d9dee
jmp 0x4d9da7
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4d9e48
inc word [ebp - 0x16]
dec word [ebp - 0x1e]
jne 0x4d9d74
mov eax, dword [ebp - 8]
call fcn.00402828
mov dl, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [0x4f07f4]
mov eax, dword [eax]
xor edx, edx
call fcn.004607a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0047658c
xor edx, edx
call fcn.004764e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00442bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9eb0
lea eax, [ebp - 0x44]
call fcn.00404764
ret