Function at 0x14010d370
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, edx
mov r12, rcx
xor r13d, r13d
mov r15d, r13d
mov dword [rsp + 0x48], r13d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r12], rax
mov dword [r12 + 0xc], ebx
mov dword [r12 + 8], r13d
test rax, rax
jne 0x14010d8bd
lea rdi, str.format_specifier_doesnt_match_argument_type
lea r14, [0x1403c8f48]
test al, al
jne 0x14010d43a
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.14010a1d0
mov rbx, rax
or r15d, 1
mov dword [rsp + 0x48], r15d
cmp dword [0x140575068], 0
je 0x14010d41e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x140575068]
je 0x14010d41e
call fcn.140136fe0
jmp 0x14010d425
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x14010d43a
mov rcx, rbx
call fcn.140136b60
cmp eax, 6
jb 0x14010d43a
mov bl, 1
jmp 0x14010d43c
xor bl, bl
test r15b, 1
je 0x14010d459
and r15d, 0xfffffffe
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x70]
call fcn.14000e160
test bl, bl
je 0x14010d8bd
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
call fcn.14010aa30
mov qword [rbp - 0x70], rax
call fcn.14010aa30
mov qword [rbp - 0x68], rax
mov r8, 0xffffffffffffffff
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rbp - 0x60]
call fcn.14010f8e0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140138150
mov rsi, rax
mov qword [rsp + 0x58], rax
mov dword [rbp - 0x40], 6
lea rbx, str.C:ProjectwxWidgets_3.2.2.1_srcmsw_thread.cpp
mov qword [rbp - 0x38], rbx
lea rax, [0x1403c9118]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x30], 0xc9
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp - 8], eax
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], r13
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
mov r9d, 1
lea r8, [rbp - 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14010d0f0
mov rbx, rax
mov qword [rsp + 0x50], rsi
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.1401448b0
mov ecx, eax
and eax, 6
cmp eax, ecx
je 0x14010d58c
cmp qword [0x14055a4b8], 0
je 0x14010d58c
mov qword [rsp + 0x20], rdi
lea r9, str._argtype___wxFormatString::Arg_String____argtype
lea r8, str.wxArgNormalizerWchar_class_wxString_const__::wxArgNormalizerWchar
mov edx, 0x230
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14010d58c
mov byte [0x1405750a8], 0
int3
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1401448b0
mov ecx, eax
and eax, 9
cmp eax, ecx
je 0x14010d5e2
cmp qword [0x14055a4b8], 0
je 0x14010d5e2
mov qword [rsp + 0x20], rdi
lea r9, str._argtype___wxFormatStringSpecifier_T_::value____argtype
lea r8, str.wxArgNormalizer_long_::wxArgNormalizer
mov edx, 0x1e4
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14010d5e2
mov byte [0x1405750a8], 0
int3
mov edx, 3
lea rcx, [rbp - 0x70]
call fcn.1401448b0
mov ecx, eax
and eax, 6
cmp eax, ecx
je 0x14010d638
cmp qword [0x14055a4b8], 0
je 0x14010d638
mov qword [rsp + 0x20], rdi
lea r9, str._argtype___wxFormatStringSpecifier_T_::value____argtype
lea r8, str.wxArgNormalizer_wchar_t_const__::wxArgNormalizer
mov edx, 0x1e4
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14010d638
mov byte [0x1405750a8], 0
int3
mov edx, 2
lea rcx, [rbp - 0x70]
call fcn.1401448b0
mov ecx, eax
and eax, 9
cmp eax, ecx
je 0x14010d68e
cmp qword [0x14055a4b8], 0
je 0x14010d68e
mov qword [rsp + 0x20], rdi
lea r9, str._argtype___wxFormatStringSpecifier_T_::value____argtype
lea r8, str.wxArgNormalizer_int_::wxArgNormalizer
mov edx, 0x1e4
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14010d68e
mov byte [0x1405750a8], 0
int3
mov rax, qword [rbx]
mov rdi, qword [rax]
lea rcx, [rbp - 0x70]
call fcn.140143f20
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140145820
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
lea rax, str.CreateMutex__
mov qword [rsp + 0x20], rax
mov r9d, 0xc9
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140011670
nop
call fcn.14010aa30
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov edi, 0xffff
cmp rax, rcx
je 0x14010d723
add word [rax + 0x10], di
jne 0x14010d719
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14010d719
cmp byte [rbx + 0x12], 0
je 0x14010d70c
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.14000e160
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x14010d780
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010d77b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010d8b6
call fcn.14036c454
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
mov rbx, qword [rbp]
test rbx, rbx
je 0x14010d7ec
lea r8, [0x1400110e0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.14011b9f0
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x140011220]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.14011b9f0
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14036c454
nop
call fcn.14010aa30
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
je 0x14010d82e
add word [rcx + 0x10], di
jne 0x14010d825
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x14010d825
cmp byte [rbx + 0x12], 0
je 0x14010d818
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rbp - 0x60], rax
call fcn.14010aa30
mov rcx, qword [rbp - 0x68]
cmp rcx, rax
je 0x14010d870
add word [rcx + 0x10], di
jne 0x14010d867
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x14010d867
cmp byte [rbx + 0x12], 0
je 0x14010d85a
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rbp - 0x68], rax
call fcn.14010aa30
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x14010d8af
add word [rcx + 0x10], di
jne 0x14010d8a9
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x14010d8a9
cmp byte [rbx + 0x12], 0
je 0x14010d89c
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
nop
mov al, 1
jmp 0x14010d3d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, r12
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14036c0d0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret