Function at 0x416940
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a75a
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4ce4e0]
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 edi, ecx
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x41697c
push ebx
call eax
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.00478ba0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
push str._sFunshion.scr
push ecx
mov dword [ebp - 4], ebx
call fcn.0040c2b0
mov esi, dword [ebp - 0x228]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4169f8
test al, 0x10
je 0x416a01
cmp dword [ebp + 8], ebx
je 0x416c02
push str._f__im__funshion.scr_
lea ecx, [ebp - 0x220]
call fcn.00401ba0
push str.taskkill
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00401ba0
push 0x38
lea edx, [ebp - 0x260]
push ebx
push edx
call fcn.00478ba0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea edx, [ebp - 0x264]
push edx
mov dword [ebp - 0x264], 0x3c
mov dword [ebp - 0x260], 0x100
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x248], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x224]
call fcn.0040d160
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ebx, str.FunScr_funshion.scr
mov byte [ebp - 4], 2
call fcn.00406650
mov eax, dword [eax]
add esp, 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416b0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor bl, bl
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4aa1c4
lea ecx, [ebp - 0x220]
call fcn.00401ba0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x80000001
mov edx, str.ScreenSaveActive
mov ecx, str.Control_PanelDesktop
call fcn.00411900
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0x80000001
mov edx, str.SCRNSAVE.EXE
mov ecx, str.Control_PanelDesktop
call fcn.00411900
add esp, 0x10
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x416bdc
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov byte [ebp - 4], 4
call fcn.0040e8d0
push 0x4a1340
call fcn.00473c75
add esp, 4
mov byte [ebp - 4], bl
xor ecx, ecx
cmp ecx, 0x4d96d4
je 0x416c02
mov edx, dword [0x4d96d4]
push edx
push 0x4aa1c4
push str.funscreen
push str.Install_Fun_Screen
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [edi + 4]
test eax, eax
je 0x416c0d
push 1
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004739b2
mov esp, ebp
pop ebp
ret 8