Function at 0x407dd0
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x435e90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x448fb0]
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 0x4080de
mov edi, dword [esp + 0x40]
cmp edi, 1
je 0x407e2f
cmp edi, 2
je 0x407e2f
cmp edi, 3
je 0x407e2f
cmp edi, 4
je 0x407e2f
cmp edi, 5
jne 0x4080de
lea edx, [esp + 0x3c]
lea ecx, [esi + 0x4c]
push edx
call fcn.00403eb0
mov dword [esi + 0x50], edi
add esi, 0x40
push ebx
push 0x43a20c
mov ecx, esi
mov dword [esp + 0x28], esi
call fcn.00403250
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jl 0x407fe1
cmp edi, 1
jne 0x407fe1
cmp eax, edi
jge 0x407e7a
push 0x80070057
call fcn.00401090
movzx eax, word [ecx + 2]
cmp ax, 0x3a
jne 0x407fe1
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 1
push 1
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x407fe1
mov esi, 0x4000
push esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x44], esi
call fcn.00414c0b
mov ecx, dword [esp + 0x44]
add esp, 4
mov edi, eax
cmp ecx, ebx
je 0x407ecc
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407ec4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x407fca
mov ecx, dword [edi + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004077e0
push 2
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.00402f40
mov ecx, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
setne dl
mov byte [esp + 0x34], 2
test edx, edx
je 0x4080d4
mov eax, dword [eax]
push ecx
push eax
call fcn.004217b8
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407f6a
mov ecx, dword [edi + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.00404c20
mov dword [esp + 0x10], 1
mov dword [esp + 0x40], esi
mov ecx, esi
mov eax, edi
lea ebx, [ebx]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x407f80
mov eax, dword [esp + 0x18]
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 0x407fad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x407ee9
push edi
call fcn.00414c16
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call sub.MPR.dll_WNetCloseEnum
mov esi, dword [esp + 0x20]
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
call fcn.00402f40
push 0x4395c4
push eax
call fcn.00402470
mov bl, al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408095
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 2
jl 0x408095
add eax, 4
push 0x4397d4
push eax
call fcn.0042184b
add esp, 8
test eax, eax
je 0x408095
sub eax, dword [esp + 0x3c]
sar eax, 1
cmp eax, 0xffffffff
je 0x408095
add eax, 0xfffffffe
push eax
push 2
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402e10
push eax
mov ecx, esi
mov byte [esp + 0x38], 3
call fcn.00403eb0
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 0x408095
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 0x4080bd
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 0x80004005
call fcn.00401090
push ebx
lea ecx, [esi + 0x4c]
push 0x43a20c
call fcn.00403250
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 0x408117
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