Function at 0x5001cc54
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5001cfa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [sym.rtl120.bpl__Sysutils_Win32Platform], 1
jne 0x5001cca7
cmp dword [sym.rtl120.bpl__Sysutils_Win32MajorVersion], 4
jle 0x5001cce6
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x430]
push eax
push 1
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.mpr.dll_WNetGetUniversalNameW
test eax, eax
jne 0x5001cf83
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x430]
mov edx, dword [edx]
call sym.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp 0x5001cf83
mov eax, dword [ebp - 4]
test eax, eax
je 0x5001cd03
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5001cd03
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
movzx ecx, word [eax]
mov edx, ecx
mov ebx, ecx
add ebx, 0xffffff9f
sub bx, 0x1a
jae 0x5001cd1a
mov edx, ecx
and dx, 0xffdf
mov word [ebp - 0x1a], dx
cmp word [ebp - 0x1a], 0x41
jb 0x5001cd2c
cmp word [ebp - 0x1a], 0x5a
jbe 0x5001cd30
mov al, 1
jmp 0x5001cd5c
mov eax, dword [ebp - 4]
test eax, eax
je 0x5001cd4d
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5001cd4d
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
test eax, eax
je 0x5001cd56
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x5001cd64
mov al, 1
jmp 0x5001cd89
mov eax, dword [ebp - 4]
test eax, eax
je 0x5001cd81
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5001cd81
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp word [eax + 2], 0x3a
setne al
test al, al
je 0x5001cd91
mov al, 1
jmp 0x5001cdb6
mov eax, dword [ebp - 4]
test eax, eax
je 0x5001cdae
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5001cdae
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp word [eax + 4], 0x5c
setne al
test al, al
jne 0x5001cf83
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x5001cf83
xor eax, eax
push ebp
push 0x5001cf7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call sym.rtl120.bpl__System__GetMem_qqri
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5001cf5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x5001ce46
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call sym.rtl120.bpl__System__ReallocMem_qqrrpvi
jmp 0x5001ce05
cmp dword [ebp - 0x10], 0
je 0x5001ce5b
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x5001cf83
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x5001ce05
inc esi
xor edi, edi
mov eax, edi
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x5001cf38
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
mov word [ebp - 0x26], ax
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
add eax, 0xffffff9f
sub ax, 0x1a
jae 0x5001cea3
mov eax, dword [ebx + 0x10]
movzx eax, word [eax]
and ax, 0xffdf
mov word [ebp - 0x26], ax
movzx eax, word [ebp - 0x1a]
cmp ax, word [ebp - 0x26]
jne 0x5001cf38
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5001ced7
mov eax, dword [ebp - 0x2c]
sub eax, 0xa
cmp word [eax], 2
je 0x5001ced7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sym.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x5001ceee
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x30]
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
mov edx, dword [ebx + 0x14]
call sym.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 8]
pop ecx
call sym.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x5001cf83
inc edi
dec esi
jne 0x5001ce66
jmp 0x5001ce05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5001cfb0
lea eax, [ebp - 0x438]
mov edx, 2
call sym.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sym.rtl120.bpl__System__UStrClr_qqrpv
ret