Function at 0x40778e
Capabilities:
Create shortcut via ishelllink
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
mov dword [ebp - 0x834], eax
mov eax, dword [ebp + 0x14]
push 0x426bf0
push ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x838], eax
call fcn.00418e27
add esp, 0xc
test eax, eax
jne 0x407866
push 0x426bf8
push esi
push 0x426bfc
lea eax, [ebp - 0x824]
push 0x410
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x824]
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40798d
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x830]
push edi
push eax
push 0x18
push 0x426c04
push ebx
call esi
push edi
mov edi, dword [ebp - 0x82c]
lea eax, [ebp - 0x830]
push eax
push edi
call fcn.00411620
pop ecx
push eax
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4079dd
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x828]
push eax
push 0x4287c8
push 1
push edi
push 0x4287e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x407983
mov eax, dword [ebp - 0x828]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x828]
push dword [ebp - 0x834]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x828]
push edi
push dword [ebp - 0x838]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x828]
lea edx, [ebp - 0x82c]
push edx
push 0x4287d8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x407977
mov ebx, 0x426c20
lea eax, [ebp - 0x824]
push ebx
push dword [ebp - 0x83c]
push 0x426bfc
push 0x410
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x426c24
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x414]
push esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x82c]
lea edx, [ebp - 0x414]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x82c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x828]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
jns 0x407992
xor eax, eax
inc eax
jmp 0x4079df
push edi
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040623a
add esp, 0xc
test eax, eax
jne 0x4079b2
push 2
pop eax
jmp 0x4079df
push dword [ebp - 0x840]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004063b9
add esp, 0xc
test eax, eax
je 0x4079d0
push 3
jmp 0x4079af
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret