Function at 0x479663
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 0x47969d
push 0x104
push ebx
push 0x6f1d10
mov byte [0x60b90e], bl
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0042f61c
test eax, eax
pop ecx
pop ecx
je 0x4796bf
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, 0x6f1d10
jmp 0x4799e1
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 0x4796ad
xor edi, edi
jmp 0x4796da
mov esi, dword [ebp - 0x1c]
cmp dword [ebp + 0x20], ebx
je 0x4796f6
cmp dword [ebp + 0x18], ebx
je 0x4796eb
push str._nStarting_New_Root_2:
jmp 0x4796f0
push str._nStarting_New_Root:
call fcn.004799e6
pop ecx
push dword [ebp - 4]
push ebx
push esi
call fcn.005306b0
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 0x47999b
xor edi, edi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jle 0x4796da
add esi, 0x14
cmp edi, ebx
jne 0x4799ac
mov eax, dword [esi]
cmp eax, ebx
je 0x479987
cmp dword [ebp + 0x20], ebx
je 0x47975d
test byte [esi - 8], 2
push eax
je 0x479751
push str._n_tContainer:__s
jmp 0x479756
push str._n_tSearching:__s
call fcn.004799e6
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
jne 0x4798db
test byte [esi - 8], 2
je 0x479987
mov edi, dword [esi]
mov ebx, str.TAMS
push ebx
push edi
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
jne 0x479890
push ebx
push edi
call fcn.00531210
test eax, eax
pop ecx
pop ecx
jne 0x479890
cmp byte [0x60b90e], al
je 0x479883
push str.Solaris
push dword [esi + 4]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x479883
push dword [esi]
call fcn.00476b2f
test eax, eax
pop ecx
je 0x479883
push dword [esi]
call fcn.00476b2f
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
pop ecx
mov edi, eax
je 0x47981c
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], 0xa
call fcn.00493572
test eax, eax
je 0x4797f7
mov dword [ebp - 0x18], 0x11
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push 1
mov ecx, edi
call fcn.00470211
add esp, 0x14
test eax, eax
je 0x47981c
mov eax, dword [ebp - 8]
cmp eax, ebx
jle 0x47981c
cmp eax, dword [ebp - 0x18]
je 0x47981c
xor edi, edi
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x479987
cmp dword [ebp + 0xc], ebx
je 0x479987
push dword [ebp + 0xc]
mov ebx, 0x6f1e18
push edi
push 0x56c418
push ebx
call fcn.00531b2f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push str._nAttempting_logon_to:___s____s:_s_...
call fcn.004799e6
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.004777b1
add esp, 0x28
test eax, eax
je 0x479954
push 0x58cc60
call fcn.004799e6
pop ecx
xor edi, edi
jmp 0x479987
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
jmp 0x479970
xor edi, edi
cmp dword [ebp + 0x20], edi
je 0x4798a2
push str._n_n_t_t_____________Entering_TAMS_Container______________
call fcn.004799e6
pop ecx
cmp byte [0x60b90e], 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 0x47997d
mov byte [0x60b90e], 1
call fcn.00479663
mov byte [0x60b90e], 0
jmp 0x479982
push str.Solaris
push dword [esi + 4]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x479961
push dword [esi]
call fcn.00476b2f
test eax, eax
pop ecx
je 0x479961
push dword [esi]
call fcn.00476b2f
cmp dword [ebp + 0x1c], ebx
pop ecx
mov edi, eax
je 0x479941
push 0xa
mov dword [ebp - 8], ebx
pop ebx
call fcn.00493572
test eax, eax
je 0x47991b
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.00470211
add esp, 0x14
test eax, eax
je 0x479941
cmp dword [ebp - 8], 0
jle 0x479941
cmp dword [ebp - 8], ebx
je 0x479941
xor edi, edi
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x479987
cmp dword [ebp + 0xc], eax
jmp 0x47982e
push str.SUCCESS.
call fcn.004799e6
pop ecx
jmp 0x479987
test byte [esi - 8], 2
je 0x479987
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.00479663
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 0x47972c
cmp dword [ebp - 0x20], 0x103
je 0x4799ac
cmp edi, ebx
je 0x4796d7
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 0x4799c6
mov eax, edi
jmp 0x4799e1
mov esi, 0x6f1d10
mov eax, esi
call fcn.004ccb8b
cmp edi, ebx
je 0x4799df
push edi
push esi
call fcn.005312a0
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret