Function at 0x1801ef130
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 [0x1802972f0]
test rax, rax
je 0x1801ef287
lea rcx, [0x1802972f0]
call fcn.18009be90
mov rax, qword [0x1802972f0]
cmp byte [rax + 0x78], r12b
je 0x1801ef287
cmp dword [rax + 0x80], 5
jb 0x1801ef287
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.18009cff0
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, [0x1802972f0]
call fcn.18009cb10
test bl, bl
je 0x1801ef22a
lea rdx, [rsp + 0x58]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1801ef26c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef91b
call fcn.1801ccd64
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rax, qword [0x1802972f0]
test r15, r15
jne 0x1801ef3af
test rax, rax
je 0x1801ef38b
lea rcx, [0x1802972f0]
call fcn.18009be90
mov rax, qword [0x1802972f0]
cmp byte [rax + 0x78], r15b
je 0x1801ef38b
cmp dword [rax + 0x80], 5
jb 0x1801ef38b
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, [0x18021a070]
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, [0x1802972f0]
call fcn.18009cb10
test bl, bl
je 0x1801ef338
lea rdx, [rsp + 0x78]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1801ef379
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef374
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef921
call fcn.1801ccd64
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.1801ed9a0
jmp 0x1801ef8ee
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 0x1801ef4ed
cmp qword [0x1802972f0], rax
je 0x1801ef4c9
lea rcx, [0x1802972f0]
call fcn.18009be90
mov rax, qword [0x1802972f0]
cmp byte [rax + 0x78], 0
je 0x1801ef4c9
cmp dword [rax + 0x80], 5
jb 0x1801ef4c9
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, [0x18021a100]
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, [0x1802972f0]
call fcn.18009cb10
test bl, bl
je 0x1801ef478
lea rdx, [rbp - 0x68]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1801ef4b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef4b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef927
call fcn.1801ccd64
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.1801ed9a0
jmp 0x1801ef8ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1801ef5fc
mov edx, 5
lea rcx, [0x1802972f0]
call fcn.18009cac0
mov ebx, eax
test eax, eax
je 0x1801ef5d8
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, [0x1802972f0]
call fcn.18009cb10
cmp ebx, 1
jbe 0x1801ef587
lea rdx, [rbp - 0x48]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1801ef5c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef5c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef92d
call fcn.1801ccd64
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.1801ed9a0
jmp 0x1801ef8ee
mov ecx, 0x140
call fcn.1801cd4f0
mov r14, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x140
mov rcx, rax
call fcn.1801cf330
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 [0x1802973e0], eax
inc eax
cmp eax, 1
jne 0x1801ef6ab
call fcn.1801eca40
mov qword [0x1802963b0], 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 0x1801ef7e1
lea rcx, [0x1802972f0]
call fcn.18009cac0
mov ebx, eax
test eax, eax
je 0x1801ef7a7
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, [0x18021a130]
lea rcx, [rbp - 0x28]
call fcn.18009cff0
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, [0x1802972f0]
call fcn.18009cb10
cmp ebx, 1
jbe 0x1801ef756
lea rdx, [rbp - 0x28]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1801ef796
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef791
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef933
call fcn.1801ccd64
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov rcx, rsi
call fcn.1801ed5d0
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.1801ed9a0
jmp 0x1801ef8ee
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.1801ed9a0
mov edx, 5
lea rcx, [0x1802972f0]
call fcn.18009cac0
mov ebx, eax
test eax, eax
je 0x1801ef8ee
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, [0x18021a168]
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, [0x1802972f0]
call fcn.18009cb10
cmp ebx, 1
jbe 0x1801ef8a1
lea rdx, [rbp - 8]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1801ef8dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ef8d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ef915
call fcn.1801ccd64
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.1801ccd40
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.1801d1a7c
int3
call fcn.1801d1a7c
int3
call fcn.1801d1a7c
int3
call fcn.1801d1a7c
int3
call fcn.1801d1a7c
int3
call fcn.1801d1a7c
int3