Function at 0x416690
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fba5
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4bf1d0]
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]
test eax, eax
je 0x4166cb
push 0
call eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.0046d5a0
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 - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
push str._sFunshion.scr
push ecx
mov dword [ebp - 4], 0
call fcn.0040c7b0
mov esi, dword [ebp - 0x22c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41674b
test al, 0x10
je 0x416755
cmp dword [ebp + 8], 0
je 0x416967
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push str._f__im__funshion.scr_
call fcn.00401c30
push str.taskkill.exe
call fcn.0040b690
lea ecx, [ebp - 0x228]
call fcn.0040d6e0
push eax
lea edx, [ebp - 0x224]
push edx
mov ebx, str.FunScr_funshion.scr
mov byte [ebp - 4], 1
call fcn.00406530
mov eax, dword [eax]
add esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
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 0x4167c2
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a0754
lea ecx, [ebp - 0x220]
call fcn.00401c30
mov byte [ebp - 4], 2
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.00410d20
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 0x416848
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.00410d20
add esp, 0x10
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x416891
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov byte [ebp - 4], 3
call fcn.004116f0
push 0x4977c0
call fcn.00469dbe
add esp, 4
mov byte [ebp - 4], bl
xor ecx, ecx
cmp ecx, 0x4c9f9c
je 0x416967
push 0x4a0754
lea ecx, [ebp - 0x224]
call fcn.00401c30
mov bl, 4
push str.funscreen
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.00401c30
push str.Install_Fun_Screen
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.00401c30
mov edx, dword [0x4c9f9c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x220]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x41691c
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
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 0x416967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 4]
test eax, eax
je 0x416972
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 0x416995
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.00469afb
mov esp, ebp
pop ebp
ret 8