Function at 0x509c00
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x667bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ebx
call fcn.0064b12d
push 0x2800
mov dword [esp + 0x60], ebx
call fcn.0061ffd7
mov ebp, eax
mov eax, dword [esp + 0x68]
add esp, 4
mov dword [esp + 0x28], ebp
cmp dword [eax - 8], ebx
jne 0x509c5f
push ebp
push ebx
mov ecx, esi
call fcn.005099e0
mov ebx, eax
jmp 0x509c93
push 0x104
mov ebx, 1
call fcn.0061ffd7
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2000
call fcn.0061ffd7
add esp, 4
mov ebp, eax
test ebx, ebx
mov dword [esp + 0x30], ebp
jle 0x509dfe
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov eax, 2
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x34]
push edx
push ecx
push eax
push 1
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x509ddd
mov ecx, 0x800
xor eax, eax
mov edi, ebp
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x2c], 0x2000
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ebp
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x509dd3
mov ecx, dword [esp + 0x14]
mov eax, ebp
test ecx, ecx
mov dword [esp + 0x18], 0
jbe 0x509cfd
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
add ebp, 0x20
lea ebx, [ecx + edx*4]
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x64]
push eax
call fcn.0064b248
push 2
push 0
lea ecx, [esp + 0x6c]
call fcn.00644698
push 0x104
call fcn.0061ffd7
mov edi, dword [esp + 0x68]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
add ebp, 0x20
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, edx
mov dword [esp + 0x18], ecx
jb 0x509d58
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
jmp 0x509cfd
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [esi]
push edx
call fcn.0061feee
mov eax, dword [esp + 0x28]
add esp, 4
add esi, 4
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jne 0x509cba
mov eax, dword [esp + 0x28]
push eax
call fcn.0061feee
push ebp
call fcn.0061feee
add esp, 8
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0064b0bf
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8