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

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x498fe0]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
mov eax, dword [ebp + 0x4c0]
push ebx
push esi
mov esi, dword [ebp + 0x4c8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x4c4]
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x4d0]
xor ebx, ebx
push 0x103
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x2a9]
push ebx
push eax
mov edi, ecx
mov byte [ebp + 0x2a8], bl
call fcn.0045bd70
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x4bc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40d05a
lea eax, [ebp + 0x2a8]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x80], ebx
jne 0x40d061
xor eax, eax
jmp 0x40d305
lea eax, [ebp - 0x68]
push eax
push 0x484b60
push 1
push ebx
push 0x484cd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d05a
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x484c90
push eax
call dword [ecx]
test eax, eax
jge 0x40d09c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d05a
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
cmp dword [ebp - 0x6c], ebx
jne 0x40d0b8
push dword [0x4a1030]
push eax
call dword [ecx + 0x50]
push dword [0x4a1030]
jmp 0x40d0c2
push dword [ebp - 0x6c]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x6c]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0045be00
pop ecx
pop ecx
lea eax, [ebp + 0x1a4]
push 0x5c
push eax
call fcn.0045c5b0
pop ecx
pop ecx
cmp eax, ebx
je 0x40d0f6
mov byte [eax], bl
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp + 0x1a4]
push edx
push eax
call dword [ecx + 0x24]
cmp word [ebp + 0x4cc], bx
je 0x40d10e
mov eax, dword [ebp - 0x68]
push dword [ebp + 0x4cc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp - 0x78], ebx
je 0x40d11f
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x68]
push dword [ebp + 0x4d4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp esi, ebx
je 0x40d1e2
cmp byte [esi], bl
je 0x40d1e2
push esi
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push str._s_s
push eax
call fcn.0045d4bb
add esp, 0x10
push ebx
lea eax, [ebp + 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
lea eax, [ebp + 0x3ac]
push eax
push 0x1001
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp + 0x3ac]
push eax
lea eax, [ebp + 0x2a8]
push eax
call fcn.0045be00
lea esi, [edi + 0xc0]
mov eax, dword [esi]
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d1b7
lea eax, [ebp + 0x2a8]
push eax
mov ecx, edi
call fcn.0040cc20
mov dword [edi + 0xc4], eax
jmp 0x40d1e0
lea ecx, [ebp + 0x2a8]
push ecx
push eax
mov ecx, edi
call fcn.0040ccaa
test eax, eax
jne 0x40d1e2
lea eax, [ebp + 0x2a8]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040cc57
mov dword [esi], eax
push 0x5c
cmp dword [ebp - 0x6c], ebx
je 0x40d1ee
push dword [ebp - 0x6c]
jmp 0x40d1f4
push dword [0x4a1030]
call fcn.0045c5b0
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d20d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d091
cmp dword [ebp - 0x74], ebx
je 0x40d237
push str..lnk
push dword [ebp - 0x74]
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push str._s_s_s
push eax
call fcn.0045d4bb
add esp, 0x14
jmp 0x40d254
inc eax
push eax
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push str._s_s
push eax
call fcn.0045d4bb
add esp, 0x10
lea eax, [ebp + 0x3ac]
push eax
call fcn.0045c330
lea eax, [ebp + eax + 0x3ac]
lea esi, [edi + 0xc0]
mov byte [eax - 3], 0x6c
mov byte [eax - 2], 0x6e
mov byte [eax - 1], 0x6b
mov eax, dword [esi]
pop ecx
cmp eax, ebx
jne 0x40d296
lea eax, [ebp + 0x3ac]
push eax
mov ecx, edi
call fcn.0040cc20
mov dword [edi + 0xc4], eax
jmp 0x40d2bf
lea ecx, [ebp + 0x3ac]
push ecx
push eax
mov ecx, edi
call fcn.0040ccaa
test eax, eax
jne 0x40d2c1
lea eax, [ebp + 0x3ac]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040cc57
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x3ac]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x64]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, ebx
setge al
mov ecx, dword [ebp + 0x4b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bdea
add ebp, 0x4b4
leave
ret 0x1c