Function at 0x45ca00
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.0046a330
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046a330
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0xa24], ax
lea eax, [ebp - 0xa22]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046a330
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 0x45cb10
sub ecx, edx
sar ecx, 1
je 0x45ced6
test edi, edi
je 0x45ced6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cb32
sub ecx, edx
sar ecx, 1
je 0x45ced6
test esi, esi
je 0x45ced6
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x45ced6
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cb62
sub ecx, edx
sar ecx, 1
je 0x45ced6
test ebx, ebx
je 0x45ced6
mov esi, dword [ebp + 0x1c]
test esi, esi
js 0x45ced6
cmp dword [ebp - 0xe3c], 0
je 0x45ced6
cmp dword [ebp - 0xe40], 0
je 0x45ced6
mov ebx, dword [ebp + 0x28]
test ebx, ebx
js 0x45ced6
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45cbdb
push edi
push str.CreateShortCut___s_doesnt_exist_
call fcn.0045f4c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xe38]
push eax
push 0x4980c8
push 1
push 0
push 0x498118
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45ced0
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 0x45cc30
sub ecx, edx
sar ecx, 1
je 0x45cc4e
mov eax, dword [ebp - 0xe38]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
jle 0x45cc5f
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.0046befa
lea ecx, [ebp - 0x61c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cc82
sub ecx, edx
sar ecx, 1
je 0x45cca6
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 0x45ccb1
sub ecx, edx
sar ecx, 1
je 0x45ccd0
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 0x498138
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x45cec4
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.0046d27c
push 4
lea eax, [ebp - 0x414]
push str..LNK
push eax
call fcn.0046cec7
add esp, 0x30
test eax, eax
je 0x45cd58
push str..lnk
lea eax, [ebp - 0x414]
push 0x100
push eax
call fcn.00469454
add esp, 0xc
push dword [ebp - 0xe50]
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046befa
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 0x45cdb0
lea eax, [ebp - 0x214]
push eax
push str.CreateShortCut___s_doesnt_exist_
call fcn.0045f4c0
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 str._s_s
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0046982e
add esp, 0x14
cmp dword [ebp + 0x2c], 0
je 0x45ce5f
mov eax, dword [ebp - 0xe38]
lea edx, [ebp - 0xe3c]
push edx
push 0x4980f8
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x45ce5f
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 0x45ce5f
mov edx, dword [ebp - 0xe40]
test edx, 0x2000
jne 0x45ce5f
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.0045f820
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.0046befa
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.0045f4c0
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.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret