Function at 0x42ae10
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f2a4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x440040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x44
mov dword [ebp - 0x14], 0
call fcn.0042b863
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x44
push 0
push edi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esi]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x24], 0
add esp, 0x10
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ae90
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.0040ecd0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
mov dword [edi], 0
mov dword [ebp - 4], 2
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 7
push str.Zen_Instance
push 0
push 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42af85
push str.It_appears_that_another_instance_of_Zen_is_already_running._r_n_r_nPlease_close_the_existing_instance_before_starting_a_new_one.
lea ecx, [ebp - 0x4c]
call fcn.00402600
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00421e40
lea ecx, [ebp - 0x4c]
call fcn.00402330
mov eax, dword [edi + 0x24]
test eax, eax
je 0x42af7d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
cmova ecx, edx
cmp esi, 7
jne 0x42affe
mov edx, str.updated
sub esi, 4
jb 0x42afb5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x42afba
add ecx, 4
add edx, 4
sub esi, 4
jae 0x42afa4
cmp esi, 0xfffffffc
je 0x42afee
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x42afe7
cmp esi, 0xfffffffd
je 0x42afee
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x42afe7
cmp esi, 0xfffffffe
je 0x42afee
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x42afe7
cmp esi, 0xffffffff
je 0x42afee
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x42afee
sbb eax, eax
or eax, 1
jmp 0x42aff0
xor eax, eax
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x42affe
mov dword [edi + 0x1c], 1
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [esi], edi
cmp ecx, 0xf
jbe 0x42b036
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42b02c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42b02c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b893
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4