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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560036
mov eax, dword fs:[0]
push eax
sub esp, 0xa2c
mov eax, dword [0x5b03a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xa2c], edi
mov dword [ebp - 0xa34], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4203d2
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa20], 0
lea eax, [ebp - 0xa1c]
push eax
push 0x593760
push 0x17
push 0
push 0x56de10
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4203d9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x4203bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x4203d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x42069d
mov esi, dword [ebp - 0xa1c]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa20]
test eax, eax
jne 0x4203f5
test esi, esi
jne 0x420470
mov bl, 1
jmp 0x420472
test esi, esi
je 0x420470
lea edx, [ebp - 0xa24]
mov dword [ebp - 0xa24], 0
push edx
mov dword [ebp - 0xa28], 0
mov ecx, dword [eax]
push 0x593750
push eax
call dword [ecx]
mov eax, dword [esi]
lea ecx, [ebp - 0xa28]
push ecx
push 0x593750
push esi
call dword [eax]
mov eax, dword [ebp - 0xa24]
mov ecx, dword [ebp - 0xa28]
cmp eax, ecx
sete bl
mov byte [ebp - 4], 7
test ecx, ecx
je 0x420454
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xa24]
mov byte [ebp - 4], 8
test eax, eax
je 0x420462
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0xa1c]
mov eax, dword [ebp - 0xa20]
jmp 0x420472
xor bl, bl
mov byte [ebp - 4], 5
test bl, bl
jne 0x4204c7
mov edi, eax
test esi, esi
je 0x4204a3
mov eax, dword [esi]
lea ecx, [ebp - 0xa20]
push ecx
push 0x593770
push esi
call dword [eax]
mov esi, dword [ebp - 0xa1c]
test eax, eax
js 0x4204a3
mov eax, dword [ebp - 0xa20]
jmp 0x4204ab
xor eax, eax
mov dword [ebp - 0xa20], eax
test edi, edi
je 0x4204c1
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov esi, dword [ebp - 0xa1c]
mov eax, dword [ebp - 0xa20]
mov edi, dword [ebp - 0xa2c]
mov dword [ebp - 4], 1
test eax, eax
jne 0x4204ee
mov dword [ebp - 4], 0xd
test esi, esi
je 0x4203d2
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
jmp 0x42069d
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x50]
test eax, eax
jns 0x420519
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x42050d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xf
jmp 0x4203c2
mov edx, dword [ebp - 0xa30]
test edx, edx
je 0x420554
mov eax, dword [ebp - 0xa1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x420554
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x420548
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x11
jmp 0x4203c2
mov eax, dword [ebp - 0xa1c]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x420586
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x42057a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x13
jmp 0x4203c2
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00527d20
push 0x400
lea eax, [ebp - 0xa18]
push edi
push eax
call fcn.0052fa99
add esp, 0x18
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00527d20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0xa34]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0x218]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0xa18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x420635
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x420629
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
jmp 0x4203c2
mov eax, dword [ebp - 0xa20]
push 1
push dword [ebp - 0xa38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x42066d
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x420661
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x17
jmp 0x4203c2
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x420681
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x420698
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004deaec
mov esp, ebp
pop ebp
ret 0x14