Function at 0x50e250
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac38b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseOSSpecTypeWin2K::ShareEnum
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50e2d9
test byte [ecx + 0x1c], 1
je 0x50e2d9
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7c
call fcn.00401840
add esp, 0xc
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], 0
push 0
push eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
call fcn.00571c00
add esp, 0xc
mov ecx, ebx
push 0xffffffffffffffff
push 0
call fcn.0055b63e
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x460]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x45c]
push eax
push 0
push 0
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov edi, eax
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x50e38b
test byte [eax + 0x1c], 4
je 0x50e38b
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push edi
cmovae ecx, dword [0x608f54]
mov edx, 0x5dd3a8
push ecx
push dword [eax + 0x14]
mov ecx, 0x7d
push dword [eax + 0x10]
call fcn.004018a0
add esp, 0x10
xor esi, esi
cmp edi, 0x842
jne 0x50e414
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x460]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x45c]
push eax
push 0
push 0
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov edi, eax
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x50e406
test byte [eax + 0x1c], 4
je 0x50e406
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push edi
cmovae ecx, dword [0x608f54]
mov edx, 0x5dd3a8
push ecx
push dword [eax + 0x14]
mov ecx, 0x7e
push dword [eax + 0x10]
call fcn.004018a0
add esp, 0x10
inc esi
cmp esi, 0x32
jge 0x50e414
cmp edi, 0x842
je 0x50e395
test edi, edi
je 0x50e424
cmp edi, 0xea
jne 0x50e54f
xor esi, esi
cmp dword [ebp - 0x460], esi
jbe 0x50e4be
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x45c]
push dword [eax + esi*4]
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50e4a4
test byte [ecx + 0x1c], 4
je 0x50e4a4
cmp dword [0x608f68], 8
lea edx, [ebp - 0x420]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x80
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
push dword [ebx + 8]
call fcn.0055b606
inc esi
cmp esi, dword [ebp - 0x460]
jb 0x50e440
push dword [ebp - 0x45c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp edi, 0xea
je 0x50e322
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50e51f
test byte [ecx + 0x1c], 1
je 0x50e51f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x81
call fcn.004018a0
add esp, 0x10
mov esi, 1
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x45c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50e5a1
test byte [ecx + 0x1c], 2
je 0x50e5a1
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push str._t_t_tNetShareEnum
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x7f
call fcn.004300c0
add esp, 0x14
xor esi, esi
jmp 0x50e524