Function at 0x418ff0
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adec5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CSBRIP202303291540mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
cmp eax, 0xb7
jne 0x41905f
test esi, esi
je 0x419045
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push eax
push str.HandleReplaceBrowserSetupPack
push str._s:CreateMutex___alreadly_run:_d
call fcn.00404c50
add esp, 0xc
jmp 0x4191e6
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004187c0
test eax, eax
je 0x41914f
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4190b8
test ecx, ecx
je 0x419155
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp word [eax], 0
je 0x419155
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41914f
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edx, 0x100401
cmovae ecx, dword [ebp - 0x40]
call fcn.00425800
mov edi, eax
test edi, edi
je 0x41911d
push 0xea60
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419116
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x419166
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4191a2
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419192
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419203
push edx
push ecx
call fcn.0044b3bd
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4191e6
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4191dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419203
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
int3