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

Disassembly:
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r13, rdx
mov r15d, ecx
cmp byte [0x1400ef091], 0
je 0x14000def6
cmp ecx, dword [0x1400e9d00]
jle 0x14000d699
test ecx, ecx
jne 0x14000def6
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x210]
call fcn.140077610
lea rcx, [rsp + 0x210]
call fcn.14000efb0
nop
mov edx, r15d
lea rcx, [rsp + 0x90]
call fcn.14000b5e0
mov r14, rax
lea rcx, [rsp + 0x50]
call fcn.14000b840
mov rbx, rax
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.14003a420
mov rsi, rax
mov edi, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x210]
call fcn.140014430
mov rcx, rax
movzx edx, di
call fcn.140014b40
mov rdi, rax
test rax, rax
jne 0x14000d71c
xor ebx, ebx
mov ecx, ebx
jmp 0x14000d728
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
xor ebx, ebx
mov rdx, qword [rsi + 8]
call qword [rsi]
test rdi, rdi
jne 0x14000d738
mov rax, rbx
jmp 0x14000d742
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.140014430
mov rcx, rax
lea rdx, [0x1400bf530]
call fcn.1400148d0
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.14003a420
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.14000f950
mov rcx, rax
lea rdx, [0x1400bf528]
call fcn.1400148d0
mov rcx, rax
mov rdx, r13
call fcn.140014430
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000d7f8
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140012760
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov r8, qword [rsp + 0xa8]
cmp r8, 8
jb 0x14000d831
inc r8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.140012760
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x210]
call fcn.14000eee0
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, [0x1400bf538]
lea rcx, [rsp + 0x70]
call fcn.140011700
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, [0x1400bf20c]
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14000d94b
mov rsi, r9
mov r14, qword [rsp + 0x80]
mov rdi, rbx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, rdi
lea rcx, [rsp + 0x1f0]
call fcn.1400111d0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d94b
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.1400112f0
add rdi, r14
mov r9, qword [rsp + 0x40]
jmp 0x14000d8f1
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000d968
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140012760
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8, qword [rsp + 0x88]
cmp r8, 8
jb 0x14000d99b
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140012760
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, [0x1400bf540]
lea rcx, [rsp + 0x50]
call fcn.140011700
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, [0x1400bf548]
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14000da8d
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 + 0x1f0]
call fcn.1400111d0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000da8d
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.1400112f0
add rdi, r14
mov r9, qword [rsp + 0x40]
jmp 0x14000da33
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000daaa
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140012760
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000dada
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140012760
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov edx, r15d
lea rcx, [rsp + 0x1d0]
call fcn.14000bf40
nop
cmp qword [rsp + 0x1e0], 0
je 0x14000de2d
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 0x14000de10
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0xc0]
call fcn.140077610
lea rdx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0xc0]
call fcn.14000e300
nop
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0xd0]
shr eax, 2
test al, 1
jne 0x14000dbee
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0xc0]
call fcn.140014430
mov rcx, rax
call fcn.140014dd0
lea rcx, [rsp + 0xc8]
call fcn.140012140
test rax, rax
jne 0x14000dbee
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0xc0]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x14000dbe6
or edx, 4
xor r8d, r8d
call fcn.14000b070
lea rdi, [0x1400ef098]
mov r8, rdi
mov rsi, qword [0x1400ef098]
cmp qword [0x1400ef0b0], 8
cmovae r8, rsi
lea rcx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rcx, qword [rsp + 0x1d0]
mov r9, qword [0x1400ef0a8]
mov rdx, qword [rsp + 0x1e0]
call fcn.140011140
test eax, eax
je 0x14000dd25
cmp qword [0x1400ef0b0], 8
cmovae rdi, rsi
mov r8d, 0xa
mov rdx, rdi
lea rcx, [rsp + 0xc8]
call fcn.140012210
test rax, rax
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
jne 0x14000dc8e
lea rcx, [rsp + rcx + 0xc0]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x14000dca8
or edx, 4
jmp 0x14000dca8
lea r9, [rsp + 0xc0]
add rcx, r9
mov edx, ebx
mov eax, 4
cmp qword [rcx + 0x48], 0
cmove edx, eax
xor r8d, r8d
call fcn.14000b070
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0xd0]
shr eax, 2
test al, 1
jne 0x14000dd25
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0xc0]
call fcn.140014430
mov rcx, rax
call fcn.140014dd0
lea rcx, [rsp + 0xc8]
call fcn.140012140
test rax, rax
jne 0x14000dd25
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0xc0]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x14000dd1d
or edx, 4
xor r8d, r8d
call fcn.14000b070
cmp byte [0x1400ef093], 0
je 0x14000dd9f
test r15d, r15d
je 0x14000dd9f
mov r8d, 0xa
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.140014370
nop
cmp qword [rax + 0x18], 8
jb 0x14000dd54
mov rax, qword [rax]
mov rcx, rax
call fcn.140080974
nop
mov r8, qword [rsp + 0xa8]
cmp r8, 8
jb 0x14000dd83
inc r8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.140012760
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rcx, [rsp + 0x168]
call fcn.14000e270
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.14003a34c
nop
jmp 0x14000ddfc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000de3b
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 0x14000de2d
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 + 0x1e8]
cmp r8, 8
jb 0x14000de61
inc r8
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x1d0]
call fcn.140012760
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], rbx
mov word [rsp + 0x1d0], bx
mov r8, qword [rsp + 0x208]
cmp r8, 8
jb 0x14000dea3
inc r8
mov rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0x1f0]
call fcn.140012760
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], rbx
mov word [rsp + 0x1f0], bx
lea rcx, [rsp + 0x298]
call fcn.14000ef20
lea rax, [rsp + 0x298]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x298], rdi
lea rcx, [rsp + 0x298]
call fcn.14003a34c
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140056080
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret