Function at 0x1801ed9a0
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.1801cd9c0
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 0x1801edb2d
cmp qword [0x1802972f0], 0
je 0x1801edb26
lea rcx, [0x1802972f0]
call fcn.18009be90
mov rax, qword [0x1802972f0]
cmp byte [rax + 0x78], 0
je 0x1801edb26
cmp dword [rax + 0x80], 5
jb 0x1801edb26
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x18023b310]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
lea r8d, [r13 + 0xe]
lea rdx, [0x18021a460]
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, [0x1802972f0]
call fcn.18009cb10
test bl, bl
je 0x1801edad1
lea rdx, [rsp + 0x50]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801edb13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801edb0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0fb
call fcn.1801ccd64
movdqa xmm0, xmmword [0x18023b310]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
xor al, al
jmp 0x1801ee0bf
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 0x1801edc46
cmp qword [0x1802972f0], rdi
je 0x1801edb26
lea rcx, [0x1802972f0]
call fcn.18009be90
mov rax, qword [0x1802972f0]
cmp byte [rax + 0x78], dil
je 0x1801edb26
cmp dword [rax + 0x80], 5
jb 0x1801edb26
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x18023b310]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], di
lea r8d, [rdi + 0xf]
lea rdx, [0x18021a4d8]
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, [0x1802972f0]
call fcn.18009cb10
test bl, bl
je 0x1801edbfc
lea rdx, [rsp + 0x50]
lea rcx, [0x1802972f0]
call fcn.18009ceb0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801edb13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801edb0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0f5
jmp 0x1801edb0e
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.18009acd0
nop
mov rbx, qword [rbp - 0x60]
cmp qword [rbx], 0
lea r15, [rbx + 0x10]
jne 0x1801edc87
mov r15, rdi
cmp qword [rsi + 0x10], 0
je 0x1801edc9d
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801edca0
mov r8, qword [rsi]
jmp 0x1801edca0
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 0x1801edcfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1801edcf4
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x1801edcdc
cmp qword [rsi + 0x18], 8
jb 0x1801edcdf
mov rsi, qword [rsi]
jmp 0x1801edcdf
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 0x1801edcf9
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1801edd28
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.180094de0
jmp 0x1801edd2e
mov r15d, 1
mov rsi, qword [rbx]
test rsi, rsi
je 0x1801edd4d
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 0x1801edd60
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rdi
mov edx, 0x58
mov rcx, rbx
call fcn.1801ccd64
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 0x1801edd9a
xor bl, bl
jmp 0x1801eddb7
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1801eddb0
xor bl, bl
jmp 0x1801eddb7
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.1801ceed0
mov dword [rbp - 0x50], 0x10001
mov r8, qword [r14 + 0x1170]
test r8, r8
jne 0x1801ede00
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 0x1801ede1a
mov rdx, qword [rdx]
add r8, r8
lea rcx, [rbp - 0x4c]
call fcn.1801ceed0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
cmp eax, 1
jne 0x1801ede5e
mov dword [rbp + 0xfcc], eax
mov dword [rbp + 0xfd8], edi
xor ecx, ecx
call fcn.1801daef0
mov qword [rbp + 0xfd0], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfc8], eax
jmp 0x1801edf11
cmp eax, 3
jne 0x1801ede8f
mov dword [rbp + 0xfb8], eax
mov dword [rbp + 0xfc4], edi
xor ecx, ecx
call fcn.1801daef0
mov qword [rbp + 0xfbc], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfb4], eax
jmp 0x1801edf11
cmp eax, 2
jne 0x1801edebd
mov dword [rbp + 0xfe0], eax
mov dword [rbp + 0xfec], edi
xor ecx, ecx
call fcn.1801daef0
mov qword [rbp + 0xfe4], rax
mov eax, dword [r14 + 0x1150]
mov dword [rbp + 0xfdc], eax
jmp 0x1801edf11
cmp eax, 4
jne 0x1801eded1
mov eax, dword [r14 + 0x1100]
mov dword [rbp + 0xff0], eax
jmp 0x1801edf11
cmp eax, 5
jne 0x1801edef2
mov eax, dword [r14 + 0x1100]
mov dword [rbp + 0xff0], eax
mov eax, dword [r14 + 0x1104]
mov dword [rbp + 0xff4], eax
jmp 0x1801edf11
cmp eax, 6
jne 0x1801edf11
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.1801ceed0
nop
test bl, bl
je 0x1801edf3d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1801edf38
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 0x1801edf57
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 [0x18023b310]
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 0x1801edff2
mov r9, rdi
jmp 0x1801ee000
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 0x1801ee07c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801ee077
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801ee0ef
call fcn.1801ccd64
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1801ee0a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test rbx, rbx
je 0x1801ee0b3
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.1801ccd40
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.1801d1a7c
nop
call fcn.1801d1a7c
int3
call fcn.1801d1a7c
int3