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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df877
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, 0x513279
mov dword [ebp - 4], 1
call fcn.004ba18d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x4e8730
push 1
push 0
push 0x4e87a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
or esi, 0xffffffff
test eax, eax
jne 0x4073ca
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push 0x4e8750
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x4073c1
mov byte [ebp - 4], 3
call fcn.00405850
mov ecx, eax
test ecx, ecx
je 0x40741b
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.004bd210
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 0x407245
lea ecx, [ebp - 0x820]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407217
sub ecx, edx
lea eax, [ebp - 0x820]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00406920
push 1
push 0x4e7874
lea ecx, [ebp - 0x18]
call fcn.00404630
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x407294
lea eax, [ebp - 0x10]
push eax
call fcn.00417930
add esp, 4
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404120
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 0x407294
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [ebp + 0xc]
call fcn.004bd528
add esp, 8
test eax, eax
jne 0x4072aa
or eax, 0xffffffff
jmp 0x4072af
sub eax, dword [ebp + 0xc]
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405e50
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 0x4072e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp + 8]
call fcn.004bd528
add esp, 8
test eax, eax
jne 0x4072ff
or eax, 0xffffffff
jmp 0x407304
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00405e50
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 0x40733e
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.004042b0
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 0x40738d
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 0x4073ab
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 0x4073cc
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 0x4073ea
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 0x407409
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.00404840
int3