Function at 0x403315
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
lea ecx, [ebp - 8]
push esi
push ecx
xor eax, eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
push eax
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x40354d
or dword [ebp - 4], 0xffffffff
push ebx
push edi
mov dword [ebp - 0xc], 0x4000
mov ebx, 0x400
mov edi, 0x407178
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp - 8]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x403544
and dword [ebp + 8], eax
cmp dword [ebp - 4], eax
jbe 0x403353
add esi, 0x14
cmp dword [ebp + 0xc], 1
jne 0x40342c
push ebx
lea eax, [ebp - 0x40c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4033b5
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push edi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [esi - 4]
pop ecx
test eax, eax
pop ecx
je 0x4033da
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push edi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [esi + 4]
pop ecx
test eax, eax
pop ecx
je 0x4033ff
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push 0x407174
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00403a85
add esp, 0x14
cmp dword [ebp + 0xc], 2
jne 0x403513
push ebx
lea eax, [ebp - 0x40c]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x40347b
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0040329e
push dword [esi]
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x40c]
push edi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x40c]
push edi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [esi - 4]
add esp, 0x18
test eax, eax
je 0x4034c1
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push edi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [esi + 4]
pop ecx
test eax, eax
pop ecx
je 0x4034e6
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push 0x407174
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00403a85
add esp, 0x14
mov eax, dword [esi - 8]
and eax, 2
cmp al, 2
jne 0x40352d
mov eax, dword [ebp + 0xc]
inc eax
push eax
lea eax, [esi - 0x14]
push eax
call fcn.00403315
pop ecx
pop ecx
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x403384
jmp 0x403353
pop edi
cmp eax, 0x103
pop ebx
je 0x403551
xor eax, eax
jmp 0x403567
test esi, esi
je 0x40355c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 8]
call sub.MPR.dll_WNetCloseEnum
push 1
pop eax
pop esi
leave
ret