Function at 0x401d07
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
or dword [esp + 4], 0xffffffff
push ebx
push esi
mov eax, 0x4000
push edi
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.00408f15
mov ebx, eax
mov dword [esp], 0x10000
call fcn.00408f15
pop ecx
mov dword [esp + 0x14], eax
cmp ebx, edi
je 0x401f62
cmp eax, edi
je 0x401f5b
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x401f4b
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x401f4b
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
call fcn.00405836
test eax, eax
jne 0x401f4b
jmp 0x401f17
dec dword [esp + 0x10]
mov eax, dword [esp + 0x10]
shl eax, 5
add eax, ebx
test byte [eax + 0xc], 2
je 0x401e0f
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x401f15
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401dec
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x401f15
mov eax, dword [eax + 0x14]
test eax, eax
je 0x401f15
push eax
push ecx
call fcn.00408fb1
pop ecx
pop ecx
test eax, eax
je 0x401f15
mov eax, dword [esp + 0x10]
dec edi
push edi
push dword [ebp + 0x18]
shl eax, 5
push dword [ebp + 0x14]
add eax, ebx
push esi
push eax
push dword [ebp + 8]
call fcn.00401d07
add esp, 0x18
jmp 0x401f15
test byte [eax + 4], 1
je 0x401f15
push dword [eax + 0x14]
call fcn.00408f9a
pop ecx
cmp eax, 0x8007
ja 0x401f15
mov eax, dword [esp + 0x10]
push 8
shl eax, 5
push str._UNCe_
push dword [eax + ebx + 0x14]
call fcn.004090ea
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x401e5c
shl eax, 5
push dword [eax + ebx + 0x14]
push dword [esp + 0x18]
jmp 0x401e8c
shl eax, 5
mov edi, dword [eax + ebx + 0x14]
jmp 0x401e68
add edi, 2
push 0x5c
pop eax
cmp ax, word [edi]
je 0x401e65
push 0x10
push str._UNCe_
push dword [esp + 0x1c]
call fcn.00408eab
mov eax, dword [esp + 0x20]
add esp, 0xc
push edi
add eax, 0x10
push eax
call fcn.00409151
mov edi, dword [ebp + 0x14]
mov edx, dword [edi]
pop ecx
pop ecx
push dword [esp + 0x14]
call fcn.004035fe
pop ecx
test eax, eax
jns 0x401f15
mov eax, dword [esp + 0x14]
push edi
call fcn.004034bf
pop ecx
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi]
call fcn.00403b67
push eax
call fcn.004015fd
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00405714
add esp, 0x14
test eax, eax
je 0x401ee0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
je 0x401f15
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
call fcn.00403b67
push eax
call fcn.004015fd
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00405714
add esp, 0x14
test eax, eax
je 0x401f15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esp + 0x10], edi
jne 0x401da0
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x2c], 0x4000
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x401d8b
cmp dword [esp + 0x18], edi
je 0x401f5b
push dword [esp + 0x18]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push ebx
call fcn.00408f75
pop ecx
cmp dword [esp + 0x14], edi
je 0x401f72
push dword [esp + 0x14]
call fcn.00408f75
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret