Function at 0x407720
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x435438
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x449fb0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, 1
mov dword [esp + 0x34], ebx
jl 0x4079fb
mov edi, dword [esp + 0x40]
cmp edi, 1
je 0x40777f
cmp edi, 2
je 0x40777f
cmp edi, 3
je 0x40777f
cmp edi, 4
je 0x40777f
cmp edi, 5
jne 0x4079fb
lea edx, [esp + 0x3c]
lea ecx, [esi + 0x4c]
push edx
call fcn.00403950
mov dword [esi + 0x50], edi
add esi, 0x40
push ebx
push 0x438708
mov ecx, esi
mov dword [esp + 0x28], esi
call fcn.00402c30
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jl 0x407908
cmp edi, 1
jne 0x407908
cmp eax, edi
jge 0x4077ca
push 0x80070057
call fcn.00401090
movzx eax, word [ecx + 2]
cmp ax, 0x3a
jne 0x407908
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 1
push 1
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x407908
mov edi, 0x4000
push edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x44], edi
call fcn.004141b1
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, eax
cmp ecx, ebx
je 0x40781c
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407814
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4078fb
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407160
push 2
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.00402970
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.00420d5f
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407890
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4078a1
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.00404560
mov dword [esp + 0x10], 1
mov dword [esp + 0x40], edi
mov ecx, edi
mov eax, esi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4078b1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34], cl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4078de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x407839
push esi
call fcn.004141bc
mov esi, dword [esp + 0x24]
add esp, 4
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
call fcn.00402970
push 0x4385e4
push eax
call fcn.00401e90
mov bl, al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4079bc
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 2
jl 0x4079bc
add eax, 4
push 0x438814
push eax
call fcn.00420df2
add esp, 8
test eax, eax
je 0x4079bc
sub eax, dword [esp + 0x3c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4079bc
add eax, 0xfffffffe
push eax
push 2
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402840
push eax
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.00403950
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8
push ebx
lea ecx, [esi + 0x4c]
push 0x438708
call fcn.00402c30
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esi + 0x50], ebx
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8