Function at 0x422ca8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408038
cmp dword [0x6595ec], 1
jne 0x422cf3
cmp dword [0x6595f0], 4
jle 0x422d32
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x428]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.mpr.dll_WNetGetUniversalNameW
test eax, eax
jne 0x422f57
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x428]
mov edx, dword [edx]
call fcn.00408d84
jmp 0x422f57
mov eax, dword [ebp - 4]
movzx edx, word [eax]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x422d4b
mov eax, edx
and ax, 0xffdf
mov word [ebp - 0x1a], ax
cmp word [ebp - 0x1a], 0x41
jb 0x422d5d
cmp word [ebp - 0x1a], 0x5a
jbe 0x422d61
mov al, 1
jmp 0x422d73
mov eax, dword [ebp - 4]
test eax, eax
je 0x422d6d
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
setl al
test al, al
je 0x422d7b
mov al, 1
jmp 0x422d86
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
setne al
test al, al
je 0x422d8e
mov al, 1
jmp 0x422d99
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
setne al
test al, al
jne 0x422f57
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x422f57
xor eax, eax
push ebp
push 0x422f50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00404b80
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x422f32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x422e29
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404bb4
jmp 0x422de8
cmp dword [ebp - 0x10], 0
je 0x422e3e
call fcn.00407448
call fcn.00407448
jmp 0x422f57
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x422de8
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*8 + 0x10], 0
je 0x422f0c
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0x10]
movzx edi, word [eax]
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0x10]
movzx eax, word [eax]
add eax, 0xffffff9f
sub ax, 0x1a
jae 0x422e9b
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0x10]
movzx edi, word [eax]
and di, 0xffdf
cmp di, word [ebp - 0x1a]
jne 0x422f0c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x422eb8
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x28]
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00409140
mov eax, dword [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
mov edx, ebx
add edx, edx
add edx, edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.00408d84
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00408f70
call fcn.00407448
call fcn.00407448
jmp 0x422f57
inc ebx
dec esi
jne 0x422e49
jmp 0x422de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422f7c
lea eax, [ebp - 0x430]
mov edx, 2
call fcn.00407cb8
ret