Function at 0x401e10
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.00409041
mov ebx, eax
mov dword [esp], 0x10000
call fcn.00409041
pop ecx
mov dword [esp + 0x14], eax
cmp ebx, edi
je 0x40206b
cmp eax, edi
je 0x402064
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 0x402054
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 0x402054
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
call fcn.00405962
test eax, eax
jne 0x402054
jmp 0x402020
dec dword [esp + 0x10]
mov eax, dword [esp + 0x10]
shl eax, 5
add eax, ebx
test byte [eax + 0xc], 2
je 0x401f18
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x40201e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401ef5
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x40201e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40201e
push eax
push ecx
call fcn.004090dd
pop ecx
pop ecx
test eax, eax
je 0x40201e
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.00401e10
add esp, 0x18
jmp 0x40201e
test byte [eax + 4], 1
je 0x40201e
push dword [eax + 0x14]
call fcn.004090c6
pop ecx
cmp eax, 0x8007
ja 0x40201e
mov eax, dword [esp + 0x10]
push 8
shl eax, 5
push str._UNCe_
push dword [eax + ebx + 0x14]
call fcn.00409216
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x401f65
shl eax, 5
push dword [eax + ebx + 0x14]
push dword [esp + 0x18]
jmp 0x401f95
shl eax, 5
mov edi, dword [eax + ebx + 0x14]
jmp 0x401f71
add edi, 2
push 0x5c
pop eax
cmp ax, word [edi]
je 0x401f6e
push 0x10
push str._UNCe_
push dword [esp + 0x1c]
call fcn.00408fd7
mov eax, dword [esp + 0x20]
add esp, 0xc
push edi
add eax, 0x10
push eax
call fcn.0040927d
mov edi, dword [ebp + 0x14]
mov edx, dword [edi]
pop ecx
pop ecx
push dword [esp + 0x14]
call fcn.00403711
pop ecx
test eax, eax
jns 0x40201e
mov eax, dword [esp + 0x14]
push edi
call fcn.004035d2
pop ecx
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi]
call fcn.00403c7a
push eax
call fcn.00401706
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00405840
add esp, 0x14
test eax, eax
je 0x401fe9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
je 0x40201e
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
call fcn.00403c7a
push eax
call fcn.00401706
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00405840
add esp, 0x14
test eax, eax
je 0x40201e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esp + 0x10], edi
jne 0x401ea9
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 0x401e94
cmp dword [esp + 0x18], edi
je 0x402064
push dword [esp + 0x18]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push ebx
call fcn.004090a1
pop ecx
cmp dword [esp + 0x14], edi
je 0x40207b
push dword [esp + 0x14]
call fcn.004090a1
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret