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

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x499020]
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.0045c060
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 0x40d072
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 0x40d079
xor eax, eax
jmp 0x40d31d
lea eax, [ebp - 0x68]
push eax
push 0x484c00
push 1
push ebx
push 0x484d70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d072
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x484d30
push eax
call dword [ecx]
test eax, eax
jge 0x40d0b4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d072
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
cmp dword [ebp - 0x6c], ebx
jne 0x40d0d0
push dword [0x4a10a0]
push eax
call dword [ecx + 0x50]
push dword [0x4a10a0]
jmp 0x40d0da
push dword [ebp - 0x6c]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x6c]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0045c0f0
pop ecx
pop ecx
lea eax, [ebp + 0x1a4]
push 0x5c
push eax
call fcn.0045c8a0
pop ecx
pop ecx
cmp eax, ebx
je 0x40d10e
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 0x40d126
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 0x40d137
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 0x40d1fa
cmp byte [esi], bl
je 0x40d1fa
push esi
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push str._s_s
push eax
call fcn.0045d7ab
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.0045c0f0
lea esi, [edi + 0xc0]
mov eax, dword [esi]
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d1cf
lea eax, [ebp + 0x2a8]
push eax
mov ecx, edi
call fcn.0040cc54
mov dword [edi + 0xc4], eax
jmp 0x40d1f8
lea ecx, [ebp + 0x2a8]
push ecx
push eax
mov ecx, edi
call fcn.0040ccde
test eax, eax
jne 0x40d1fa
lea eax, [ebp + 0x2a8]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040cc8b
mov dword [esi], eax
push 0x5c
cmp dword [ebp - 0x6c], ebx
je 0x40d206
push dword [ebp - 0x6c]
jmp 0x40d20c
push dword [0x4a10a0]
call fcn.0045c8a0
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d225
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d0a9
cmp dword [ebp - 0x74], ebx
je 0x40d24f
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.0045d7ab
add esp, 0x14
jmp 0x40d26c
inc eax
push eax
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push str._s_s
push eax
call fcn.0045d7ab
add esp, 0x10
lea eax, [ebp + 0x3ac]
push eax
call fcn.0045c620
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 0x40d2ae
lea eax, [ebp + 0x3ac]
push eax
mov ecx, edi
call fcn.0040cc54
mov dword [edi + 0xc4], eax
jmp 0x40d2d7
lea ecx, [ebp + 0x3ac]
push ecx
push eax
mov ecx, edi
call fcn.0040ccde
test eax, eax
jne 0x40d2d9
lea eax, [ebp + 0x3ac]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040cc8b
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.0045c0da
add ebp, 0x4b4
leave
ret 0x1c