Function at 0x1402d9820
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, r9
mov r12, r8
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rcx + 0x1fb0], ebx
call sym.ErrorReportClient.exe_SfEstablishPureVirtualCallHandler
mov rsi, qword [rsp + 0xa8]
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], r14
mov rcx, rdi
call fcn.1402dd3f0
mov dword [rsp + 0x88], eax
test eax, eax
js 0x1402d9be3
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov r13d, dword [rsp + 0xa0]
mov dword [rsp + 0x20], r13d
mov r9, r15
mov r8, r12
mov rdx, r14
mov rcx, rdi
call qword [rax + 0xa8]
mov dword [rsp + 0x88], eax
test eax, eax
js 0x1402d9be3
test rsi, rsi
je 0x1402d9b9a
test byte [rsi + 0x840], 4
je 0x1402d9b9a
lea rcx, [rsp + 0x48]
call fcn.1402d5f10
mov rax, qword [rdi + 8]
mov rcx, rdi
test byte [rax + 0x830], 0x40
lea edx, [rbx + 2]
jne 0x1402d98e8
lea edx, [rbx + 1]
call fcn.1402dce90
lea rcx, str.5F9813F2_C039_4c70_8E9E_5D71DA628AF8
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, str._s___s_
mov edx, 0x104
lea rcx, [rsp + 0x48]
call fcn.1402d7570
lea rcx, [rsp + 0x40]
call fcn.1402d5f10
mov rax, qword [rdi + 8]
mov rcx, rdi
test byte [rax + 0x830], 0x40
mov edx, 2
jne 0x1402d9936
mov edx, 1
call fcn.1402dce90
lea rcx, str.58C868BC_E89B_4dde_8EB4_432F865D43A1
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, str._s___s_
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1402d7570
mov dword [rsp + 0xa8], ebx
lea r9, [rsp + 0xa8]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1402db5e0
mov dword [rsp + 0x88], eax
test eax, eax
js 0x1402d9997
cmp dword [rsp + 0xa8], ebx
jne 0x1402d9a9a
mov r8, qword [rsp + 0x48]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x1fa8], rax
test rax, rax
je 0x1402d9af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1402d9adc
xor edx, edx
mov rcx, qword [rdi + 0x1fa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x1402d9adc
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0xa8]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1402db5e0
mov dword [rsp + 0x88], eax
test eax, eax
js 0x1402d9a1d
cmp dword [rsp + 0xa8], 0
jne 0x1402d9a9a
mov rax, qword [rdi]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r13d
mov r9, r15
mov r8, r12
mov rdx, r14
mov rcx, rdi
call qword [rax + 0xa0]
mov rcx, qword [rdi + 0x1fa8]
test eax, eax
je 0x1402d9ab8
mov edx, 0xfa
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1402d9a8d
cmp eax, 0x102
jne 0x1402d9adc
inc ebx
cmp ebx, 0x28
jb 0x1402d99f0
mov r8, rsi
mov edx, 0x8108
mov rcx, rdi
call fcn.1402db520
mov dword [rsp + 0x88], eax
mov rcx, qword [rdi + 0x1fa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.1402d84a0
lea rcx, [rsp + 0x48]
call fcn.1402d84a0
mov eax, 0x80004005
jmp 0x1402d9be3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.1402d84a0
lea rcx, [rsp + 0x48]
call fcn.1402d84a0
mov eax, 0x8004e0a9
jmp 0x1402d9be3
lea rcx, [rsp + 0x40]
call fcn.1402d84a0
lea rcx, [rsp + 0x48]
call fcn.1402d84a0
jmp 0x1402d9b9a
mov rcx, rdi
call fcn.1402de040
mov dword [rsp + 0x88], eax
test eax, eax
js 0x1402d9a9a
lea rcx, [rsp + 0xa8]
call fcn.1402d5f10
lea rcx, [rsp + 0x80]
call fcn.1402d5f10
mov rbx, qword [rsi + 0x838]
mov rax, qword [0x1406baea0]
mov edx, 0x8109
mov rcx, qword [rax + 0x20]
call sym.ErrorReportClient.exe_wchar_t_const____ptr64___cdecl_SfGetString_struct_HSFLANG______ptr64__unsigned_int_
mov r8, rax
mov r9, rbx
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.1402d7570
mov r9d, 0x50030
mov r8, qword [rsi + 0x838]
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call fcn.1402de170
lea rcx, [rsp + 0x80]
call fcn.1402d84a0
lea rcx, [rsp + 0xa8]
call fcn.1402d84a0
jmp 0x1402d9a9a
mov rcx, rdi
call fcn.1402daf90
mov dword [rsp + 0x88], eax
jmp 0x1402d9bbf
cmp eax, 0x8004e017
jne 0x1402d9bd5
mov rcx, rdi
call fcn.1402db1e0
mov eax, dword [rsp + 0x88]
test eax, eax
js 0x1402d9be3
mov dword [rdi + 0x1fb0], 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret