Function at 0x408200
Capabilities:
Enumerate network shares
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ad3d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push esi
push edi
mov eax, dword [0x6f7d14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1bc]
mov dword [ebp - 0x70], ecx
cmp dword [ebp + 8], 0
je 0x40824f
mov dword [ebp - 0x50], 2
jmp 0x408256
mov dword [ebp - 0x50], 5
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.MPR.dll_WNetOpenEnumA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40827e
xor eax, eax
jmp 0x408a5a
mov dword [ebp - 0x24], 0x4000
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x54], 0
je 0x40831f
cmp dword [ebp - 0x38], 0
jne 0x40831f
mov eax, dword [ebp - 0x24]
push eax
call fcn.004eab55
add esp, 4
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x3c], 0xffffffff
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MPR.dll_WNetEnumResourceA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xea
jne 0x408307
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.004eab50
add esp, 4
mov edx, dword [ebp - 0x24]
shl edx, 1
mov dword [ebp - 0x24], edx
jmp 0x40831d
cmp dword [ebp - 0x28], 0
jne 0x408316
mov dword [ebp - 0x38], 1
jmp 0x40831d
mov dword [ebp - 0x54], 0
jmp 0x4082a1
cmp dword [ebp - 0x38], 0
je 0x408a2f
mov dword [ebp - 0x1c], 0
jmp 0x40833b
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x3c]
jae 0x408a2f
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040d7f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040dc80
movzx edx, al
test edx, edx
je 0x408389
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0x18]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040db70
lea ecx, [ebp - 0x34]
call fcn.0040ec90
mov byte [ebp - 4], 1
push 0
push 0x6c5e84
lea ecx, [ebp - 0x20]
call fcn.0040b840
test eax, eax
jne 0x4083f7
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040ebc0
lea ecx, [ebp - 0x20]
call fcn.0040eb00
sub eax, 2
push eax
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040b700
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ebc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040ed10
push 0x14
call fcn.004eab18
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x58], 0
je 0x40841b
mov ecx, dword [ebp - 0x58]
call fcn.00401e70
mov dword [ebp - 0x5c], eax
jmp 0x408422
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x14], edx
push 0x20
call fcn.004eab18
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov esi, dword [ebp - 0x1c]
shl esi, 5
add esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 8
mov edi, dword [edx + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x10], 0
je 0x4084c4
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0x10]
push ecx
call fcn.00636c85
add esp, 4
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 0x14], 0
je 0x4084ff
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.00636c85
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x94]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
mov edx, dword [ebp - 0x18]
cmp dword [edx + ecx + 0x18], 0
je 0x40853a
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0x18]
push edx
call fcn.00636c85
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x98]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x1c], 0
je 0x408575
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0x1c]
push ecx
call fcn.00636c85
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x9c]
mov dword [eax + 0x1c], ecx
lea ecx, [ebp - 0x34]
call fcn.0040eb00
test eax, eax
je 0x408590
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040ebc0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040ebc0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x10], 1
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 8], 3
jne 0x40872b
mov ecx, dword [ebp - 0x14]
add ecx, 8
mov dword [ebp - 0xa0], ecx
push 0
push 0x5c
mov ecx, dword [ebp - 0xa0]
call fcn.0040b8c0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jl 0x40863a
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0x60]
add eax, 1
push eax
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.0040b790
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040ebc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.0040ed10
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x210]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xb4]
test eax, eax
je 0x4086e4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1f0]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1e4]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1d8]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
push 1
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xc8]
jmp 0x408726
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40871c
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0xd0], eax
push 1
mov ecx, dword [ebp - 0x40]
call dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
jmp 0x408726
mov dword [ebp - 0xd4], 0
jmp 0x408a08
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
mov edx, dword [ebp - 0x18]
cmp dword [edx + ecx + 8], 2
jne 0x4088b6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xd8]
test eax, eax
je 0x40886f
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1cc], 0xffffffff
je 0x4087bc
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1d0], 0xffffffff
je 0x4087bc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1f0]
mov dword [ebp - 0xdc], edx
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1d0]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1cc]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xdc]
jmp 0x40886d
lea ecx, [ebp - 0x2c]
call fcn.0040ec90
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040cef0
push eax
push 0x6c5e88
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e010
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1f0]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1e4]
mov dword [ebp - 0xe0], eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1d8]
mov dword [ebp - 0xe4], ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
push 0
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0xf0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040ed10
jmp 0x4088b1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x4088a7
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0xf8], edx
push 1
mov ecx, dword [ebp - 0x44]
call dword [ebp - 0xf8]
mov dword [ebp - 0xfc], eax
jmp 0x4088b1
mov dword [ebp - 0xfc], 0
jmp 0x408a08
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x100]
test eax, eax
je 0x4089c6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0xffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x30]
push edx
push 0x12
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x408996
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1d0]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x104]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1dc]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x108]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [ebp - 0x110]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1b4]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1f0]
mov dword [ebp - 0x114], eax
push 0
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x114]
jmp 0x408a08
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4089fe
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x11c], eax
push 1
mov ecx, dword [ebp - 0x4c]
call dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x408a08
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040ed10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040ed10
jmp 0x408332
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.004eab50
add esp, 4
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8