Function at 0x423568
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4237f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409ca0
cmp dword [0x7b3de4], 1
jne 0x4235b2
cmp dword [0x7b3de8], 4
jle 0x4235ef
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040a528
push eax
call sub.mpr.dll_WNetGetUniversalNameW
test eax, eax
jne 0x4237d8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x420]
call fcn.0040a590
jmp 0x4237d8
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x423609
mov edx, eax
and dx, 0xffdf
mov word [ebp - 0x16], dx
cmp word [ebp - 0x16], 0x41
jb 0x42361b
cmp word [ebp - 0x16], 0x5a
jbe 0x42361f
mov al, 1
jmp 0x423631
mov eax, dword [ebp - 4]
test eax, eax
je 0x42362b
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x423639
mov al, 1
jmp 0x423644
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
setne al
test al, al
je 0x42364c
mov al, 1
jmp 0x423657
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
setne al
test al, al
jne 0x4237d8
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x4237d8
xor eax, eax
push ebp
push 0x4237d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00406f20
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4237b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceW
cmp eax, 0xea
jne 0x4236e2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00406f54
jmp 0x4236a6
test eax, eax
je 0x4236f5
call fcn.0040902c
call fcn.0040902c
jmp 0x4237d8
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4236a6
inc eax
xor ebx, ebx
mov edx, ebx
add edx, edx
add edx, edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + edx*8 + 0x10]
test edx, edx
je 0x42378d
movzx edx, word [edx]
mov esi, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x423728
mov esi, edx
and si, 0xffdf
cmp si, word [ebp - 0x16]
jne 0x42378d
mov esi, dword [ebp - 4]
test esi, esi
je 0x42373a
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0040a964
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, ebx
add edx, edx
add edx, edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.0040a590
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.0040a794
call fcn.0040902c
call fcn.0040902c
jmp 0x4237d8
inc ebx
dec eax
jne 0x423700
jmp 0x4236a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4237fd
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00409920
ret