Function at 0x14004c8cc
Capabilities:
Check mutex on windows
Create process on windows
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x8b0]
sub rsp, 0x9b0
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov eax, dword [rdx + 4]
mov esi, r8d
mov r9d, dword [rdx]
lea r8, str.LocalWinSpl64To32Mutex__x__x__x
mov r14, rcx
mov dword [rsp + 0x28], 0x2000
mov edx, 0x3c
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x10]
call fcn.14001243c
mov ebx, eax
test eax, eax
js 0x14004cb73
mov rcx, qword [0x1400ad2f8]
lea rbx, [0x1400ad2f8]
cmp rcx, rbx
je 0x14004c960
test byte [rcx + 0x44], 2
je 0x14004c960
mov rcx, qword [rcx + 0x38]
lea r9, [rbp - 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], esi
lea r8, [0x14009ecc0]
call fcn.14004cc94
lea r8, [rbp - 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x14004cb5e
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
jne 0x14004cafd
lea ebx, [rax + 0x68]
xor edx, edx
mov r8d, ebx
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rbp - 0x80], ebx
xor edx, edx
mov qword [rsp + 0x68], rax
mov r8d, 0x20a
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x78], rax
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x14004cadd
lea r9, [rbp + 0x70]
mov edx, 0x105
lea r8, str._ws_splwow64.exe
lea rcx, [rbp + 0x280]
call fcn.14001243c
mov ebx, eax
test eax, eax
js 0x14004caf2
lea r9, [rbp + 0x70]
mov dword [rsp + 0x20], esi
lea r8, str._ws_splwow64.exe__d
mov edx, 0x208
lea rcx, [rbp + 0x490]
call fcn.14001243c
mov ebx, eax
test eax, eax
js 0x14004caf2
and qword [rsp + 0x60], 0
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14004cadd
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x490]
lea rax, [rbp - 0x80]
mov rcx, r14
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x280]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xc000408
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
test eax, eax
je 0x14004cabb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14004cad0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004cad0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x14004caf2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004caf2
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
jmp 0x14004cb53
mov rcx, qword [0x1400ad2f8]
cmp rcx, rbx
je 0x14004cb28
test byte [rcx + 0x44], 1
je 0x14004cb28
mov rcx, qword [rcx + 0x38]
lea r9, [rbp - 0x10]
mov edx, 0xd
lea r8, [0x14009ecc0]
call fcn.140040874
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004cb3b
cmp byte [0x7ffe02d4], al
je 0x14004cb4e
lea rcx, str.Mutex_could_not_be_acquired_within_10_seconds_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14004cb73
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004cb73
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.14001aad0
add rsp, 0x9b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret