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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x581c5c
push 1
push 0
push 0x583bfc
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x51407f
cmp dword [ebp - 4], 0
je 0x51407f
lea ebx, [edi + 0xc0]
mov byte [ebp - 5], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
push eax
mov ecx, ebx
call fcn.00513240
cmp dword [eax + 0x14], 8
jb 0x513e6f
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x10], 8
mov esi, eax
jb 0x513e89
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
test esi, esi
je 0x513fb8
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], 0
test esi, esi
je 0x513fbb
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push 0x5a0f90
push esi
call dword [eax]
test eax, eax
js 0x513fb8
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x513fb8
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00513240
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x513ed9
mov ecx, dword [ecx]
mov eax, dword [esi]
push 2
push ecx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040329c
test esi, esi
js 0x513fab
xor eax, eax
mov byte [ebp - 5], 1
push 0x206
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
call fcn.00538910
push 0x24c
lea eax, [ebp - 0x480]
mov dword [ebp - 0x484], 0
push 0
push eax
call fcn.00538910
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x484]
add esp, 0x18
mov ecx, dword [eax]
push 6
push edx
push 0x104
lea edx, [ebp - 0x234]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x513fab
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00513240
cmp dword [eax + 0x14], 8
jb 0x513f68
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.005393dd
add esp, 0xc
lea ecx, [ebp - 0x24]
test eax, eax
sete bl
call fcn.0040329c
test bl, bl
je 0x513fa5
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x513f9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 1
jmp 0x514081
lea ebx, [edi + 0xc0]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x513fb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [edi + 0x8c]
call fcn.00513240
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x513fd4
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x50]
cmp dword [ebp - 0x10], 8
mov esi, eax
jb 0x513fee
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
test esi, esi
js 0x51407f
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x8c]
call fcn.00513240
lea eax, [ebp - 0x24]
push eax
call fcn.0043e931
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
add esp, 4
cmp dword [ebp - 0x10], 8
cmovae ecx, dword [ebp - 0x24]
push ecx
push esi
call dword [eax + 0x24]
cmp dword [ebp - 0x10], 8
mov esi, eax
jb 0x514039
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
test esi, esi
js 0x51407f
lea ecx, [edi + 0x58]
call fcn.00513c00
test eax, eax
je 0x514097
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x58]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00513240
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x514065
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xc]
push 0
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x44]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040329c
test esi, esi
jns 0x5140ca
xor ebx, ebx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x51408e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x8c]
call fcn.00513240
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x5140b3
mov ecx, dword [ecx]
mov eax, dword [esi]
push 0
push ecx
push esi
call dword [eax + 0x44]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040329c
test esi, esi
js 0x51407f
cmp dword [edi + 0x38], 0
je 0x5140e9
cmp dword [edi + 0x3c], 8
lea edx, [edi + 0x28]
jb 0x5140db
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x51407f
cmp dword [edi + 0x50], 0
je 0x51410c
add edi, 0x40
cmp dword [edi + 0x14], 8
jb 0x5140fa
mov edi, dword [edi]
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x51407f
cmp byte [ebp - 5], 0
je 0x51411c
mov ebx, 1
jmp 0x514081
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.004401a9
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x51407f
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00513240
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x514147
mov ecx, dword [ecx]
mov eax, dword [esi]
push 1
push ecx
push esi
call dword [eax + 0x18]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040329c
push dword [0x5c83d8]
mov ecx, ebx
sub esp, 0x18
push esp
call fcn.00513240
lea eax, [ebp - 0x24]
push eax
call fcn.004b4600
add esp, 0x1c
push eax
call fcn.004455b3
add esp, 8
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0040329c
test bl, bl
je 0x5141bc
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00513240
cmp dword [eax + 0x14], 8
jb 0x5141a2
mov eax, dword [eax]
push 1
push 1
push 0x5814e4
push eax
call fcn.004c19c0
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.0040329c
mov eax, dword [ebp - 0x28]
xor ebx, ebx
test esi, esi
setns bl
test eax, eax
je 0x514081
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x514081