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

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x49c250]
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.0045df50
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 0x40d230
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 0x40d237
xor eax, eax
jmp 0x40d4db
lea eax, [ebp - 0x68]
push eax
push 0x487fc0
push 1
push ebx
push 0x488140
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d230
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x488100
push eax
call dword [ecx]
test eax, eax
jge 0x40d272
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d230
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
cmp dword [ebp - 0x6c], ebx
jne 0x40d28e
push dword [0x4a73e0]
push eax
call dword [ecx + 0x50]
push dword [0x4a73e0]
jmp 0x40d298
push dword [ebp - 0x6c]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x6c]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0045dfe0
pop ecx
pop ecx
lea eax, [ebp + 0x1a4]
push 0x5c
push eax
call fcn.0045e790
pop ecx
pop ecx
cmp eax, ebx
je 0x40d2cc
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 0x40d2e4
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 0x40d2f5
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 0x40d3b8
cmp byte [esi], bl
je 0x40d3b8
push esi
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push 0x47cc5c
push eax
call fcn.0045f726
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.0045dfe0
lea esi, [edi + 0xc0]
mov eax, dword [esi]
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d38d
lea eax, [ebp + 0x2a8]
push eax
mov ecx, edi
call fcn.0040cdfb
mov dword [edi + 0xc4], eax
jmp 0x40d3b6
lea ecx, [ebp + 0x2a8]
push ecx
push eax
mov ecx, edi
call fcn.0040ce85
test eax, eax
jne 0x40d3b8
lea eax, [ebp + 0x2a8]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040ce32
mov dword [esi], eax
push 0x5c
cmp dword [ebp - 0x6c], ebx
je 0x40d3c4
push dword [ebp - 0x6c]
jmp 0x40d3ca
push dword [0x4a73e0]
call fcn.0045e790
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d3e3
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d267
cmp dword [ebp - 0x74], ebx
je 0x40d40d
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.0045f726
add esp, 0x14
jmp 0x40d42a
inc eax
push eax
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x3ac]
push 0x47cc5c
push eax
call fcn.0045f726
add esp, 0x10
lea eax, [ebp + 0x3ac]
push eax
call fcn.0045e510
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 0x40d46c
lea eax, [ebp + 0x3ac]
push eax
mov ecx, edi
call fcn.0040cdfb
mov dword [edi + 0xc4], eax
jmp 0x40d495
lea ecx, [ebp + 0x3ac]
push ecx
push eax
mov ecx, edi
call fcn.0040ce85
test eax, eax
jne 0x40d497
lea eax, [ebp + 0x3ac]
push eax
lea esi, [edi + 0xc4]
push dword [esi]
mov ecx, edi
call fcn.0040ce32
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.0045dfca
add ebp, 0x4b4
leave
ret 0x1c