Function at 0x470a4f
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], 0x4000
jne 0x470a89
push 0x104
push ebx
push 0x6c3cc8
mov byte [0x5dd8c6], bl
call fcn.005117f0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00429598
test eax, eax
pop ecx
pop ecx
je 0x470aab
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, 0x6c3cc8
jmp 0x470dcd
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], esi
je 0x470a99
xor edi, edi
jmp 0x470ac6
mov esi, dword [ebp - 0x1c]
cmp dword [ebp + 0x20], ebx
je 0x470ae2
cmp dword [ebp + 0x18], ebx
je 0x470ad7
push str._nStarting_New_Root_2:
jmp 0x470adc
push str._nStarting_New_Root:
call fcn.00470dd2
pop ecx
push dword [ebp - 4]
push ebx
push esi
call fcn.005117f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceA
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x470d87
xor edi, edi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jle 0x470ac6
add esi, 0x14
cmp edi, ebx
jne 0x470d98
mov eax, dword [esi]
cmp eax, ebx
je 0x470d73
cmp dword [ebp + 0x20], ebx
je 0x470b49
test byte [esi - 8], 2
push eax
je 0x470b3d
push str._n_tContainer:__s
jmp 0x470b42
push str._n_tSearching:__s
call fcn.00470dd2
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
jne 0x470cc7
test byte [esi - 8], 2
je 0x470d73
mov edi, dword [esi]
mov ebx, str.TAMS
push ebx
push edi
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
jne 0x470c7c
push ebx
push edi
call fcn.00512350
test eax, eax
pop ecx
pop ecx
jne 0x470c7c
cmp byte [0x5dd8c6], al
je 0x470c6f
push str.Solaris
push dword [esi + 4]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x470c6f
push dword [esi]
call fcn.0046dfa5
test eax, eax
pop ecx
je 0x470c6f
push dword [esi]
call fcn.0046dfa5
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
pop ecx
mov edi, eax
je 0x470c08
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], 0xa
call fcn.0048a508
test eax, eax
je 0x470be3
mov dword [ebp - 0x18], 0x11
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push 1
mov ecx, edi
call fcn.004676ae
add esp, 0x14
test eax, eax
je 0x470c08
mov eax, dword [ebp - 8]
cmp eax, ebx
jle 0x470c08
cmp eax, dword [ebp - 0x18]
je 0x470c08
xor edi, edi
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x470d73
cmp dword [ebp + 0xc], ebx
je 0x470d73
push dword [ebp + 0xc]
mov ebx, 0x6c3dd0
push edi
push 0x549b60
push ebx
call fcn.00511173
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push str._nAttempting_logon_to:___s____s:_s_...
call fcn.00470dd2
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.0046eb9d
add esp, 0x28
test eax, eax
je 0x470d40
push 0x569cf4
call fcn.00470dd2
pop ecx
xor edi, edi
jmp 0x470d73
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
jmp 0x470d5c
xor edi, edi
cmp dword [ebp + 0x20], edi
je 0x470c8e
push str._n_n_t_t_____________Entering_TAMS_Container______________
call fcn.00470dd2
pop ecx
cmp byte [0x5dd8c6], 0
push dword [ebp + 0x20]
lea eax, [esi - 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
jne 0x470d69
mov byte [0x5dd8c6], 1
call fcn.00470a4f
mov byte [0x5dd8c6], 0
jmp 0x470d6e
push str.Solaris
push dword [esi + 4]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x470d4d
push dword [esi]
call fcn.0046dfa5
test eax, eax
pop ecx
je 0x470d4d
push dword [esi]
call fcn.0046dfa5
cmp dword [ebp + 0x1c], ebx
pop ecx
mov edi, eax
je 0x470d2d
push 0xa
mov dword [ebp - 8], ebx
pop ebx
call fcn.0048a508
test eax, eax
je 0x470d07
push 0x11
pop ebx
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push eax
push eax
push 1
mov ecx, edi
call fcn.004676ae
add esp, 0x14
test eax, eax
je 0x470d2d
cmp dword [ebp - 8], 0
jle 0x470d2d
cmp dword [ebp - 8], ebx
je 0x470d2d
xor edi, edi
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x470d73
cmp dword [ebp + 0xc], eax
jmp 0x470c1a
push str.SUCCESS.
call fcn.00470dd2
pop ecx
jmp 0x470d73
test byte [esi - 8], 2
je 0x470d73
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [esi - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00470a4f
add esp, 0x1c
mov edi, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
xor ebx, ebx
cmp eax, dword [ebp - 0x10]
jl 0x470b18
cmp dword [ebp - 0x20], 0x103
je 0x470d98
cmp edi, ebx
je 0x470ac3
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp + 8], ebx
je 0x470db2
mov eax, edi
jmp 0x470dcd
mov esi, 0x6c3cc8
mov eax, esi
call fcn.004c3ab2
cmp edi, ebx
je 0x470dcb
push edi
push esi
call fcn.005123e0
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret