Function at 0x18003d610
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 [0x1801044f8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [0x1800cf2c8]
xor edx, edx
call qword [rax + 0x48]
test eax, eax
jns 0x18003d68e
mov edx, eax
lea rcx, str.pswapchain__GetBuffer_error_code_d
call fcn.1800478f0
mov dword [0x180108318], r15d
jmp 0x18003da98
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x18]
cmp qword [rsp + 0x38], r15
jne 0x18003d6bc
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [0x180108318], r15d
jmp 0x18003da98
mov rax, qword [rbx]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [rax + 0x60]
mov dword [rbp - 0x68], r15d
mov dword [rbp - 0x60], r15d
mov dword [rbp - 0x58], r15d
mov eax, dword [rbp]
cmp eax, 0x5b
jne 0x18003d6e6
mov dword [rbp - 0x70], 0x57
jmp 0x18003d6f4
mov ecx, 0x1c
cmp eax, 0x1d
cmove eax, ecx
mov dword [rbp - 0x70], eax
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x7c], eax
mov edi, 1
mov dword [rbp - 0x78], edi
mov dword [rbp - 0x74], edi
mov dword [rbp - 0x6c], edi
mov dword [rbp - 0x64], 3
mov dword [rbp - 0x5c], 0x20000
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp - 0x80]
call qword [rax + 0x248]
mov rcx, qword [rsp + 0x38]
test eax, eax
mov rax, qword [rcx]
jns 0x18003d755
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18003da98
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x108]
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, edi
xor edx, edx
call qword [rax + 0x50]
test eax, eax
jns 0x18003d7aa
mov edx, eax
lea rcx, str.textDst__Map_false_hr_d
call fcn.1800478f0
mov dword [0x180108318], r15d
jmp 0x18003da98
mov r12d, r15d
mov ecx, dword [rbp - 0x70]
lea eax, [rcx - 0x57]
cmp eax, edi
jbe 0x18003d7bf
lea eax, [rcx - 0x5a]
cmp eax, 3
ja 0x18003d7c2
mov r12d, edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov r13d, r15d
mov dword [rsp + 0x60], r15d
mov rbx, r15
mov qword [rsp + 0x68], rbx
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rdx, [0x180107f10]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18003d800
lea rcx, [rbp - 0x30]
call fcn.18002fd30
nop
mov dword [rsp + 0x30], edi
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r14, rax
test rax, rax
je 0x18003d8d0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsp + 0x58], rax
mov r13d, edi
mov dword [rsp + 0x60], edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rdx, [0x180108110]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x18003d883
mov r8, rsi
lea rcx, [rbp - 0x50]
call fcn.18002fd30
nop
mov edi, 3
mov dword [rsp + 0x30], edi
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18003d8da
mov rbx, rax
mov qword [rsp + 0x68], rax
mov sil, 1
jmp 0x18003d8dd
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
xor sil, sil
test dil, 2
je 0x18003d93d
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x18003d92a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003d925
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003dacb
call fcn.180093588
movdqa xmm0, xmmword [0x1800ce060]
movdqu xmmword [rbp - 0x40], xmm0
xor eax, eax
mov word [rbp - 0x50], ax
test dil, 1
je 0x18003d99f
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x18003d98a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003d985
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003dac5
call fcn.180093588
movdqa xmm0, xmmword [0x1800ce060]
movdqu xmmword [rbp - 0x20], xmm0
xor edi, edi
mov word [rbp - 0x30], di
jmp 0x18003d9a1
xor edi, edi
test sil, sil
je 0x18003da13
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, dword [rbp - 0x7c]
mov r8d, dword [rbp - 0x80]
mov rdx, qword [0x180107f00]
mov rcx, r15
call fcn.18003e9a0
lea rcx, [r15 + 0x1c]
mov dword [rsp + 0x28], r12d
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x80]
mov r8d, dword [rbp - 0x7c]
mov rdx, qword [rsp + 0x70]
call fcn.18003d400
test rbx, rbx
jne 0x18003da0a
lea r8d, [rbx + 0x33]
lea rdx, str.D:gitoplibop_backgroundHook.._.._include_promutex.h
lea rcx, str._hmutex
call fcn.18009c514
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18003da23
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18003da38
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18003da4d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x40], rdi
test rbx, rbx
je 0x18003da6e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rdi
test r13d, r13d
je 0x18003da7c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test r14, r14
je 0x18003da8a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rdi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180093c30
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
call fcn.18009a4c4
nop
call fcn.18009a4c4
int3