Function at 0x495014
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49522e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, edi
call fcn.00403e68
dec eax
je 0x495055
mov eax, edi
call fcn.00403e68
dec eax
jle 0x495051
cmp byte [edi + 1], 0x3a
je 0x495055
xor eax, eax
jmp 0x495057
mov al, 1
mov byte [ebp - 0x11], al
lea eax, [ebp - 8]
push eax
push 0
push 1
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x495213
mov dword [ebp - 0xc], 1
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp dword [ebp - 0x10], 0
jne 0x4950a1
mov dword [ebp - 0x10], 0x56
jmp 0x4950a9
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00402764
mov ebx, eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x495203
cmp byte [ebp - 0x11], 0
je 0x4950f3
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x10]
mov dl, byte [edx]
call fcn.00403d90
mov eax, dword [ebp - 0x18]
mov edx, edi
call fcn.00403f78
je 0x495119
cmp byte [ebp - 0x11], 0
jne 0x4950ba
cmp dword [ebx + 0x10], 0
je 0x4950ba
mov eax, dword [ebx + 0x14]
call fcn.00408ba0
push eax
mov eax, edi
call fcn.0040402c
pop edx
call fcn.00408b4c
test eax, eax
je 0x4950ba
cmp byte [ebp - 0x11], 0
jne 0x495145
mov eax, dword [ebx + 0x14]
call fcn.00408950
test eax, eax
jle 0x495136
mov edx, dword [ebx + 0x14]
cmp byte [edx + eax - 1], 0x5c
jne 0x495136
dec eax
mov al, byte [edi + eax]
test al, al
je 0x495145
sub al, 0x5c
jne 0x4950ba
mov dl, 1
mov eax, dword [0x494970]
call fcn.00403068
mov esi, eax
mov eax, dword [ebx]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x10]
call fcn.00408bc0
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x14]
call fcn.00403c40
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x14]
call fcn.00408bc0
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x1c]
call fcn.00403c40
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x18]
call fcn.00408bc0
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x20]
call fcn.00403c40
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x1c]
call fcn.00408bc0
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x24]
call fcn.00403c40
mov eax, dword [esi + 0x1c]
call fcn.00403e68
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
mov eax, edi
call fcn.00403e68
mov ecx, eax
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
inc edx
mov eax, edi
call fcn.0040406c
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
call fcn.00408bc0
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x18]
pop ecx
call fcn.00403eb4
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
mov eax, ebx
call fcn.0040277c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495235
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403c10
ret