Function at 0x40793b
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov eax, 0x6030
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040c490
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push str.connected
push ebx
mov esi, ebx
mov dword [ebp - 0x6024], 0
mov dword [ebp - 0x6038], eax
mov dword [ebp - 0x6020], 0
lea edi, [ebp - 0x2018]
mov dword [ebp - 0x10], 0xf0
mov dword [ebp - 0x601c], 2
mov dword [ebp - 0x14], 0x2000
call fcn.004065df
add esp, 0xc
test eax, eax
je 0x407a08
lea eax, [ebp - 0x6018]
push 0x1f
push ebx
push eax
call fcn.00409900
add esp, 0xc
push 0x2f
push ebx
call fcn.004099d0
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x407a12
mov dword [ebp - 0x6034], 0
mov byte [ebx], 0
lea eax, [ebp - 0x6018]
add eax, dword [ebp - 0x6034]
push esi
push eax
call fcn.004098e0
mov esi, ebx
pop ecx
inc esi
pop ecx
push 0x2f
push esi
inc dword [ebp - 0x6024]
add dword [ebp - 0x6034], 0x200
call fcn.004099d0
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x4079cb
jmp 0x407a12
mov dword [ebp - 0x601c], 1
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 0x601c]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x407a30
jmp 0x407b5e
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x10]
push edx
push eax
push dword [ebp - 0x18]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
je 0x407a50
jmp 0x407b5e
push dword [ebp - 0x18]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x6024], 0
mov dword [ebp - 0x6030], 0
jle 0x407b92
mov dword [ebp - 0x602c], 0
mov eax, dword [ebp - 0x6024]
sub eax, dword [ebp - 0x6030]
cmp eax, 1
jne 0x407aad
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x64
jne 0x407a9f
mov dword [ebp - 0x6020], 2
cmp al, 0x66
jne 0x407aad
mov dword [ebp - 0x6020], 1
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x407b05
lea eax, [ebp - 0x6018]
xor ebx, ebx
mov dword [ebp - 0x603c], eax
add eax, dword [ebp - 0x602c]
mov dword [ebp - 0x603c], eax
mov eax, dword [ebp + ebx - 0x2004]
test eax, eax
je 0x407adb
jmp 0x407ae2
mov eax, dword [ebp + ebx - 0x1ffc]
push dword [ebp - 0x603c]
push eax
call fcn.00409960
test eax, eax
pop ecx
pop ecx
jne 0x407afc
lea edi, [ebp - 0x2018]
add edi, ebx
inc esi
add ebx, 0x20
cmp esi, dword [ebp - 0x10]
jb 0x407ace
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x6020]
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x407b1f
jmp 0x407b5e
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x14], 0x2000
push 0x2000
push 0
push eax
mov dword [ebp - 0x10], 0xf0
call fcn.00409b60
lea eax, [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x18]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
je 0x407b68
mov eax, 0xffffffff
jmp 0x407d27
push dword [ebp - 0x18]
call sub.MPR.dll_WNetCloseEnum
inc dword [ebp - 0x6030]
add dword [ebp - 0x602c], 0x200
mov eax, dword [ebp - 0x6030]
cmp eax, dword [ebp - 0x6024]
jl 0x407a79
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 0x6028], 0
cmp dword [ebp - 0x10], 0
jbe 0x407d1e
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x66
jne 0x407bd2
cmp dword [ebp + esi - 0x200c], 2
je 0x407d06
cmp dword [ebp + esi - 0x2010], 2
je 0x407d06
mov edi, dword [ebp + esi - 0x2004]
test edi, edi
je 0x407bdf
jmp 0x407be6
mov edi, dword [ebp + esi - 0x1ffc]
push 0x42a0d4
push dword [ebp + 0x10]
call fcn.00409960
test eax, eax
pop ecx
pop ecx
jne 0x407c12
push edi
push dword [ebp + 8]
push str._s_s_n
push dword [ebp + 8]
call fcn.0040b2b0
add esp, 0x10
jmp 0x407d06
push edi
call fcn.004098c0
mov bl, al
mov eax, dword [ebp - 0x6038]
mov byte [eax], bl
pop ecx
movzx eax, bl
inc dword [ebp - 0x6038]
push eax
push edi
push dword [ebp - 0x6038]
call fcn.00409b20
movzx eax, bl
add esp, 0xc
add dword [ebp - 0x6038], eax
mov eax, dword [ebp - 0x6038]
mov byte [eax], 0
cmp dword [ebp + esi - 0x200c], 2
jne 0x407c5a
inc byte [eax]
cmp dword [ebp + esi - 0x2014], 1
jne 0x407c6d
mov eax, dword [ebp - 0x6038]
add byte [eax], 2
cmp dword [ebp + esi - 0x2010], 1
jne 0x407c80
mov eax, dword [ebp - 0x6038]
add byte [eax], 4
cmp dword [ebp + esi - 0x2010], 0
jne 0x407c93
mov eax, dword [ebp - 0x6038]
add byte [eax], 8
cmp dword [ebp + esi - 0x2010], 2
jne 0x407ca6
mov eax, dword [ebp - 0x6038]
add byte [eax], 0x10
inc dword [ebp - 0x6038]
cmp dword [ebp + esi - 0x2000], 0
je 0x407cf7
push dword [ebp + esi - 0x2000]
call fcn.004098c0
mov bl, al
mov eax, dword [ebp - 0x6038]
mov byte [eax], bl
pop ecx
movzx eax, bl
inc dword [ebp - 0x6038]
push eax
push dword [ebp + esi - 0x2000]
push dword [ebp - 0x6038]
call fcn.00409b20
movzx eax, bl
add esp, 0xc
add dword [ebp - 0x6038], eax
jmp 0x407d06
mov eax, dword [ebp - 0x6038]
mov byte [eax], 0
inc dword [ebp - 0x6038]
inc dword [ebp - 0x6028]
add esi, 0x20
mov eax, dword [ebp - 0x6028]
cmp eax, dword [ebp - 0x10]
jb 0x407bae
mov eax, dword [ebp - 0x6038]
sub eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret