Function at 0x411875
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push ebx
push esi
mov dword [ebp - 4], ecx
mov ecx, 0x473368
push edi
call fcn.00401f8b
push eax
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
jne 0x4118a6
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov esi, 0x473278
mov ecx, esi
call fcn.0040245c
push eax
mov ecx, esi
call fcn.00401f8b
push eax
push 0x208
lea eax, [ebp - 0x228]
mov edi, 0x473230
push eax
push str.exepath
mov ecx, edi
call fcn.00401f8b
mov edx, eax
call fcn.0041289d
add esp, 0x14
test al, al
jne 0x4118e9
push ebx
jmp 0x4118a0
lea ecx, [ebp - 0x1c]
call fcn.004020bf
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x228]
call fcn.0041a97c
push ebx
test al, al
je 0x4118a0
push 0x80
push 3
push ebx
push 1
push closesocket
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push dword [ebp - 4]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x46a4ac
mov ecx, edi
call fcn.00401f8b
mov edx, eax
call fcn.00412a1c
pop ecx
pop ecx
test al, al
je 0x41189e
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x228]
jne 0x411a36
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040245c
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00401f8b
mov edx, esi
mov ecx, eax
call fcn.0041a8e8
pop ecx
pop ecx
test al, al
je 0x4119b4
lea eax, [ebp - 0x228]
jmp 0x411a36
push 0x208
lea eax, [ebp - 0x638]
push ebx
push eax
call fcn.00435330
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x430]
push eax
push ebx
push str.temp_
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
push str..exe
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040245c
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00401f8b
mov edx, esi
mov ecx, eax
call fcn.0041a8e8
pop ecx
pop ecx
test al, al
je 0x411a43
lea eax, [ebp - 0x430]
push 1
push ebx
push ebx
push eax
push 0x4640d8
push ebx
call edi
mov esi, 0x473230
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 0x465364
call fcn.00401f8b
mov edx, eax
call fcn.004126ee
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x411a7d
push 0x465364
mov ecx, esi
call fcn.00401f8b
mov edx, eax
call fcn.00412b4e
pop ecx
jmp 0x411a88
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
test bl, bl
je 0x411a48
push dword [ebp - 4]
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x46a4ac
mov ecx, 0x473230
call fcn.00401f8b
mov edx, eax
call fcn.00412a1c
pop ecx
pop ecx
test al, al
jne 0x41196b
jmp 0x41189e