Function at 0x1003e35
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.01004b50
mov eax, dword [0x100933c]
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.01003caa
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x1024], esi
jne 0x1003e90
call fcn.01003d1c
cmp eax, edi
je 0x1003e89
push edi
push eax
call fcn.01004c7c
push 1
call fcn.01004d3c
lea ecx, [ebp - 0x1008]
mov eax, 0x2000
push ecx
push eax
mov dword [ebp - 0x1020], eax
call fcn.01005451
cmp eax, edi
je 0x1003eb2
push eax
call fcn.0100524c
cmp ebx, edi
jne 0x1003fc5
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 0x1003edb
push eax
call fcn.0100524c
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 0x1003f26
cmp eax, 0x103
je 0x1003f26
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
push dword [ebp - 0x101c]
jmp 0x1003f90
xor edi, edi
cmp dword [ebp - 0x1010], edi
lea esi, [ebp - 0x1004]
jbe 0x1003f95
push dword [ebp - 0x1024]
push dword [esi + 0x1c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1003f59
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x1010]
jb 0x1003f36
jmp 0x1003f95
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.01003aed
mov esi, eax
test esi, esi
je 0x1003f95
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
push esi
call fcn.0100524c
xor edi, edi
cmp dword [ebp - 0x101c], edi
jne 0x1003fab
cmp dword [ebp - 0x1018], edi
je 0x1003edb
push dword [ebp - 0x100c]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x1018], edi
jne 0x1004009
push 0x4b4
jmp 0x1004004
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.01003aed
test eax, eax
je 0x1004009
push eax
call fcn.0100524c
mov edi, dword [ebp - 0x1014]
test edi, edi
jne 0x1004018
call fcn.01005235
push 0x10039b7
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 0x1004090
push ebx
push 0x1119
call fcn.0100520f
call fcn.01005158
test edi, edi
jbe 0x10040c0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
dec ecx
je 0x1004067
dec ecx
je 0x100405f
mov ecx, 0x1001294
jmp 0x100406d
mov ecx, dword [0x1009304]
jmp 0x100406d
mov ecx, dword [0x10092f4]
push dword [eax + 0x14]
push 0
push ecx
push 0xc
call fcn.01004e95
push eax
push 0x10014bc
call fcn.01004e56
add esp, 0xc
add esi, 4
dec edi
jne 0x100404d
jmp 0x10040c0
push dword [ebp - 0x1024]
push 0x1261
call fcn.0100520f
call fcn.01005158
test edi, edi
jbe 0x10040c0
mov eax, dword [esi]
push dword [eax + 0x14]
push 0x10014b0
call fcn.01004e56
pop ecx
add esi, 4
dec edi
pop ecx
jne 0x10040a9
call fcn.010051ba
push 0
call fcn.01004d3c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010048b9
leave
ret 8