Function at 0x14004af10
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 [0x1400b57a8]
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.14000d8dc
mov ebx, eax
test eax, eax
js 0x14004b217
mov rcx, qword [str._S_v_]
lea rbx, str._S_v_
cmp rcx, rbx
je 0x14004afa4
test byte [rcx + 0x44], 2
je 0x14004afa4
mov rcx, qword [rcx + 0x38]
lea r9, [rbp - 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], esi
lea r8, [0x1400a6c40]
call fcn.14004b354
lea r8, [rbp - 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14004b1fc
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
jne 0x14004b183
xor edx, edx
lea r8d, [rax + 0x64]
lea rcx, [rbp - 0x7c]
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x68
xor eax, eax
lea rcx, [rbp + 0x70]
xor edx, edx
mov qword [rsp + 0x78], rax
mov r8d, 0x20a
movups xmmword [rsp + 0x68], xmm0
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]
nop dword [rax + rax]
test eax, eax
je 0x14004b157
lea r9, [rbp + 0x70]
mov edx, 0x105
lea r8, str._ws_splwow64.exe
lea rcx, [rbp + 0x280]
call fcn.14000d8dc
mov ebx, eax
test eax, eax
js 0x14004b172
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.14000d8dc
mov ebx, eax
test eax, eax
js 0x14004b172
and qword [rsp + 0x60], 0
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
nop dword [rax + rax]
test eax, eax
je 0x14004b157
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]
nop dword [rax + rax]
test eax, eax
je 0x14004b129
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14004b144
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004b144
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
jmp 0x14004b172
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004b172
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
nop dword [rax + rax]
jmp 0x14004b1eb
mov rcx, qword [str._S_v_]
cmp rcx, rbx
je 0x14004b1ae
test byte [rcx + 0x44], 1
je 0x14004b1ae
mov rcx, qword [rcx + 0x38]
lea r9, [rbp - 0x10]
mov edx, 0xd
lea r8, [0x1400a6c40]
call fcn.14003e6b0
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
nop dword [rax + rax]
test eax, eax
jne 0x14004b1c7
cmp byte [0x7ffe02d4], al
je 0x14004b1e6
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]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
nop dword [rax + rax]
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14004b217
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004b217
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140012c90
add rsp, 0x9b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret