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

Disassembly:
push 0xffffffffffffffff
push 0x48f706
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov esi, dword [esp + 0x658]
mov eax, dword [esp + 0x668]
mov ecx, dword [esp + 0x66c]
mov ebx, dword [esp + 0x660]
mov edi, dword [esp + 0x65c]
mov ebp, dword [esp + 0x664]
push esi
push str.FileName:__s
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.0040de80
push edi
push str.WorkingDir:__s
call fcn.0040de80
push ebx
push str.ShortcutPath:__s
call fcn.0040de80
push ebp
push str.Argument:__s
call fcn.0040de80
mov edx, dword [esp + 0x3c]
push edx
push str.IconPath:__s
call fcn.0040de80
xor ebx, ebx
add esp, 0x28
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x440]
push ecx
push 0x104
push esi
mov dword [esp + 0x660], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x40c74e
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x650], 0xffffffff
je 0x40c744
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0x80004005
jmp 0x40c93f
lea ecx, [esp + 0x14]
push ecx
push 0x4a5d1c
push 1
push ebx
push 0x4a5d2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40c915
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x40c791
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push 0x494b6c
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x43c]
push edx
push eax
mov eax, dword [ecx + 0x50]
mov byte [esp + 0x658], 1
call eax
mov esi, eax
cmp esi, ebx
jge 0x40c7c1
push str.ipShellLink__SetPath_failed
call fcn.0040de80
add esp, 4
jmp 0x40c8fc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x40c7e6
push str.ipShellLink__SetWorkingDirectory_failed
call fcn.0040de80
add esp, 4
jmp 0x40c8fc
mov eax, ebp
lea edx, [eax + 2]
jmp 0x40c7f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c7f0
sub eax, edx
sar eax, 1
je 0x40c826
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebp
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x40c826
push str.ipShellLink__SetArguments_failed
call fcn.0040de80
add esp, 4
jmp 0x40c8fc
mov esi, dword [esp + 0x20]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c830
sub eax, edx
sar eax, 1
je 0x40c866
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x40c866
push str.ipShellLink__SetDescription_failed
call fcn.0040de80
add esp, 4
jmp 0x40c8fc
mov esi, dword [esp + 0x1c]
mov ecx, 0x492aa0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c897
cmp dx, bx
je 0x40c893
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c897
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40c871
xor eax, eax
jmp 0x40c89c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40c8ce
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c8ce
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push esi
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x40c8ce
push str.ipShellLink__SetIconLocation_failed
call fcn.0040de80
add esp, 4
jmp 0x40c8fc
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
cmp esi, ebx
push edi
jl 0x40c8ef
push str.ipPersistFile__Save_succeeded__s_
jmp 0x40c8f4
push str.ipPersistFile__Save_failed__s_
call fcn.0040de80
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x650], bl
je 0x40c922
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40c922
push str.CoCreateInstance::CLSID_ShellLink_failed
call fcn.0040de80
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x650], 0xffffffff
je 0x40c93d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00477bf8
add esp, 0x640
ret