Function at 0x1003b5b
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.010045f0
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], 0x1000
mov dword [ebp - 0xc], edi
call fcn.01003a13
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
jne 0x1003b9f
call fcn.01003a7e
cmp eax, edi
je 0x1003b98
push edi
push eax
call fcn.010046ea
push 1
call fcn.01004793
lea ecx, [ebp - 4]
mov eax, 0x2000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.01004dd0
cmp eax, edi
je 0x1003bbb
push eax
call fcn.01004bff
mov edx, dword [ebp + 0xc]
cmp edx, edi
jne 0x1003c8b
lea eax, [ebp + 8]
push eax
push edi
push edi
push edi
push 2
xor ebx, ebx
call sub.MPR.dll_WNetOpenEnumW
cmp eax, edi
je 0x1003be0
push eax
call fcn.01004bff
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1003c16
cmp eax, 0x103
je 0x1003c16
push dword [ebp + 8]
call sub.MPR.dll_WNetCloseEnum
push dword [ebp - 0x14]
jmp 0x1003c64
xor edi, edi
cmp dword [ebp - 8], edi
lea esi, [ebp - 0x103c]
jbe 0x1003c69
push dword [ebp - 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1003c40
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x1003c23
jmp 0x1003c69
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push esi
inc ebx
call fcn.0100385d
mov esi, eax
test esi, esi
je 0x1003c69
push dword [ebp + 8]
call sub.MPR.dll_WNetCloseEnum
push esi
call fcn.01004bff
xor edi, edi
cmp dword [ebp - 0x14], edi
jne 0x1003c78
cmp ebx, edi
je 0x1003be0
push dword [ebp + 8]
call sub.MPR.dll_WNetCloseEnum
cmp ebx, edi
jne 0x1003cba
push 0x4b4
jmp 0x1003cb5
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], edx
call fcn.0100385d
test eax, eax
je 0x1003cba
push eax
call fcn.01004bff
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x1003cc6
call fcn.01004bed
push 0x1003760
push 4
push edi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_qsort]
mov esi, dword [ebp - 4]
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x1003d3c
push dword [ebp + 0xc]
push 0x1119
call fcn.01004bd0
call fcn.01004b3d
cmp edi, ebx
jbe 0x1003d69
mov eax, dword [esi]
mov ecx, dword [eax + 4]
dec ecx
je 0x1003d14
dec ecx
je 0x1003d0c
mov ecx, 0x1001274
jmp 0x1003d1a
mov ecx, dword [0x10092e4]
jmp 0x1003d1a
mov ecx, dword [0x10092d4]
push dword [eax + 0x14]
push ebx
push ecx
push 0xc
call fcn.010048b1
push eax
push 0x100149c
call fcn.01004883
add esp, 0xc
add esi, 4
dec edi
jne 0x1003cfa
jmp 0x1003d69
push dword [ebp - 0x18]
push 0x1261
call fcn.01004bd0
call fcn.01004b3d
cmp edi, ebx
jbe 0x1003d69
mov eax, dword [esi]
push dword [eax + 0x14]
push 0x1001490
call fcn.01004883
pop ecx
add esi, 4
dec edi
pop ecx
jne 0x1003d52
call fcn.01004b93
push ebx
call fcn.01004793
pop edi
pop esi
pop ebx
leave
ret 8