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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a38d
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x10
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x114]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40be10
mov ax, word [0x690b4c]
mov word [edi], ax
lea eax, [ebp + 0x10]
push str..lnk
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00406fd0
add esp, 0xc
mov edx, dword [eax]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40be40
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40be50
mov ecx, edx
or ebx, 0xffffffff
shr ecx, 2
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x320]
and ecx, 3
add edx, 0xfffffff0
rep movsb byte es:[edi], byte [esi]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40be86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0062c8cb
add esp, 8
cmp eax, 0xffffffff
jne 0x40c021
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40c021
lea eax, [ebp - 0x324]
push eax
push 0x695078
push 1
push 0
push 0x698fb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c01b
mov eax, dword [ebp + 0x10]
xor edx, edx
mov esi, dword [eax - 0xc]
lea ecx, [esi - 4]
test ecx, ecx
cmovns edx, ecx
mov dword [ebp - 0x328], edx
cmp edx, 0x7ffffffb
jg 0x40c09f
mov edi, esi
lea ecx, [edx + 4]
sub edi, edx
cmp ecx, esi
jle 0x40bf0c
mov ebx, edi
test ebx, ebx
jle 0x40bf8c
jmp 0x40bf11
mov ebx, 4
sub edi, ebx
sub esi, ebx
inc edi
cmp dword [eax - 4], 1
jle 0x40bf30
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.00402c10
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x328]
add eax, edx
lea ecx, [eax + ebx]
test edi, edi
je 0x40bf63
test eax, eax
jne 0x40bf54
call fcn.0061236b
mov dword [eax], 0x16
call fcn.0061220a
mov eax, 0x16
jmp 0x40bf65
test ecx, ecx
je 0x40bf3d
push edi
push ecx
push eax
call fcn.00605940
add esp, 0xc
xor eax, eax
push eax
call fcn.0040b820
add esp, 4
test esi, esi
js 0x40c0a9
mov eax, dword [ebp + 0x10]
cmp esi, dword [eax - 8]
jg 0x40c0a9
mov dword [eax - 0xc], esi
mov eax, dword [ebp + 0x10]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x324]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x324]
lea edx, [ebp - 0x320]
push edx
push 0x696328
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40c00c
push 0x208
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00605ec0
add esp, 0xc
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x320]
lea edx, [ebp - 0x31c]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x320]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or ebx, 0xffffffff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c03f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c05d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40c07c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.004020e0
push 0x80070057
call fcn.004020e0
int3