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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9eb0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x123c
call fcn.004ab4d0
mov eax, dword [0x51c080]
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 esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1224], ebx
mov dword [ebp - 0x1228], 0xffffffff
mov dword [ebp - 0x1234], ebx
mov dword [ebp - 0x122c], ebx
mov byte [ebp - 0x121d], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 4], ebx
je 0x42df4b
lea edx, [esi + 0x3a00]
mov eax, edx
lea edi, [eax + 2]
jmp 0x42df20
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42df20
sub eax, edi
sar eax, 1
je 0x42df4b
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42df4b
cmp dword [esi + 0x4a00], ebx
je 0x42df4b
mov byte [ebp - 0x121d], 1
xor eax, eax
cmp byte [esi + 0x4a08], bl
setne al
lea eax, [eax + eax + 0x17]
lea ecx, [ebp - 0x122c]
push ecx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, ebx
je 0x42df9c
push str.__Get_Folder_Location_Fail___
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov dword [ebp - 0x1244], 3
push 0x5042a0
lea edx, [ebp - 0x1244]
push edx
call fcn.004abd6e
push 0x800
push ebx
lea eax, [ebp - 0xa1c]
push eax
call fcn.004ab450
add esp, 0xc
lea ecx, [ebp - 0xa1c]
push ecx
mov edx, dword [ebp - 0x122c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42dff6
push str.__Get_Folder_Path_Fail___
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov dword [ebp - 0x123c], 3
push 0x5042a0
lea eax, [ebp - 0x123c]
push eax
call fcn.004abd6e
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e000
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0xa1e], 0x5c
jne 0x42e03a
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e023
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0xa1e], bx
lea edi, [esi + 0x3200]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e045
sub eax, edx
sar eax, 1
je 0x42e081
push 0x4e4f30
push 0x400
lea ecx, [ebp - 0xa1c]
push ecx
call fcn.004aa6ad
push edi
push 0x400
lea edx, [ebp - 0xa1c]
push edx
call fcn.004aa6ad
add esp, 0x18
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e090
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0xa1e], 0x5c
jne 0x42e0ca
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e0b3
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0xa1e], bx
mov al, byte [esi + 0x4a0a]
neg al
sbb eax, eax
and eax, dword [0x52b9f0]
push ebx
push eax
lea edx, [ebp - 0xa1c]
call fcn.0045e440
mov dword [ebp - 0x1224], eax
push 0x200
push ebx
lea eax, [ebp - 0x21c]
push eax
call fcn.004ab450
add esp, 0x14
mov edi, 0x52adc8
cmp byte [ebp - 0x121d], bl
je 0x42e13c
push 9
push 0x100
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, esi
call fcn.0042e3e0
test eax, eax
je 0x42e16e
push 0xff
push esi
push 0x100
lea edx, [ebp - 0x21c]
push edx
jmp 0x42e166
push ebx
push 0x100
lea eax, [ebp - 0x21c]
push eax
mov ebx, esi
call fcn.0042e3e0
test eax, eax
je 0x42e16e
push 0xff
push esi
push 0x100
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004a9be0
add esp, 0x10
lea edi, [esi + 0x4200]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0xa1c]
push eax
push str._s_s.url
mov edx, edi
call fcn.00411a00
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1228], ebx
cmp ebx, 0xffffffff
jne 0x42e1f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
lea ecx, [ebp - 0x21c]
push ecx
push str._s__s__created_url_shortcut_icon_Fail
mov ecx, esi
mov edx, 0x527b30
call fcn.00448ec0
add esp, 0xc
mov dword [ebp - 0x1230], esi
push 0x5042a0
lea edx, [ebp - 0x1230]
push edx
call fcn.004abd6e
cmp byte [ebp - 0x121d], 0
je 0x42e22c
mov eax, dword [esi + 0x4a00]
push eax
lea ecx, [esi + 0x3a00]
push ecx
push edi
mov edx, dword [ebp - 0x1238]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x42e22c
push eax
push str.Set_locale_name_for_MUI_failed_:___ld_____
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
push 0x800
push 0
lea ecx, [ebp - 0x121c]
push ecx
call fcn.004ab450
lea edx, [esi + 0x1200]
push edx
mov eax, dword [esi + 0x4a04]
push eax
lea ecx, [esi + 0x200]
push ecx
push str._InternetShortcut__r_nURL_s_r_nIconIndex_x_r_nIconFile_s_r_nModified000000000000000000_r_n
lea edx, [ebp - 0x121c]
call fcn.00411a00
add esp, 0x1c
lea eax, [ebp - 0x121c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e270
sub eax, edx
sar eax, 1
push 0
lea edx, [ebp - 0x1234]
push edx
add eax, eax
push eax
lea ecx, [ebp - 0x121c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42e2ec
lea edx, [ebp - 0x21c]
push edx
push edi
push str.Short_cut_path_:___s____s_created_file_shorcut_icon_success
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
cmp byte [esi + 0x4a0a], 0
je 0x42e2d6
push 1
push 0
push 3
mov edx, edi
mov ecx, dword [0x52b9f0]
call fcn.004576a0
add esp, 0xc
mov dword [ebp - 0x1224], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x42e377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1224], eax
lea ecx, [ebp - 0x21c]
push ecx
push edi
push str._s__s__Write_URL_Shortcut_Data_fail
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x1228], ebx
push ebx
push 1
mov ecx, edi
call fcn.0045d900
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x42e377
mov dword [ebp - 4], 2
cmp ebx, 0xffffffff
je 0x42e38a
push ebx
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.004a998e
mov esp, ebp
pop ebp
ret 4