Function at 0x4199cc
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x4000
push esi
test ebx, ebx
jne 0x419a03
push 0x104
push ebx
push 0x57ce00
mov byte [0x57aa54], bl
call fcn.0043dc10
add esp, 0xc
push 0x3a98
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 1
push 2
call fcn.0040e00d
add esp, 0x18
test eax, eax
jne 0x419a31
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x419a40
test ebx, ebx
je 0x419ce4
xor eax, eax
jmp 0x419ce9
mov ebx, dword [ebp - 0xc]
xor esi, esi
push edi
cmp dword [ebp + 0x20], 0
je 0x419a64
cmp dword [ebp + 0x18], 0
je 0x419a59
push str._nStarting_New_Root_2:
jmp 0x419a5e
push str._nStarting_New_Root:
call fcn.00422907
pop ecx
push dword [ebp - 8]
push 0
push ebx
call fcn.0043dc10
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x419c9f
xor esi, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], eax
jle 0x419a46
lea edi, [ebx + 0x14]
test esi, esi
jne 0x419cae
cmp dword [edi], esi
je 0x419c8c
cmp dword [ebp + 0x20], esi
je 0x419ace
test byte [edi - 8], 2
push dword [edi]
je 0x419abf
push str._n_tContainer:__s
jmp 0x419ac4
push str._n_tSearching:__s
call fcn.00422907
mov eax, dword [ebp - 4]
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
jne 0x419c40
test byte [edi - 8], 2
je 0x419c8c
mov esi, str.TAMS
push esi
push dword [edi]
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
jne 0x419bfc
push esi
push dword [edi]
call fcn.0043dd70
pop ecx
pop ecx
test eax, eax
jne 0x419bfc
cmp byte [0x57aa54], al
je 0x419bf2
push str.Solaris
push dword [edi + 4]
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x419bf2
push dword [edi]
call fcn.0041e683
pop ecx
test eax, eax
je 0x419bf2
push dword [edi]
call fcn.0041e683
cmp dword [ebp + 0x1c], 0
mov esi, eax
pop ecx
je 0x419b78
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push ecx
push 1
push esi
mov dword [ebp - 0xc], ecx
call fcn.004195a5
add esp, 0x18
test eax, eax
je 0x419b78
cmp dword [ebp - 0xc], 0
jle 0x419b78
xor eax, eax
cmp dword [ebp - 0xc], 0xa
cmovne esi, eax
push esi
call fcn.0042da83
pop ecx
test eax, eax
jne 0x419c89
cmp dword [ebp + 0xc], 0
je 0x419c89
push dword [ebp + 0xc]
push esi
push str._s_s
push 0x57cf08
call fcn.00403b2c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x57cf08
push str._nAttempting_logon_to:___s____s:_s_...
call fcn.00422907
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x57cf08
call fcn.0041d063
add esp, 0x2c
test eax, eax
je 0x419be2
push 0x46cf08
call fcn.00422907
pop ecx
xor esi, esi
jmp 0x419c89
push str.SUCCESS.
call fcn.00422907
pop ecx
jmp 0x419c89
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
jmp 0x419c72
cmp dword [ebp + 0x20], 0
je 0x419c0d
push str._n_n_t_t_____________Entering_TAMS_Container______________
call fcn.00422907
pop ecx
cmp byte [0x57aa54], 0
lea eax, [edi - 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
jne 0x419c7f
mov byte [0x57aa54], 1
call fcn.004199cc
mov byte [0x57aa54], 0
jmp 0x419c84
push str.Solaris
push dword [edi + 4]
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x419c63
push dword [edi]
call fcn.0041e683
pop ecx
test eax, eax
jne 0x419b3e
test byte [edi - 8], 2
je 0x419c89
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [edi - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004199cc
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp - 4]
inc eax
add edi, 0x20
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x10]
jl 0x419a9b
mov eax, dword [ebp - 0x18]
cmp eax, 0x103
je 0x419cae
test esi, esi
je 0x419a46
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp + 8], 0
pop edi
je 0x419cc8
mov eax, esi
jmp 0x419ce9
push 0x57ce00
call fcn.0042d010
pop ecx
test esi, esi
je 0x419ce4
push esi
push 0x57ce00
call fcn.00447380
pop ecx
pop ecx
mov eax, 0x57ce00
pop esi
pop ebx
leave
ret