Function at 0x45cd99
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 0x45cdd0
push 0x104
push ebx
push 0x685038
mov byte [0x682c1c], bl
call fcn.004e4da0
add esp, 0xc
push 0x3a98
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 1
push 2
call fcn.0042cb1e
add esp, 0x18
test eax, eax
jne 0x45cdfe
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x45ce0d
test ebx, ebx
je 0x45d0b1
xor eax, eax
jmp 0x45d0b6
mov ebx, dword [ebp - 0xc]
xor esi, esi
push edi
cmp dword [ebp + 0x20], 0
je 0x45ce31
cmp dword [ebp + 0x18], 0
je 0x45ce26
push str._nStarting_New_Root_2:
jmp 0x45ce2b
push str._nStarting_New_Root:
call fcn.0046816f
pop ecx
push dword [ebp - 8]
push 0
push ebx
call fcn.004e4da0
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 0x45d06c
xor esi, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], eax
jle 0x45ce13
lea edi, [ebx + 0x14]
test esi, esi
jne 0x45d07b
cmp dword [edi], esi
je 0x45d059
cmp dword [ebp + 0x20], esi
je 0x45ce9b
test byte [edi - 8], 2
push dword [edi]
je 0x45ce8c
push str._n_tContainer:__s
jmp 0x45ce91
push str._n_tSearching:__s
call fcn.0046816f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
jne 0x45d00d
test byte [edi - 8], 2
je 0x45d059
mov esi, str.TAMS
push esi
push dword [edi]
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
jne 0x45cfc9
push esi
push dword [edi]
call fcn.004e4f00
pop ecx
pop ecx
test eax, eax
jne 0x45cfc9
cmp byte [0x682c1c], al
je 0x45cfbf
push str.Solaris
push dword [edi + 4]
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x45cfbf
push dword [edi]
call fcn.004633d1
pop ecx
test eax, eax
je 0x45cfbf
push dword [edi]
call fcn.004633d1
cmp dword [ebp + 0x1c], 0
mov esi, eax
pop ecx
je 0x45cf45
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.0045c972
add esp, 0x18
test eax, eax
je 0x45cf45
cmp dword [ebp - 0xc], 0
jle 0x45cf45
xor eax, eax
cmp dword [ebp - 0xc], 0xa
cmovne esi, eax
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x45d056
cmp dword [ebp + 0xc], 0
je 0x45d056
push dword [ebp + 0xc]
push esi
push 0x521854
push 0x685140
call fcn.00404f28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x685140
push str._nAttempting_logon_to:___s____s:_s_...
call fcn.0046816f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x685140
call fcn.00461cd7
add esp, 0x2c
test eax, eax
je 0x45cfaf
push 0x53d724
call fcn.0046816f
pop ecx
xor esi, esi
jmp 0x45d056
push str.SUCCESS.
call fcn.0046816f
pop ecx
jmp 0x45d056
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
jmp 0x45d03f
cmp dword [ebp + 0x20], 0
je 0x45cfda
push str._n_n_t_t_____________Entering_TAMS_Container______________
call fcn.0046816f
pop ecx
cmp byte [0x682c1c], 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 0x45d04c
mov byte [0x682c1c], 1
call fcn.0045cd99
mov byte [0x682c1c], 0
jmp 0x45d051
push str.Solaris
push dword [edi + 4]
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x45d030
push dword [edi]
call fcn.004633d1
pop ecx
test eax, eax
jne 0x45cf0b
test byte [edi - 8], 2
je 0x45d056
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.0045cd99
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 0x45ce68
mov eax, dword [ebp - 0x18]
cmp eax, 0x103
je 0x45d07b
test esi, esi
je 0x45ce13
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 0x45d095
mov eax, esi
jmp 0x45d0b6
push 0x685038
call fcn.0049e2d6
pop ecx
test esi, esi
je 0x45d0b1
push esi
push 0x685038
call fcn.004ee4d0
pop ecx
pop ecx
mov eax, 0x685038
pop esi
pop ebx
leave
ret