Function at 0x1003e7e
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.01004b90
mov eax, dword [0x100931c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push eax
mov dword [ebp - 0x1028], 0x1000
mov dword [ebp - 0x1014], edi
call fcn.01003cf3
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x1024], esi
jne 0x1003ed9
call fcn.01003d65
cmp eax, edi
je 0x1003ed2
push edi
push eax
call fcn.01004ccc
push 1
call fcn.01004d8c
lea ecx, [ebp - 0x1008]
mov eax, 0x2000
push ecx
push eax
mov dword [ebp - 0x1020], eax
call fcn.010054a1
cmp eax, edi
je 0x1003efb
push eax
call fcn.0100529c
cmp ebx, edi
jne 0x100400e
lea eax, [ebp - 0x100c]
push eax
push edi
push edi
push edi
push 2
mov dword [ebp - 0x1018], edi
call sub.MPR.dll_WNetOpenEnumW
cmp eax, edi
je 0x1003f24
push eax
call fcn.0100529c
or dword [ebp - 0x1010], 0xffffffff
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, edi
mov dword [ebp - 0x101c], eax
je 0x1003f6f
cmp eax, 0x103
je 0x1003f6f
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
push dword [ebp - 0x101c]
jmp 0x1003fd9
xor edi, edi
cmp dword [ebp - 0x1010], edi
lea esi, [ebp - 0x1004]
jbe 0x1003fde
push dword [ebp - 0x1024]
push dword [esi + 0x1c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1003fa2
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x1010]
jb 0x1003f7f
jmp 0x1003fde
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1008]
push eax
push esi
mov dword [ebp - 0x1018], 1
call fcn.01003b36
mov esi, eax
test esi, esi
je 0x1003fde
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
push esi
call fcn.0100529c
xor edi, edi
cmp dword [ebp - 0x101c], edi
jne 0x1003ff4
cmp dword [ebp - 0x1018], edi
je 0x1003f24
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x1018], edi
jne 0x1004052
push 0x4b4
jmp 0x100404d
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1048]
push eax
mov dword [ebp - 0x102c], esi
mov dword [ebp - 0x1034], ebx
call fcn.01003b36
test eax, eax
je 0x1004052
push eax
call fcn.0100529c
mov edi, dword [ebp - 0x1014]
test edi, edi
jne 0x1004061
call fcn.01005285
push 0x1003a00
push 4
push edi
push dword [ebp - 0x1008]
call dword [sym.imp.msvcrt.dll_qsort]
mov esi, dword [ebp - 0x1008]
add esp, 0x10
test ebx, ebx
je 0x10040d9
push ebx
push 0x1119
call fcn.0100525f
call fcn.010051a8
test edi, edi
jbe 0x1004109
mov eax, dword [esi]
mov ecx, dword [eax + 4]
dec ecx
je 0x10040b0
dec ecx
je 0x10040a8
mov ecx, 0x10012a4
jmp 0x10040b6
mov ecx, dword [0x10092e4]
jmp 0x10040b6
mov ecx, dword [0x10092d4]
push dword [eax + 0x14]
push 0
push ecx
push 0xc
call fcn.01004ee5
push eax
push 0x10014cc
call fcn.01004ea6
add esp, 0xc
add esi, 4
dec edi
jne 0x1004096
jmp 0x1004109
push dword [ebp - 0x1024]
push 0x1261
call fcn.0100525f
call fcn.010051a8
test edi, edi
jbe 0x1004109
mov eax, dword [esi]
push dword [eax + 0x14]
push 0x10014c0
call fcn.01004ea6
pop ecx
add esi, 4
dec edi
pop ecx
jne 0x10040f2
call fcn.0100520a
push 0
call fcn.01004d8c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01004902
leave
ret 8