Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x408030]
mov dword [ebp - 4], eax
push 0x24
push str.NOTICE
push str.Do_you_want_to_proceed_with_installation_of_screen_saver_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x401031
xor eax, eax
jmp 0x4012bc
push 0x104
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x638]
push ecx
call fcn.00401353
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x64c], 0
jmp 0x401073
mov edx, dword [ebp - 0x64c]
add edx, 1
mov dword [ebp - 0x64c], edx
mov eax, dword [ebp - 0x64c]
cmp eax, dword [ebp - 0x21c]
jae 0x4010a6
mov ecx, dword [ebp - 0x64c]
movzx edx, word [ebp + ecx*2 - 0x638]
cmp edx, 0x5c
jne 0x4010a4
mov eax, dword [ebp - 0x64c]
mov word [ebp + eax*2 - 0x638], 0x2f
jmp 0x401064
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call fcn.00401353
add esp, 4
mov dword [ebp - 0x650], eax
jmp 0x4010e0
mov eax, dword [ebp - 0x650]
sub eax, 1
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
jbe 0x40115a
mov ecx, dword [ebp - 0x650]
movzx edx, word [ebp + ecx*2 - 0x210]
cmp edx, 0x2e
jne 0x401117
push 0x406194
mov eax, dword [ebp - 0x650]
lea ecx, [ebp + eax*2 - 0x20e]
push ecx
call fcn.00401337
add esp, 8
mov edx, dword [ebp - 0x650]
movzx eax, word [ebp + edx*2 - 0x210]
cmp eax, 0x5c
jne 0x401155
mov ecx, dword [ebp - 0x650]
lea edx, [ebp + ecx*2 - 0x20e]
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x654]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00401337
add esp, 8
jmp 0x40115a
jmp 0x4010d1
mov edx, dword [ebp - 0x21c]
mov word [ebp + edx*2 - 0x638], 0x2f
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp + ecx*2 - 0x636]
push edx
call fcn.00401337
add esp, 8
push 0x40619c
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x640]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x644], eax
mov ecx, dword [ebp - 0x644]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x638]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 1
jne 0x401200
push 0x34
push str.WARNING
push str.File_already_exit__overwrite_it_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x401200
xor eax, eax
jmp 0x4012bc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x42c], 0
mov ecx, dword [ebp - 0x640]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x648], eax
push 0
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x644]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp - 0x638]
push edx
push str.desk.cpl__InstallScreenSaver__s
lea eax, [ebp - 0x428]
push eax
call fcn.004012c8
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x428]
push ecx
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0040139a
mov esp, ebp
pop ebp
ret