Function at 0x1801ed990
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1010]
mov eax, 0x1110
call fcn.1801cd9b0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1148], rbx
mov qword [rsp + 0x1150], rsi
mov qword [rsp + 0x1158], rdi
mov rax, qword [0x18028e088]
xor rax, rsp
mov qword [rbp + 0x1000], rax
mov qword [rsp + 0x30], rdx
mov r14, rcx
lea r8, str.4316E0F0_641C_4603_A3A5_EDD34F07BC95_FM_RBBHO
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1801edb1d
cmp qword [0x180297300], 0
je 0x1801edb16
lea rcx, [0x180297300]
call fcn.18009be80
mov rax, qword [0x180297300]
cmp byte [rax + 0x78], 0
je 0x1801edb16
cmp dword [rax + 0x80], 5
jb 0x1801edb16
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x18023b300]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
lea r8d, [r13 + 0xe]
lea rdx, [0x18021a490]
lea rcx, [rsp + 0x50]
call fcn.1800089e0
mov dword [rsp + 0x28], 0x18e
lea rax, str.RC::RCRcmdBrowser::WriteBannerSharedData
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rsp + 0x50]
lea edx, [rdi + 5]
lea rcx, [0x180297300]
call fcn.18009cb00
test bl, bl
je 0x1801edac1
lea rdx, [rsp + 0x50]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801edb03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801edafe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0eb
call fcn.1801ccd54
movdqa xmm0, xmmword [0x18023b300]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
xor al, al
jmp 0x1801ee0af
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
jne 0x1801edc36
cmp qword [0x180297300], rdi
je 0x1801edb16
lea rcx, [0x180297300]
call fcn.18009be80
mov rax, qword [0x180297300]
cmp byte [rax + 0x78], dil
je 0x1801edb16
cmp dword [rax + 0x80], 5
jb 0x1801edb16
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x18023b300]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], di
lea r8d, [rdi + 0xf]
lea rdx, [0x18021a508]
lea rcx, [rsp + 0x50]
call fcn.1800089e0
mov dword [rsp + 0x28], 0x195
lea rax, str.RC::RCRcmdBrowser::WriteBannerSharedData
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345safebho_rcrcmdbrowser.cpp
lea r8, [rsp + 0x50]
lea edx, [rdi + 5]
lea rcx, [0x180297300]
call fcn.18009cb00
test bl, bl
je 0x1801edbec
lea rdx, [rsp + 0x50]
lea rcx, [0x180297300]
call fcn.18009cea0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801edb03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801edafe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0e5
jmp 0x1801edafe
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x48], ax
lea rsi, [r14 + 0x1180]
mov word [rsp + 0x48], ax
mov qword [rbp - 0x60], rdi
lea rcx, [rbp - 0x60]
call fcn.18009acc0
nop
mov rbx, qword [rbp - 0x60]
cmp qword [rbx], 0
lea r15, [rbx + 0x10]
jne 0x1801edc77
mov r15, rdi
cmp qword [rsi + 0x10], 0
je 0x1801edc8d
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801edc90
mov r8, qword [rsi]
jmp 0x1801edc90
mov r8, rdi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1801edcee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1801edce4
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x1801edccc
cmp qword [rsi + 0x18], 8
jb 0x1801edccf
mov rsi, qword [rsi]
jmp 0x1801edccf
mov rsi, rdi
mov r8, rsi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x40], rax
jmp 0x1801edce9
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1801edd18
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rsp + 0x49]
cmp eax, 0xb7
mov r15d, 1
cmove ecx, r15d
mov byte [rsp + 0x49], cl
mov rcx, qword [rsp + 0x40]
call fcn.180094dd0
jmp 0x1801edd1e
mov r15d, 1
mov rsi, qword [rbx]
test rsi, rsi
je 0x1801edd3d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1801edd50
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rdi
mov edx, 0x58
mov rcx, rbx
call fcn.1801ccd54
mov qword [rbp - 0x60], rdi
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1801edd8a
xor bl, bl
jmp 0x1801edda7
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1801edda0
xor bl, bl
jmp 0x1801edda7
mov byte [rsp + 0x48], 1
mov bl, 1
mov byte [rsp + 0x58], bl
mov r8d, 0x104c
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.1801ceec0
mov dword [rbp - 0x50], 0x10001
mov r8, qword [r14 + 0x1170]
test r8, r8
jne 0x1801eddf0
lea rcx, [r14 + 0x1160]
mov r8d, 0x12
lea rdx, str.www.2345.com__safe
call fcn.1800089e0
mov r8, qword [r14 + 0x1170]
lea rdx, [r14 + 0x1160]
cmp qword [rdx + 0x10], r8
cmovb r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1801ede0a
mov rdx, qword [rdx]
add r8, r8
lea rcx, [rbp - 0x4c]
call fcn.1801ceec0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
cmp eax, 1
jne 0x1801ede4e
mov dword [rbp + 0xfcc], eax
mov dword [rbp + 0xfd8], edi
xor ecx, ecx
call fcn.1801daee0
mov qword [rbp + 0xfd0], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfc8], eax
jmp 0x1801edf01
cmp eax, 3
jne 0x1801ede7f
mov dword [rbp + 0xfb8], eax
mov dword [rbp + 0xfc4], edi
xor ecx, ecx
call fcn.1801daee0
mov qword [rbp + 0xfbc], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfb4], eax
jmp 0x1801edf01
cmp eax, 2
jne 0x1801edead
mov dword [rbp + 0xfe0], eax
mov dword [rbp + 0xfec], edi
xor ecx, ecx
call fcn.1801daee0
mov qword [rbp + 0xfe4], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfdc], eax
jmp 0x1801edf01
cmp eax, 4
jne 0x1801edec1
mov eax, dword [r14 + 0x1100]
mov dword [rbp + 0xff0], eax
jmp 0x1801edf01
cmp eax, 5
jne 0x1801edee2
mov eax, dword [r14 + 0x1100]
mov dword [rbp + 0xff0], eax
mov eax, dword [r14 + 0x1104]
mov dword [rbp + 0xff4], eax
jmp 0x1801edf01
cmp eax, 6
jne 0x1801edf01
mov eax, dword [r14 + 0x1100]
mov dword [rbp + 0xff0], eax
mov eax, dword [r14 + 0x1108]
mov dword [rbp + 0xff8], eax
mov r8d, 0x104c
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.1801ceec0
nop
test bl, bl
je 0x1801edf2d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1801edf28
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x50], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1801edf47
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x48], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x18023b300]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], di
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x58], al
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
lea r8d, [rax + 0x30]
lea rdx, str.07617FFA_EB1C_485F_BE40_1F29C0037340_EVENT_RBBHO
lea rcx, [rbp - 0x80]
call fcn.1800089e0
mov qword [rsp + 0x50], rdi
cmp qword [rbp - 0x70], 0
jne 0x1801edfe2
mov r9, rdi
jmp 0x1801edff0
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r9, qword [rbp - 0x80]
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [rsp + 0x58]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x60]
call fcn.1800089e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1801ee06c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ee067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0df
call fcn.1801ccd54
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1801ee090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test rbx, rbx
je 0x1801ee0a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x60]
call fcn.180008970
mov al, 1
mov rcx, qword [rbp + 0x1000]
xor rcx, rsp
call fcn.1801ccd30
lea r11, [rsp + 0x1110]
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.1801d1a6c
nop
call fcn.1801d1a6c
int3
call fcn.1801d1a6c
int3