Function at 0x401311
Capabilities:
Enumerate network shares

Disassembly:
jmp 0x402b90
push 0xffffffffffffffff
push 0x40d100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
call sub.MFC42.DLL_CTreeCtrl::GetItemData
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x4000
push ecx
push eax
neg eax
sbb eax, eax
push 0
and al, 0xfd
push 0
add eax, 5
mov dword [esp + 0x24], 0xffffffff
push eax
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x402db5
mov edx, dword [esp + 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x40], esi
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x402da4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x402da4
lea ebp, [esi + 0x18]
mov eax, dword [ebp - 4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x402c62
mov ecx, dword [ebp]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040b3bc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x402cd3
cmp byte [eax], 0x5c
jne 0x402c9a
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.0040b3b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x402cd3
cmp byte [eax], 0x5c
jne 0x402cd3
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
call fcn.0040b3b0
cmp dword [ebp - 0x10], 3
jne 0x402d3b
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x402d16
inc eax
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 0
call fcn.0040b3b0
push 0xa
push 0xa
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004012ee
jmp 0x402d7b
push 0x20
call sub.MFC42.DLL_operatornew
lea esi, [ebp - 0x18]
mov ecx, 8
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x10]
add ecx, 0xa
push ecx
push ecx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004012ee
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040b3b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x402c2c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x20]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4