Function at 0x407fd0
Capabilities:
Check mutex on windows
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d7b2
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x48f00c]
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 dword [ebp - 0x8b8], edx
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x480bdc
push esi
call edi
test eax, eax
jne 0x4080eb
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00434c70
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
add esp, 0xc
push 0x104
push eax
push 0
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x628]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push str.TutorUpdate.exe
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call ebx
lea eax, [ebp - 0x218]
push eax
call edi
push str.TutorUpdate_new.exe
lea eax, [ebp - 0x218]
push eax
call esi
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4080e3
sub esp, 0x10
lea edx, [ebp - 0x218]
push str._install
call fcn.00428300
add esp, 0x14
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x40857b
or eax, 0xffffffff
jmp 0x40857b
push str._onlyCopy
push esi
call edi
neg eax
mov dword [ebp - 0x928], 0x4801c4
xorps xmm0, xmm0
mov dword [ebp - 0x914], 0
sbb eax, eax
mov dword [ebp - 0x910], 0
inc eax
mov dword [ebp - 0x8b4], eax
movups xmmword [ebp - 0x924], xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x928]
mov esi, dword [0x493bb8]
add esi, 0x10
mov dword [ebp - 0x8b0], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x493cdc]
mov dword [ebp - 0x8ac], eax
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.0040c550
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.GlobalTutorSetup
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4081b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x480c88
push str.ck_WL
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x408532
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x480cb4
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4081fc
mov ebx, 1
jmp 0x40821a
push 1
push 0x480c88
push 0x480cc8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
cmp eax, ecx
cmove ebx, ecx
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x640]
call fcn.00428aa0
mov esi, eax
xor eax, eax
mov dword [ebp - method.el::base::Writer.virtual_0], vtable.el::base::Writer.0
mov dword [ebp - 0x8ec], 0x80
mov dword [ebp - 0x8e8], str.UnInstall.cpp
mov dword [ebp - 0x8e4], 0x4d
mov dword [ebp - 0x8e0], str.int___cdecl_Run_wchar_t__int_
mov word [ebp - 0x8dc], ax
mov dword [ebp - 0x8d8], eax
mov byte [ebp - 0x8d4], al
mov dword [ebp - 0x8d0], eax
mov dword [ebp - 0x8cc], 0x4808d2
mov dword [ebp - 0x8c8], 2
mov dword [ebp - 0x8c4], eax
mov dword [ebp - 0x8c0], eax
mov dword [ebp - 0x8bc], eax
push str.default
lea eax, [ebp - 0x8f0]
mov byte [ebp - 4], 2
push 1
push eax
call fcn.0041eaa0
add esp, 0xc
mov dword [ebp - 0x8ac], eax
cmp byte [eax + 0x1c], 0
je 0x4082f0
push str.file_
lea ecx, [eax + 0x20]
call fcn.00407ca0
mov eax, dword [ebp - 0x8ac]
cmp byte [eax + 0x1c], 0
je 0x4082f0
cmp dword [esi + 0x14], 0x10
jb 0x4082e7
mov esi, dword [esi]
push esi
lea ecx, [eax + 0x20]
call fcn.00407ca0
lea ecx, [ebp - 0x8f0]
call fcn.00407d40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x62c]
cmp eax, 0x10
jb 0x40831d
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00409f90
test ebx, ebx
je 0x40852b
push 0x480cb4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40846d
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ecx
lea eax, [ebp - 0x8ac]
mov esi, 0x82
push eax
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.00407e80
test eax, eax
js 0x4083b2
mov eax, dword [ebp - 0x8ac]
sub esi, eax
push ecx
push 0x480cb4
push ecx
lea ecx, [ebp - 0x218]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00407ef0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x408402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8b4], 0
mov esi, 1
jne 0x4083f6
sub esp, 0x10
lea edx, [ebp - 0x218]
push 0
call fcn.00428300
add esp, 0x14
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
jmp 0x408535
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x8f0]
mov ebx, eax
push str.int___cdecl_Run_wchar_t__int_
push 0x65
push str.UnInstall.cpp
push 0x10
call fcn.00407cf0
push str.default
push 1
push eax
mov byte [ebp - 4], 3
call fcn.0041eaa0
mov esi, eax
add esp, 0xc
cmp byte [esi + 0x1c], 0
je 0x40845e
push str.fail_to_copy_uninst.exe:
lea ecx, [esi + 0x20]
call fcn.00407ca0
cmp byte [esi + 0x1c], 0
je 0x40845e
push ebx
lea ecx, [esi + 0x20]
call fcn.00407c50
lea ecx, [ebp - 0x8f0]
mov byte [ebp - 4], 0
call fcn.00407d40
lea ecx, [ebp - 0x8a8]
call fcn.00403330
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8a8]
call fcn.00408a40
test eax, eax
jne 0x4084f3
sub esp, 8
lea ecx, [ebp - 0x8f0]
push str.int___cdecl_Run_wchar_t__int_
push 0x6d
push str.UnInstall.cpp
push 0x10
call fcn.00407cf0
push str.default
push 1
push eax
mov byte [ebp - 4], 5
call fcn.0041eaa0
add esp, 0xc
cmp byte [eax + 0x1c], 0
je 0x4084d1
push str.Main_dialog_creation_failed
lea ecx, [eax + 0x20]
call fcn.00407ca0
lea ecx, [ebp - 0x8f0]
call fcn.00407d40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x8a8]
or esi, 0xffffffff
call fcn.004034d0
jmp 0x408535
push dword [ebp - 0x8b8]
push dword [ebp - 0x8a4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x928]
call fcn.0040c480
mov esi, eax
call fcn.0040c330
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x8a8]
call fcn.004034d0
jmp 0x408535
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [ebp - 0x918]
test eax, eax
je 0x408552
push eax
call fcn.004378b7
add esp, 4
mov dword [ebp - 0x918], 0
mov eax, dword [ebp - 0x924]
mov dword [ebp - 0x914], 0
mov dword [ebp - 0x910], 0
test eax, eax
je 0x408579
push eax
call fcn.004378b7
add esp, 4
mov eax, esi
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.0042fe16
mov esp, ebp
pop ebp
ret