Function at 0x140003f70
Capabilities:
Check mutex on windows
Register raw input devices
Set console window title

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14006e038]
xor rax, rsp
mov qword [rbp + 0x30], rax
cmp qword [0x140070bf8], 8
lea r8, [0x140070be0]
mov rbx, rcx
mov r14d, 1
cmovae r8, qword [0x140070be0]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003fea
lea r9d, [r14 + 0x2f]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.An_instance_of_DC_Prevent_is_already_running
call qword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [r14 - 9]
jmp 0x140004354
mov qword [rsp + 0x170], rdi
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, r14d
call fcn.14002124c
mov r9, rax
lea r8, [0x1400642dc]
lea rdx, str.CONOUT_
lea rcx, [0x140070bd8]
call fcn.140023a2c
xor ecx, ecx
call fcn.14002124c
mov r9, rax
lea r8, [0x1400642e8]
lea rdx, str.CONIN_
lea rcx, [0x140070bd8]
call fcn.140023a2c
mov qword [rsp + 0x60], r14
lea rdi, [0x140064210]
mov qword [rsp + 0x78], 0x14
lea r8, [rsp + 0x60]
movabs rax, 0xb000000000000000
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x80]
movaps xmm0, xmmword [rsp + 0x60]
lea rax, str.DCPrevent___Build_
mov qword [rsp + 0x70], rax
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rsp + 0x60], xmm0
call fcn.140006f30
cmp qword [rbp - 0x68], 8
lea rcx, [rbp - 0x80]
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400040fa
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040f5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004372
call fcn.14001af20
mov rdx, rdi
mov qword [rsp + 0x168], rsi
lea rcx, str.DCPrevent__https:__github.com_git_eternal__n__build:__ws__n_n
call fcn.140001190
xorps xmm0, xmm0
mov qword [rbp - 0x60], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm0
lea rax, [0x1400039c0]
movdqa xmmword [rbp - 0x30], xmm1
xor esi, esi
mov qword [rbp - 0x58], rax
lea rdi, str.Duels_DC_Prevent
mov qword [rbp - 0x50], rsi
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x20], rdi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rsi
mov rdx, rdi
mov qword [rsp + 0x40], 0xfffffffffffffffd
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, qword [rsp + 0x168]
mov rbx, rax
test rax, rax
jne 0x14000426f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x60], r14
lea r8, [rsp + 0x60]
mov dword [rsp + 0x78], eax
lea rdx, [rbp + 0x20]
mov qword [rbp + 0x28], 0x29
lea rcx, [rbp - 0x80]
movabs rax, 0x2000000000000000
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
lea rax, str.CreateWindowExW_failed_with_error_code_
movaps xmm0, xmmword [rsp + 0x60]
mov qword [rbp + 0x20], rax
movaps xmm1, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rsp + 0x60], xmm0
call fcn.140006f30
cmp qword [rbp - 0x68], 8
lea rdx, [rbp - 0x80]
lea r8, str.Info
cmovae rdx, qword [rbp - 0x80]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004265
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004260
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000436c
call fcn.14001af20
mov eax, 0xffffffff
jmp 0x14000434c
lea rcx, str.___Tray_successfully_created__n
call fcn.140001190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r9d, r9d
lea rdx, [0x140003980]
mov r8, rax
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov r8d, 0x10
mov dword [rbp + 0x20], 0x20001
mov edx, r14d
mov qword [0x140070c00], rax
lea rcx, [rbp + 0x20]
mov dword [rbp + 0x24], pe_nt_image_headers64
mov qword [rbp + 0x28], rbx
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400042ea
xor r9d, r9d
lea r8, str.Info
lea rdx, str.Failed_to_register_Raw_Input
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xffffffff
jmp 0x14000434c
lea rcx, str.___Raw_input_registered__n_n
call fcn.140001190
xorps xmm0, xmm0
lea rcx, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000434a
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140004320
xor eax, eax
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14001aac0
add rsp, 0x140
pop r14
pop rbx
pop rbp
ret
call fcn.1400238bc
int3
call fcn.1400238bc
int3