Function at 0x14003aae8
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
movzx ebp, r15w
lea ecx, [r15 + 0x3a]
cmp rdx, r15
je 0x14003ab5a
cmp word [rdx], r15w
je 0x14003ab5a
cmp cx, word [rdx + 2]
jne 0x14003ab5a
cmp word [rdx + 4], r15w
je 0x14003ab57
lea eax, [rcx + 0x22]
cmp ax, word [rdx + 4]
jne 0x14003ab5a
cmp word [rdx + 6], r15w
jne 0x14003ab5a
mov bp, word [rdx]
mov eax, 0xff
mov word [rsp + 0xf0], ax
mov word [rsp + 0xf2], cx
mov word [rsp + 0xf4], r15w
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + rax + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400632b0
nop
mov r13, qword [rsp + 0x58]
mov dword [rsp + 0x80], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x88]
call fcn.14010c6c0
or dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], r15w
mov r12d, 8
movdqu xmm0, xmmword [str..D:]
movdqu xmmword [rsp + 0xf8], xmm0
lea r8, str.ImDiskFormat
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
cmp bp, r15w
je 0x14003abff
mov word [rsp + 0xf0], bp
jmp 0x14003ac23
mov rcx, rdi
call fcn.14002ee50
mov ebx, eax
cmp eax, r15d
jge 0x14003ac15
neg ebx
jmp 0x14003ae7e
call qword [0x14019c110]
mov word [rsp + 0xf0], ax
mov r9d, ebx
lea r8, str.DeviceImDisk_u
mov edx, 0x103
lea rcx, [rsp + 0x110]
call fcn.14010e29c
cmp word [rsp + 0xf0], r15w
je 0x14003ae63
cmp bp, r15w
jne 0x14003ac78
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0xf0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
cmp eax, r15d
je 0x14003ae63
lea rdx, str.format.com
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0xf0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x140146d20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x22
lea r15d, [rdi - 0x20]
cmp di, word [rsi]
jne 0x14003acd7
add rsi, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
cmp eax, ecx
jle 0x14003acd7
cdqe
cmp di, word [rsi + rax*2 - 2]
jne 0x14003acd7
mov word [rsi + rax*2 - 2], cx
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x140149b64]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
xor esi, esi
cmp rax, rsi
jne 0x14003ad0a
lea rdx, str.__y
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
movzx eax, word [rsp + 0xf0]
mov word [rsp + 0x100], ax
mov edi, 0x12b
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14003ad65
lea edx, [rax + 0x65]
lea rcx, [0x14019c170]
call fcn.14002bb1c
sub edi, 1
jns 0x14003ad1f
jmp 0x14003ad6e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x1d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x14003adc9
lea rcx, str.Cannot_format_drive:
call fcn.14002ecf8
sub r15d, 1
js 0x14003ae27
jmp 0x14003ae0c
mov dword [rsp + 0x50], esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov r12d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], esi
je 0x14003ae2e
mov edx, 0x64
lea rcx, [0x14019c170]
call fcn.14002bb1c
sub edi, 1
js 0x14003ae2e
jmp 0x14003ad73
mov ebx, 8
jmp 0x14003ae7e
xor r15d, r15d
cmp bp, r15w
jne 0x14003ae51
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0xf0]
lea ecx, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
xor r9d, r9d
xor edx, edx
mov r8d, 0x10000
mov ecx, ebx
call fcn.14002fc70
cmp r14, r15
je 0x14003ae7b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ebx, r12d
lea rcx, [rsp + 0x58]
call fcn.14005b520
mov eax, ebx
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x388]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret