Function at 0x410670
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 0x49bd1a
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4cf500]
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 0x4106ac
push ebx
call eax
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.00477f60
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.0040bea0
mov esi, dword [ebp - 0x228]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410728
test al, 0x10
je 0x410731
cmp dword [ebp + 8], ebx
je 0x410932
push str._f__im__funshion.scr_
lea ecx, [ebp - 0x220]
call fcn.00401c90
push str.taskkill
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00401c90
push 0x38
lea edx, [ebp - 0x260]
push ebx
push edx
call fcn.00477f60
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], pe_nt_image_headers32
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 0x4107c8
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 0x4107ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x224]
call fcn.0040cd50
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ebx, str.FunScr_funshion.scr
mov byte [ebp - 4], 2
call fcn.004066b0
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 0x41083d
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 0x410864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4ab35c
lea ecx, [ebp - 0x220]
call fcn.00401c90
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.004176c0
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 0x4108c3
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.004176c0
add esp, 0x10
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x41090c
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov byte [ebp - 4], 4
call fcn.00414190
push 0x4a25c0
call fcn.00472e64
add esp, 4
mov byte [ebp - 4], bl
xor ecx, ecx
cmp ecx, 0x4da6c0
je 0x410932
mov edx, dword [0x4da6c0]
push edx
push 0x4ab35c
push str.funscreen
push str.Install_Fun_Screen
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [edi + 4]
test eax, eax
je 0x41093d
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 0x410960
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.00472ba1
mov esp, ebp
pop ebp
ret 8