Function at 0x409ff5
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417a7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x60
call fcn.00416550
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0x8000
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 1
push 2
call sub.MPR.dll_WNetOpenEnumA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40a061
xor eax, eax
jmp 0x40a2ff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40a085
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
lea ecx, [ebp - 0x34]
call fcn.00415d18
mov eax, dword [ebp - 0x38]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40a28b
mov dword [ebp - 0x28], 0
jmp 0x40a0c8
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jae 0x40a289
mov ecx, dword [ebp - 0x28]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x14]
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x28]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40a122
cmp dword [ebp - 0x5c], 1
je 0x40a119
cmp dword [ebp - 0x5c], 3
je 0x40a131
jmp 0x40a13e
mov dword [ebp - 0x40], 0xe
jmp 0x40a13e
push str.____Generic
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::operator_1
jmp 0x40a13e
push str.____Share_Point
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp + 0x18], 0
je 0x40a183
push 0xffff0002
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x23c
call fcn.004053f0
mov dword [ebp - 0x30], eax
push 2
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 0x58]
add ecx, 0x23c
call fcn.00405430
cmp dword [ebp + 0x14], 0
je 0x40a18b
jmp 0x40a1f2
push 0x420af8
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x58]
add eax, 0x60
push eax
lea ecx, [ebp - 0x48]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x60
call fcn.00415d54
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00415d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00415d00
mov ecx, dword [ebp - 0x28]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
cmp eax, 2
jne 0x40a278
cmp dword [ebp - 0x1c], 0
jle 0x40a278
mov ecx, dword [ebp - 0x30]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
shl eax, 5
mov ecx, dword [ebp - 0x10]
add ecx, eax
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00409ff5
test eax, eax
jne 0x40a278
mov eax, dword [ebp - 0x28]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x14]
push edx
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
push str._n_is_in_accessible
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::operator_1
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.00404570
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00415d00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00415d00
jmp 0x40a0bf
jmp 0x40a296
cmp dword [ebp - 0x18], 0x103
je 0x40a296
jmp 0x40a2af
cmp dword [ebp - 0x18], 0x103
je 0x40a2af
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x300], 1
je 0x40a085
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x2c]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40a2e6
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00415d00
mov eax, dword [ebp - 0x50]
jmp 0x40a2ff
mov dword [ebp - 0x54], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00415d00
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14