Function at 0x406fb0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebx
push esi
mov dword [ebp - 0x1c], 0
mov ecx, 0x570279
mov dword [ebp - 4], 1
call fcn.005040ed
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x544838
push 1
push 0
push 0x5448a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
or esi, 0xffffffff
test eax, eax
jne 0x40723a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push 0x544858
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x407231
mov byte [ebp - 4], 3
call fcn.004056c0
mov ecx, eax
test ecx, ecx
je 0x40728b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], 2
push 0x800
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x820]
push 0
push eax
call fcn.005073b0
add esp, 0xc
lea eax, [ebp - 0x820]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4070b5
lea ecx, [ebp - 0x820]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407087
sub ecx, edx
lea eax, [ebp - 0x820]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00406790
push 1
push 0x5399b4
lea ecx, [ebp - 0x18]
call fcn.00404880
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x407104
lea eax, [ebp - 0x10]
push eax
call fcn.00418250
add esp, 4
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404370
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407104
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [ebp + 0xc]
call fcn.005076c8
add esp, 8
test eax, eax
jne 0x40711a
or eax, 0xffffffff
jmp 0x40711f
sub eax, dword [ebp + 0xc]
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405cc0
mov ecx, dword [ebp - 0x14]
push dword [eax]
mov byte [ebp - 4], 5
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp + 8]
call fcn.005076c8
add esp, 8
test eax, eax
jne 0x40716f
or eax, 0xffffffff
jmp 0x407174
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00405cc0
mov ecx, dword [ebp - 0x14]
push dword [eax]
mov byte [ebp - 4], 6
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404500
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push 1
push dword [eax]
mov byte [ebp - 4], 7
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40721b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov bl, 1
jmp 0x40723c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor bl, bl
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40725a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x407279
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404a90
int3