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

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x49a2a0]
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.0045cd40
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 0x40d24f
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 0x40d256
xor eax, eax
jmp 0x40d4fa
lea eax, [ebp - 0x68]
push eax
push 0x485f70
push 1
push ebx
push 0x4860e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d24f
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x4860a0
push eax
call dword [ecx]
test eax, eax
jge 0x40d291
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d24f
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
cmp dword [ebp - 0x6c], ebx
jne 0x40d2ad
push dword [0x4a2420]
push eax
call dword [ecx + 0x50]
push dword [0x4a2420]
jmp 0x40d2b7
push dword [ebp - 0x6c]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x6c]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0045cdd0
pop ecx
pop ecx
lea eax, [ebp + 0x1a4]
push 0x5c
push eax
call fcn.0045d580
pop ecx
pop ecx
cmp eax, ebx
je 0x40d2eb
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 0x40d303
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 0x40d314
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 0x40d3d7
cmp byte [esi], bl
je 0x40d3d7
push esi
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push 0x47ac74
push eax
call fcn.0045e516
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.0045cdd0
lea esi, [edi + 0xc0]
mov eax, dword [esi]
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d3ac
lea eax, [ebp + 0x2a8]
push eax
mov ecx, edi
call fcn.0040ce0c
mov dword [edi + 0xc4], eax
jmp 0x40d3d5
lea ecx, [ebp + 0x2a8]
push ecx
push eax
mov ecx, edi
call fcn.0040ce96
test eax, eax
jne 0x40d3d7
lea eax, [ebp + 0x2a8]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040ce43
mov dword [esi], eax
push 0x5c
cmp dword [ebp - 0x6c], ebx
je 0x40d3e3
push dword [ebp - 0x6c]
jmp 0x40d3e9
push dword [0x4a2420]
call fcn.0045d580
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d402
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d286
cmp dword [ebp - 0x74], ebx
je 0x40d42c
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.0045e516
add esp, 0x14
jmp 0x40d449
inc eax
push eax
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push 0x47ac74
push eax
call fcn.0045e516
add esp, 0x10
lea eax, [ebp + 0x3ac]
push eax
call fcn.0045d300
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 0x40d48b
lea eax, [ebp + 0x3ac]
push eax
mov ecx, edi
call fcn.0040ce0c
mov dword [edi + 0xc4], eax
jmp 0x40d4b4
lea ecx, [ebp + 0x3ac]
push ecx
push eax
mov ecx, edi
call fcn.0040ce96
test eax, eax
jne 0x40d4b6
lea eax, [ebp + 0x3ac]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040ce43
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.0045cdba
add ebp, 0x4b4
leave
ret 0x1c