Function at 0x1400a1ae0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x140154e70]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
lea r8, str.com_rarksy_apps_deadbydaylightcompanion
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400a1b32
mov eax, 1
jmp 0x1400a1f6f
mov qword [rsp + 0x310], rbx
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x320], rdi
mov qword [rsp + 0x328], r12
mov qword [rsp + 0x2f0], r14
call fcn.1400cfae0
test eax, eax
jne 0x1400a1b80
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Failed_to_initialize_GLFW._n
call fcn.140003280
jmp 0x1400a1f42
mov edx, 3
mov ecx, 0x22002
call fcn.1400d0df0
mov edx, 3
mov ecx, 0x22003
call fcn.1400d0df0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov dword [0x14033c630], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
mov dword [0x14033c62c], eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0xd0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400a1bf0
mov qword [rsp + 0x78], rax
call fcn.1400eda78
movaps xmm0, xmmword [rsp + 0x70]
lea r8, [rsp + 0x70]
mov edx, eax
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x70]
call fcn.140003e50
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
lea r11, [rcx + rax*2]
mov rdx, r11
mov r10, r11
call fcn.140003f90
cmp rax, r11
je 0x1400a1c7e
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400a1c53
cmp cx, 0x2f
jne 0x1400a1c5c
add rax, 2
cmp rax, r11
jne 0x1400a1c44
cmp rax, r11
je 0x1400a1c7e
movzx edx, word [r10 - 2]
lea rcx, [r10 - 2]
cmp dx, 0x5c
je 0x1400a1c7e
cmp dx, 0x2f
je 0x1400a1c7e
mov r10, rcx
cmp rax, rcx
jne 0x1400a1c61
sub r11, r10
lea rcx, [rsp + 0x50]
sar r11, 1
xorps xmm0, xmm0
xor r12d, r12d
mov r8, r11
mov rdx, r10
mov qword [rsp + 0x60], r12
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], r12
call fcn.14000eef0
cmp qword [rsp + 0x68], 8
lea rsi, [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
cmovae rsi, qword [rsp + 0x50]
call fcn.1400eda78
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0xf
mov r14d, eax
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x30], r12b
test rdi, rdi
je 0x1400a1d57
cmp rdi, 0x7fffffff
ja 0x1400a2216
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400edae8
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x1400a221c
movsxd rdx, ebx
lea rcx, [rsp + 0x30]
xor r8d, r8d
call fcn.14000a950
cmp qword [rsp + 0x48], 0x10
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x20], ebx
cmovae r9, qword [rsp + 0x30]
mov rdx, rsi
mov ecx, r14d
call fcn.1400edae8
shr rax, 0x20
test eax, eax
jne 0x1400a220e
lea rdx, [rsp + 0x30]
lea rcx, [0x140337c28]
call fcn.140021fa0
lea rcx, [rsp + 0x30]
call fcn.14000a8f0
lea rcx, [rsp + 0x50]
call fcn.14000a880
lea rcx, [rbp - 0x70]
call fcn.14000a880
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0xd0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x1400a1da0
mov qword [rsp + 0x78], rax
call fcn.1400eda78
movaps xmm0, xmmword [rsp + 0x70]
lea r8, [rsp + 0x70]
mov edx, eax
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x50]
call fcn.140003e50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400a1630
mov rdx, rax
lea rcx, [0x140337c88]
call fcn.140008fa0
lea rcx, [rsp + 0x30]
call fcn.14000a880
lea rcx, [rsp + 0x50]
call fcn.14000a880
lea rdx, [rsp + 0x70]
lea rcx, [0x140337c88]
call fcn.1400042c0
cmp qword [0x140337cf0], 0x10
lea rdx, str.DBDC_
mov r8, qword [0x140337ce8]
mov rcx, rax
cmovae rdx, qword [str.DBDC_]
call fcn.140009050
mov qword [rsp + 0x40], r12
lea rdx, [0x140337c08]
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
cmp qword [0x140337c20], 0x10
mov r8, qword [0x140337c18]
cmovae rdx, qword [0x140337c08]
call fcn.140009050
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x68], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
call fcn.1400a19d0
lea rcx, [rsp + 0x50]
call fcn.14000a8f0
lea rcx, [rsp + 0x30]
call fcn.14000a8f0
lea rcx, [rsp + 0x70]
call fcn.14000a8f0
xor edx, edx
mov ecx, 0x20003
call fcn.1400d0df0
xor r9d, r9d
mov qword [rsp + 0x20], r12
lea r8, str.Dead_By_Daylight_Companion
mov edx, 0x1f4
mov ecx, 0x2ee
call fcn.1400d1600
mov rbx, rax
test rax, rax
jne 0x1400a1f89
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Failed_to_create_GLFW_window._n
call fcn.140003280
call fcn.1400cfc30
mov qword [0x14033c3b0], r12
mov eax, 0xffffffff
mov r12, qword [rsp + 0x328]
mov rdi, qword [rsp + 0x320]
mov rsi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x310]
mov r14, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400ee850
add rsp, 0x2f8
pop r15
pop rbp
ret
mov rcx, rbx
call fcn.1400ce5e0
mov ecx, 1
call fcn.1400ce780
lea rax, [0x140154f90]
mov qword [0x14033c3b0], rbx
mov qword [rbp + 0xc0], rax
lea r9, [rbp - 0x20]
mov qword [rbp + 0xb0], rax
lea r8, [rbp - 0x3c]
lea rax, [0x14016c437]
mov qword [rbp], r12
lea rdx, [rbp - 0x40]
mov qword [rbp + 0xc8], rax
lea rcx, [rbp - 0x10]
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0x20], r12d
mov dword [rbp + 0xa8], r12d
mov dword [rsp + 0x20], r12d
call fcn.140025ed0
mov ecx, dword [rbp - 0x40]
lea r8, [rbp - 0x50]
mov dword [rbp - 0x50], ecx
mov edx, 1
mov ecx, dword [rbp - 0x3c]
mov dword [rbp - 0x4c], ecx
mov rcx, qword [0x14033c3b0]
mov qword [rbp - 0x48], rax
call fcn.1400d1c10
mov rcx, qword [0x14033c3b0]
lea rdx, [0x14033c648]
call fcn.1400065a0
mov ecx, 1
call fcn.1400ee870
lea rcx, [rbp - 0x28]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400a23f0]
xor ecx, ecx
mov dword [rsp + 0x20], r12d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400a21fe
cmp dword [rbp - 0x28], r12d
jne 0x1400a2078
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x30]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400a209a
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
lea r8, [0x14033c66c]
mov edx, 0x14d
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [0x14016cb00]
call fcn.140035e20
lea r8, [0x14033c660]
mov edx, 0x180
lea rcx, [0x14016c710]
call fcn.140035e20
lea r8, [0x14033c668]
mov edx, 0x14f
lea rcx, [0x14016c890]
call fcn.140035e20
lea r8, [0x14033c658]
mov edx, 0x1b2
lea rcx, [0x14016cd70]
call fcn.140035e20
lea r8, [0x14033c670]
mov edx, 0x151
lea rcx, [0x14016c440]
call fcn.140035e20
lea r8, [0x14033c65c]
mov edx, 0x11b
lea rcx, [0x14016cc50]
call fcn.140035e20
lea r8, [0x14033c664]
mov edx, 0x112
lea rcx, [0x14016c9e0]
call fcn.140035e20
lea r8, [0x14033c674]
mov edx, 0x16f
lea rcx, [0x14016c5a0]
call fcn.140035e20
call fcn.1400b2640
mov rcx, qword [0x14033c638]
test rcx, rcx
je 0x1400a21a3
call fcn.1400d19c0
mov rax, qword [0x14033c640]
mov qword [0x14033c3e8], rax
mov qword [0x14033c638], r12
call fcn.1400748b0
call fcn.140075590
mov rcx, qword [0x14033c640]
call fcn.14003c410
mov rax, qword [0x14033c648]
mov qword [0x14033c3e8], rax
call fcn.1400748b0
call fcn.140075590
mov rcx, qword [0x14033c648]
call fcn.14003c410
mov rcx, qword [0x14033c3b0]
call fcn.1400d19c0
call fcn.1400cfc30
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp - 0x28], r12d
je 0x1400a21f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
jmp 0x1400a1f47
mov ecx, 6
mov dword [rbp - 0x28], r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, eax
call fcn.140003e10
int3
call fcn.140003930
int3
mov ecx, eax
call fcn.140003e10
int3