Function at 0x14000d690
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rax - 0x2a8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov r13, rdx
mov r15d, ecx
mov rdi, qword [rsp + 0x380]
cmp byte [0x1400ef0e1], 0
je 0x14000e0e6
cmp ecx, dword [0x1400e9cb8]
jle 0x14000d6f3
test ecx, ecx
jne 0x14000e0e6
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x230]
call fcn.140077860
lea rcx, [rsp + 0x230]
call fcn.14000f1c0
nop
xor ebx, ebx
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x1e8], rbx
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], rbx
mov word [rsp + 0x1d0], bx
cmp qword [rdi + 0x10], rbx
je 0x14000d83c
mov r8, rdi
lea rdx, str.___
lea rcx, [rsp + 0x30]
call fcn.140014520
nop
lea r8, [0x1400bf3c4]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400146e0
mov rdi, rax
lea rax, [rsp + 0x1d0]
cmp rax, rdi
je 0x14000d7da
mov r8, qword [rsp + 0x1e8]
cmp r8, 8
jb 0x14000d7ad
inc r8
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x1d0]
call fcn.1400129b0
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], rbx
mov word [rsp + 0x1d0], bx
mov rdx, rdi
lea rcx, [rsp + 0x1d0]
call fcn.140011c00
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000d7f7
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400129b0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000d827
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400129b0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000d856
mov r8d, 3
lea rdx, [0x1400bf3e0]
lea rcx, [rsp + 0x1d0]
call fcn.140011970
mov edx, r15d
lea rcx, [rsp + 0x90]
call fcn.14000b680
mov r14, rax
lea rcx, [rsp + 0x50]
call fcn.14000b8e0
mov rdi, rax
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.14003a5e4
mov rsi, rax
mov r12d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x230]
call fcn.140014760
mov rcx, rax
movzx edx, r12w
call fcn.140014ef0
mov rdi, rax
test rax, rax
jne 0x14000d8b7
mov rcx, rbx
jmp 0x14000d8c1
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [rsi + 8]
call qword [rsi]
test rdi, rdi
jne 0x14000d8d1
mov rax, rbx
jmp 0x14000d8db
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
add rax, rdi
and dword [rax + 0x18], 0xfffffe7f
or dword [rax + 0x18], 0x40
mov rdx, r14
mov rcx, rdi
call fcn.140014760
mov rcx, rax
lea rdx, [0x1400bf3e8]
call fcn.140014c80
mov rdi, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov eax, 0x30
mov word [rdx + rdi + 0x58], ax
mov rcx, qword [rdi]
movsxd rdx, dword [rcx + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff9ff
or dword [rdx + 0x18], 0x800
lea edx, [rax - 0x28]
lea rcx, [rsp + 0x70]
call fcn.14003a5e4
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov rcx, rdi
call fcn.14000fb40
mov rcx, rax
lea rdx, [rsp + 0x1d0]
call fcn.140014760
mov rcx, rax
mov rdx, r13
call fcn.140014760
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000d992
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400129b0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov r8, qword [rsp + 0xa8]
cmp r8, 8
jb 0x14000d9cb
inc r8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.1400129b0
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x230]
call fcn.14000f0f0
nop
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], rbx
mov word [rsp + 0x70], bx
mov r8d, 2
lea rdx, [0x1400bf3f0]
lea rcx, [rsp + 0x70]
call fcn.140011970
nop
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8d, 1
lea rdx, [0x1400bf0ac]
lea rcx, [rsp + 0x30]
call fcn.140011970
nop
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14000daea
mov rsi, r9
mov r14, qword [rsp + 0x80]
mov rdi, rbx
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, rdi
lea rcx, [rsp + 0x210]
call fcn.140011440
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000daea
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.140011560
add rdi, r14
mov r9, qword [rsp + 0x40]
jmp 0x14000da90
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000db07
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400129b0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8, qword [rsp + 0x88]
cmp r8, 8
jb 0x14000db3a
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400129b0
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], rbx
mov word [rsp + 0x70], bx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov r8d, 2
lea rdx, [0x1400bf3f8]
lea rcx, [rsp + 0x50]
call fcn.140011970
nop
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8d, 1
lea rdx, [0x1400bf400]
lea rcx, [rsp + 0x30]
call fcn.140011970
nop
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14000dc2c
mov rsi, r9
mov r14, qword [rsp + 0x60]
mov rdi, rbx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, rdi
lea rcx, [rsp + 0x210]
call fcn.140011440
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000dc2c
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.140011560
add rdi, r14
mov r9, qword [rsp + 0x40]
jmp 0x14000dbd2
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000dc49
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400129b0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000dc79
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400129b0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov edx, r15d
lea rcx, [rsp + 0x1f0]
call fcn.14000bff0
nop
cmp qword [rsp + 0x200], 0
je 0x14000dfdb
lea r8, str.GlobalPdsmqLoggingMutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
mov qword [rsp + 0x70], rax
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000dfbe
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0xc0]
call fcn.140077860
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0xc0]
call fcn.14000e490
nop
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0xd0]
shr eax, 2
test al, 1
jne 0x14000dd93
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0xc0]
call fcn.140014760
mov rcx, rax
call fcn.140015180
lea rcx, [rsp + 0xc8]
call fcn.1400123f0
test rax, rax
jne 0x14000dd93
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0xc0]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.14000b100
lea rdi, [0x1400ef0e8]
mov r8, rdi
mov rsi, qword [0x1400ef0e8]
mov r12, qword [0x1400ef100]
cmp r12, 8
cmovae r8, rsi
lea rcx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rcx, qword [rsp + 0x1f0]
mov r9, qword [0x1400ef0f8]
mov rdx, qword [rsp + 0x200]
call fcn.1400113b0
test eax, eax
je 0x14000ded3
cmp r12, 8
cmovae rdi, rsi
mov r8d, 0xa
mov rdx, rdi
lea rcx, [rsp + 0xc8]
call fcn.1400124c0
test rax, rax
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
jne 0x14000de38
lea r9, [rsp + 0xc0]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
jmp 0x14000de50
lea rax, [rsp + 0xc0]
add rcx, rax
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, ebx
xor r8d, r8d
call fcn.14000b100
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0xd0]
shr eax, 2
test al, 1
jne 0x14000ded3
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0xc0]
call fcn.140014760
mov rcx, rax
call fcn.140015180
lea rcx, [rsp + 0xc8]
call fcn.1400123f0
test rax, rax
jne 0x14000ded3
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0xc0]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.14000b100
cmp byte [0x1400ef0e3], 0
je 0x14000df4d
test r15d, r15d
je 0x14000df4d
mov r8d, 0xa
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.140014650
nop
cmp qword [rax + 0x18], 8
jb 0x14000df02
mov rax, qword [rax]
mov rcx, rax
call fcn.140080774
nop
mov r8, qword [rsp + 0xa8]
cmp r8, 8
jb 0x14000df31
inc r8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.1400129b0
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rcx, [rsp + 0x168]
call fcn.14000e400
lea rax, [rsp + 0x168]
mov qword [rsp + 0x30], rax
lea rsi, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + 0x168], rsi
lea rdi, vtable.std::ios_base.0
mov qword [rsp + 0x168], rdi
lea rcx, [rsp + 0x168]
call fcn.14003a510
nop
jmp 0x14000dfaa
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000dfe9
lea rcx, str.ERROR:_Logger_mutex_timed_out__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000dfdb
call qword [sym.imp.KERNEL32.dll_DebugBreak]
lea rdi, vtable.std::ios_base.0
lea rsi, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov r8, qword [rsp + 0x208]
cmp r8, 8
jb 0x14000e00f
inc r8
mov rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0x1f0]
call fcn.1400129b0
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], rbx
mov word [rsp + 0x1f0], bx
mov r8, qword [rsp + 0x228]
cmp r8, 8
jb 0x14000e051
inc r8
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x210]
call fcn.1400129b0
mov qword [rsp + 0x228], 7
mov qword [rsp + 0x220], rbx
mov word [rsp + 0x210], bx
mov r8, qword [rsp + 0x1e8]
cmp r8, 8
jb 0x14000e093
inc r8
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x1d0]
call fcn.1400129b0
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], rbx
mov word [rsp + 0x1d0], bx
lea rcx, [rsp + 0x2b8]
call fcn.14000f130
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2b8], rdi
lea rcx, [rsp + 0x2b8]
call fcn.14003a510
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret