Function at 0x4608e0
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f910
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x123c
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1238], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1224], edi
mov dword [ebp - 0x1228], 0xffffffff
mov dword [ebp - 0x1234], edi
mov dword [ebp - 0x122c], edi
mov byte [ebp - 0x121d], 0
mov dword [ebp - 4], edi
cmp dword [eax + 4], edi
je 0x46098b
lea edx, [ebx + 0x3a00]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460960
sub eax, esi
sar eax, 1
je 0x46098b
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46098b
cmp dword [ebx + 0x4a00], edi
je 0x46098b
mov byte [ebp - 0x121d], 1
xor eax, eax
cmp byte [ebx + 0x4a08], al
setne al
lea eax, [eax + eax + 0x17]
lea ecx, [ebp - 0x122c]
push ecx
push edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, edi
je 0x4609dc
push str.__Get_Folder_Location_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x1244], 3
push 0x5814b0
lea edx, [ebp - 0x1244]
push edx
call fcn.004fd5a3
push 0x800
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp - 0x81c]
push ecx
mov edx, dword [ebp - 0x122c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x460a36
push str.__Get_Folder_Path_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x123c], 3
push 0x5814b0
lea eax, [ebp - 0x123c]
push eax
call fcn.004fd5a3
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460a40
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x81e], 0x5c
jne 0x460a7a
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460a63
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x81e], di
lea esi, [ebx + 0x3200]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460a85
sub eax, edx
sar eax, 1
je 0x460ac1
push 0x5356dc
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fad44
push esi
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.004fad44
add esp, 0x18
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460ad0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x81e], 0x5c
jne 0x460b0a
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460af3
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x81e], di
cmp byte [ebx + 0x4a0a], 0
je 0x460b20
call fcn.004290d0
mov eax, dword [eax + 0xe230]
jmp 0x460b22
xor eax, eax
push edi
push eax
lea edx, [ebp - 0x81c]
call fcn.0049d3f0
mov dword [ebp - 0x1224], eax
lea esi, [ebx + 0x4200]
push ebx
lea eax, [ebp - 0x81c]
push eax
push str._s_s.url
mov edx, esi
call fcn.00404380
add esp, 0x14
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1228], edi
cmp edi, 0xffffffff
jne 0x460bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
lea ecx, [ebp - 0xa1c]
push ecx
push str._s__s__created_url_shortcut_icon_Fail
mov ecx, edi
mov edx, 0x649e50
call fcn.004917b0
add esp, 0xc
mov dword [ebp - 0x1230], edi
push 0x5814b0
lea edx, [ebp - 0x1230]
push edx
call fcn.004fd5a3
cmp byte [ebp - 0x121d], 0
je 0x460bea
mov eax, dword [ebx + 0x4a00]
push eax
lea ecx, [ebx + 0x3a00]
push ecx
push esi
mov edx, dword [ebp - 0x1238]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x460bea
push eax
push str.Set_locale_name_for_MUI_failed_:___ld_____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
push 0x800
push 0
lea ecx, [ebp - 0x121c]
push ecx
call fcn.004fd670
lea edx, [ebx + 0x1200]
push edx
mov eax, dword [ebx + 0x4a04]
push eax
add ebx, 0x200
push ebx
push str._InternetShortcut__r_nURL_s_r_nIconIndex_x_r_nIconFile_s_r_nModified000000000000000000_r_n
lea edx, [ebp - 0x121c]
call fcn.00404380
add esp, 0x1c
lea eax, [ebp - 0x121c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460c30
sub eax, edx
sar eax, 1
push 0
lea ecx, [ebp - 0x1234]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x121c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x460c74
mov dword [ebp - 0x1224], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x460cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1224], eax
lea ecx, [ebp - 0xa1c]
push ecx
push esi
push str._s__s__Write_URL_Shortcut_Data_fail
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x1228], edi
push 1
mov ecx, esi
call fcn.0049c660
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x460cfe
mov dword [ebp - 4], 2
cmp edi, 0xffffffff
je 0x460d11
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4