Function at 0x465d70
Capabilities:
Check if file exists
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0641
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4c8748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov eax, dword [ebp + 8]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x465db4
mov ecx, dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
mov word [ecx], dx
cmp dword [eax + 0x10], edx
je 0x46626a
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], dl
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], edx
jb 0x465de9
mov eax, dword [eax]
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.004645f0
add esp, 8
cmp dword [ebp - 0x254], 0xa
jae 0x465e12
lea ecx, [ebp - 0x264]
call fcn.00401ca0
jmp 0x46626a
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00478960
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x24c]
push 8
push eax
call fcn.00463df0
add esp, 8
push 4
push str..ico
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.0040f070
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465e95
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00404110
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x234]
push eax
mov byte [ebp - 4], 2
call fcn.0040f070
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x466073
lea eax, [ebp - 0x280]
push 8
push eax
call fcn.00463df0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x24c]
cmp eax, esi
je 0x465fa2
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x465f61
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465f57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466290
push edx
push ecx
call fcn.00476d79
add esp, 8
mov dword [ebp - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x465fe2
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465fd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466290
push edx
push ecx
call fcn.00476d79
add esp, 8
push 4
push str..ico
lea ecx, [ebp - 0x24c]
call fcn.0040f070
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466020
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00404110
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x234]
push eax
call fcn.0040f070
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x465ee1
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push 0
cmovae eax, dword [ebp - 0x234]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4660cd
lea ecx, [ebp - 0x234]
call fcn.00401cf0
lea ecx, [ebp - 0x24c]
call fcn.00401cf0
lea ecx, [ebp - 0x264]
call fcn.00401ca0
jmp 0x466264
cmp dword [ebp - 0x250], 0x10
lea ecx, [ebp - 0x268]
push 0
push ecx
push dword [ebp - 0x254]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x268], 0
cmovae eax, dword [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46612c
lea ecx, [ebp - 0x234]
call fcn.00401cf0
lea ecx, [ebp - 0x24c]
call fcn.00401cf0
lea ecx, [ebp - 0x264]
call fcn.00401ca0
jmp 0x46625d
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x466152
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00404110
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x466192
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466188
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466290
push edx
push ecx
call fcn.00476d79
add esp, 8
mov edx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x4661ef
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4661e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466295
push edx
push ecx
call fcn.00476d79
add esp, 8
mov edx, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
cmp edx, 0x10
jb 0x466242
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x466238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46629a
push edx
push ecx
call fcn.00476d79
add esp, 8
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [edi + 0x14], 8
jb 0x466272
mov edi, dword [edi]
push edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047702f
mov esp, ebp
pop ebp
ret
call fcn.0047c5ae
call fcn.0047c5ae
call fcn.0047c5ae
int3