Function at 0x45ca50
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe58
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe50], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xe54], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xe3c], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xe40], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0xe34], ax
lea eax, [ebp - 0xe32]
push eax
mov dword [ebp - 0xe58], esi
mov dword [ebp - 0xe48], ebx
mov dword [ebp - 0xe4c], 0
call fcn.0046a390
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046a390
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0xa24], ax
lea eax, [ebp - 0xa22]
push eax
call fcn.0046a390
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0046a390
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046a390
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046a390
mov ecx, dword [ebp - 0xe50]
add esp, 0x48
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cb60
sub ecx, edx
sar ecx, 1
je 0x45cf26
test edi, edi
je 0x45cf26
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cb82
sub ecx, edx
sar ecx, 1
je 0x45cf26
test esi, esi
je 0x45cf26
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x45cf26
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cbb2
sub ecx, edx
sar ecx, 1
je 0x45cf26
test ebx, ebx
je 0x45cf26
mov esi, dword [ebp + 0x1c]
test esi, esi
js 0x45cf26
cmp dword [ebp - 0xe3c], 0
je 0x45cf26
cmp dword [ebp - 0xe40], 0
je 0x45cf26
mov ebx, dword [ebp + 0x28]
test ebx, ebx
js 0x45cf26
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45cc2b
push edi
push str.CreateShortCut___s_doesnt_exist_
call fcn.0045f520
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xe38]
push eax
push 0x4980b8
push 1
push 0
push 0x498108
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45cf20
mov eax, dword [ebp - 0xe38]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0xe38]
push dword [ebp - 0xe58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edi, dword [ebp - 0xe48]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cc80
sub ecx, edx
sar ecx, 1
je 0x45cc9e
mov eax, dword [ebp - 0xe38]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
jle 0x45ccaf
mov eax, dword [ebp - 0xe38]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push dword [ebp - 0xe3c]
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0046bf5a
lea ecx, [ebp - 0x61c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ccd2
sub ecx, edx
sar ecx, 1
je 0x45ccf6
mov eax, dword [ebp - 0xe38]
lea edx, [ebp - 0x61c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, dword [ebp - 0xe40]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cd01
sub ecx, edx
sar ecx, 1
je 0x45cd20
mov eax, dword [ebp - 0xe38]
push ebx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xe38]
lea edx, [ebp - 0xe44]
push edx
push 0x498128
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x45cf14
push 0x100
lea eax, [ebp - 0xa24]
push eax
push 0x100
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0xe34]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xe54]
push eax
call fcn.0046d2dc
push 4
lea eax, [ebp - 0x414]
push str..LNK
push eax
call fcn.0046cf27
add esp, 0x30
test eax, eax
je 0x45cda8
push str..lnk
lea eax, [ebp - 0x414]
push 0x100
push eax
call fcn.004694b4
add esp, 0xc
push dword [ebp - 0xe50]
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046bf5a
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ce00
lea eax, [ebp - 0x214]
push eax
push str.CreateShortCut___s_doesnt_exist_
call fcn.0045f520
lea eax, [ebp - 0x214]
push eax
call fcn.0042c370
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x48f650
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0046988e
add esp, 0x14
cmp dword [ebp + 0x2c], 0
je 0x45ceaf
mov eax, dword [ebp - 0xe38]
lea edx, [ebp - 0xe3c]
push edx
push 0x4980e8
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x45ceaf
mov dword [ebp - 0xe40], eax
lea edx, [ebp - 0xe40]
mov eax, dword [ebp - 0xe3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x45ceaf
mov edx, dword [ebp - 0xe40]
test edx, 0x2000
jne 0x45ceaf
mov eax, dword [ebp - 0xe3c]
or edx, 0x2000
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xe40]
or eax, 0x2000
push eax
push str.SetFlags___d
call fcn.0045f880
mov eax, dword [ebp - 0xe3c]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xc2c]
push 0x104
push eax
call fcn.0046bf5a
mov eax, dword [ebp - 0xe44]
lea edx, [ebp - 0xc2c]
add esp, 0xc
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
lea eax, [ebp - 0xc2c]
push esi
push eax
push str.CreateShortCut__PersistFile__Save__s____d
call fcn.0045f520
mov eax, dword [ebp - 0xe44]
add esp, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, 1
test esi, esi
cmove eax, ecx
mov dword [ebp - 0xe4c], eax
mov eax, dword [ebp - 0xe38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0xe4c]
push esi
push str.CreateShortCut__End__d_
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret