Function at 0x1801ef120
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x18028e088]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
lea r13, str.RC::RCRcmdBrowser::ShowWindow
mov rax, qword [0x180297300]
test rax, rax
je 0x1801ef277
lea rcx, [0x180297300]
call fcn.18009be80
mov rax, qword [0x180297300]
cmp byte [rax + 0x78], r12b
je 0x1801ef277
cmp dword [rax + 0x80], 5
jb 0x1801ef277
movzx ebx, byte [rax + 0x84]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov r8, r15
lea rdx, str._f:yjE
lea rcx, [rsp + 0x58]
call fcn.18009cfe0
mov dword [rsp + 0x28], 0xe2
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rsp + 0x58]
lea edx, [r12 + 5]
lea rcx, [0x180297300]
call fcn.18009cb00
test bl, bl
je 0x1801ef21a
lea rdx, [rsp + 0x58]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1801ef25c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef257
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef90b
call fcn.1801ccd54
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rax, qword [0x180297300]
test r15, r15
jne 0x1801ef39f
test rax, rax
je 0x1801ef37b
lea rcx, [0x180297300]
call fcn.18009be80
mov rax, qword [0x180297300]
cmp byte [rax + 0x78], r15b
je 0x1801ef37b
cmp dword [rax + 0x80], 5
jb 0x1801ef37b
movzx ebx, byte [rax + 0x84]
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea r8d, [r15 + 0x1d]
lea rdx, [0x18021a0a0]
lea rcx, [rsp + 0x78]
call fcn.1800089e0
mov dword [rsp + 0x28], 0xe5
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rsp + 0x78]
lea edx, [r15 + 5]
lea rcx, [0x180297300]
call fcn.18009cb00
test bl, bl
je 0x1801ef328
lea rdx, [rsp + 0x78]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1801ef369
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef364
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef911
call fcn.1801ccd54
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov dword [rsi + 0x1104], 4
mov dword [rsp + 0x30], 5
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1801ed990
jmp 0x1801ef8de
lea r8, str.11F534A9_9B5A_4BAA_9E8A_05304229D5D6
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
jne 0x1801ef4dd
cmp qword [0x180297300], rax
je 0x1801ef4b9
lea rcx, [0x180297300]
call fcn.18009be80
mov rax, qword [0x180297300]
cmp byte [rax + 0x78], 0
je 0x1801ef4b9
cmp dword [rax + 0x80], 5
jb 0x1801ef4b9
movzx ebx, byte [rax + 0x84]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov r8d, 0xa
lea rdx, [0x18021a130]
lea rcx, [rbp - 0x68]
call fcn.1800089e0
mov dword [rsp + 0x28], 0xee
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rbp - 0x68]
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cb00
test bl, bl
je 0x1801ef468
lea rdx, [rbp - 0x68]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1801ef4a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef4a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef917
call fcn.1801ccd54
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov dword [rsi + 0x1104], 5
mov dword [rsp + 0x34], 5
lea rdx, [rsp + 0x34]
mov rcx, rsi
call fcn.1801ed990
jmp 0x1801ef8de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1801ef5ec
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cab0
mov ebx, eax
test eax, eax
je 0x1801ef5c8
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov r8d, 9
lea rdx, str.Mutex
lea rcx, [rbp - 0x48]
call fcn.1800089e0
mov dword [rsp + 0x28], 0xf6
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rbp - 0x48]
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cb00
cmp ebx, 1
jbe 0x1801ef577
lea rdx, [rbp - 0x48]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1801ef5b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef5b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef91d
call fcn.1801ccd54
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov dword [rsi + 0x1104], 6
mov dword [rsp + 0x38], 5
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1801ed990
jmp 0x1801ef8de
mov ecx, pe_nt_image_headers64
call fcn.1801cd4e0
mov r14, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.1801cf320
mov edx, 0x67
mov rcx, r14
call fcn.180010890
nop
lea rax, vtable.RC::RCRcmdBrowserDlg.0
mov qword [r14], rax
lea rax, vtable.RC::RCRcmdBrowserDlg.1.0
mov qword [r14 + 0x48], rax
mov qword [r14 + 0xe0], rsi
lea rbx, [r14 + 0xe8]
mov qword [rsp + 0x40], rbx
lea rdx, [rsi + 0x1110]
mov rcx, rbx
call fcn.1800090e0
nop
lea rdx, [rsi + 0x1130]
lea rcx, [rbx + 0x20]
call fcn.1800090e0
nop
mov qword [r14 + 0x128], r12
mov qword [r14 + 0x130], r15
mov dword [r14 + 0x138], r12d
mov byte [r14 + 0x13c], 0
mov eax, 1
lock xadd dword [0x1802973f0], eax
inc eax
cmp eax, 1
jne 0x1801ef69b
call fcn.1801eca30
mov qword [0x1802963c0], r14
mov qword [rsi + 0x1158], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call fcn.180010a60
mov edx, 5
test rax, rax
jne 0x1801ef7d1
lea rcx, [0x180297300]
call fcn.18009cab0
mov ebx, eax
test eax, eax
je 0x1801ef797
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov r8, r15
lea rdx, [0x18021a160]
lea rcx, [rbp - 0x28]
call fcn.18009cfe0
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rbp - 0x28]
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cb00
cmp ebx, 1
jbe 0x1801ef746
lea rdx, [rbp - 0x28]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1801ef786
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef781
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef923
call fcn.1801ccd54
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov rcx, rsi
call fcn.1801ed5c0
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], r12
mov dword [rsi + 0x1104], 7
mov dword [rsp + 0x3c], 5
lea rdx, [rsp + 0x3c]
mov rcx, rsi
call fcn.1801ed990
jmp 0x1801ef8de
mov rcx, qword [rsi + 0x1158]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi + 0x1158]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov dword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1801ed990
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cab0
mov ebx, eax
test eax, eax
je 0x1801ef8de
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov r8d, 9
lea rdx, [0x18021a198]
lea rcx, [rbp - 8]
call fcn.1800089e0
mov dword [rsp + 0x28], VarUI4FromDisp
mov qword [rsp + 0x20], r13
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rbp - 8]
mov edx, 5
lea rcx, [0x180297300]
call fcn.18009cb00
cmp ebx, 1
jbe 0x1801ef891
lea rdx, [rbp - 8]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1801ef8cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef8c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef905
call fcn.1801ccd54
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1801ccd30
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3