Function at 0x1800167e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x180066180]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x58], rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x60], rcx
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rdx, str.IEMainWindowAccessChannel
test rdx, 0xffffffffffff0000
jne 0x18001687b
movzx edi, dx
mov ecx, edi
call fcn.180002840
test rax, rax
je 0x180016890
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800023e0
jmp 0x18001688b
mov r8d, 0x19
lea rcx, [rsp + 0x40]
call fcn.180002020
mov rbx, qword [rsp + 0x40]
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 8], rax
mov ecx, 0x18
call fcn.180029700
xor r13d, r13d
test rax, rax
je 0x1800168c6
mov rcx, rax
call fcn.180003a90
jmp 0x1800168c9
mov rax, r13
mov qword [r12 + 0x10], rax
lea r14, [rbx - 0x18]
mov rdi, qword [r12 + 8]
sub rdi, 0x18
or rsi, 0xffffffffffffffff
cmp r14, rdi
je 0x18001692c
cmp dword [rdi + 0x10], r13d
jl 0x18001691b
mov rax, qword [rdi]
cmp qword [r14], rax
jne 0x18001691b
mov rcx, r14
call fcn.180002110
mov rbx, rax
lock add dword [rdi + 0x10], esi
jg 0x180016910
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rVariantCopy + 8]
lea rax, [rbx + 0x18]
mov qword [r12 + 8], rax
jmp 0x18001692c
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [r12 + 8]
call fcn.180002020
mov ecx, 8
call fcn.180029700
mov rbx, rax
test rax, rax
je 0x180016958
lea rcx, [0x180066048]
mov rdx, qword [0x180066048]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbx], rax
jmp 0x18001695b
mov rbx, r13
mov qword [r12], rbx
lock add dword [r14 + 0x10], 0xffffffff
jg 0x180016973
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + VariantCopy]
mov byte [r12 + 0x18], 0
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x28], rax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x30], rax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x38], rax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x40], rax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x48], rax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12 + 0x50], rax
mov dword [r12 + 0x58], 3
mov qword [r12 + 0x60], r13
lea rdi, [r12 + 0x80]
mov qword [rsp + 0x48], rdi
lea rax, [fcn.180001b40]
mov qword [rsp + 0x20], rax
lea r9, [fcn.180001a40]
mov edx, 8
lea r8d, [rdx - 5]
mov rcx, rdi
call fcn.18002b1c4
nop
mov byte [rbp - 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x4f]
call fcn.18002c930
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r8d, 0x1f
lea rdx, str.GlobalMinBhoAccessChannelMutex
lea rcx, [rsp + 0x38]
call fcn.180002020
mov r8d, 0x14
lea rdx, str.CrossriderApp0057020
lea rcx, [rsp + 0x38]
call fcn.1800022e0
mov rbx, qword [rsp + 0x38]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r12 + 0x20], rax
mov r8d, dword [0x180069c80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xd
jne 0x180016b33
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1800289f0
mov rcx, rax
call fcn.180028a24
cmp qword [r12 + 0x20], 0
jne 0x180016b4d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [r12 + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.18001ae40
nop
mov rdx, rax
lea rcx, [r12 + 0x48]
call fcn.180001e20
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180016b7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rdx, [r12 + 0x48]
mov rcx, r12
call fcn.180018530
mov r15d, r13d
lea rbx, [r12 + 0x68]
mov qword [rsp + 0x50], rbx
mov r14d, 0x104
mov r12d, dword [rsp + 0x34]
nop word [rax + rax]
mov ecx, dword [0x180069c80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 7
jne 0x180016c26
lea ecx, [r8 + 0x21]
call fcn.1800289f0
mov rdi, rax
mov rbx, r13
call fcn.1800289f8
add eax, dword [0x180069c80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x180016bf4
mov ecx, dword [rdi + 0x24]
mov dword [0x180069c80], ecx
mov rcx, rdi
call fcn.180028a24
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rax, [rbp - 0x50]
add rcx, rax
lea rdx, str.Event
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd rdx, ecx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x1800569e0]
call fcn.18002b14c
mov r9d, dword [0x180069c80]
lea r8d, [r9 + 1]
lea ecx, [r9 + 2]
imul ecx, r8d
imul ecx, r9d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub ecx, edx
cmp ecx, 8
cmove r9d, r8d
mov dword [0x180069c80], r9d
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rax, [rbp - 0x50]
add rcx, rax
lea rdx, str.CrossriderApp0057020
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r9, eax
mov r8d, dword [0x180069c80]
imul r8d, r8d
mov eax, 0xb21642c9
imul r8d
add edx, r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x17
sub r8d, edx
mov eax, dword [0x18006a5ac]
cmp r8d, 0x16
mov ecx, 0x240ed217
cmove eax, ecx
mov dword [0x18006a5ac], eax
mov eax, r14d
sub eax, r9d
movsxd rdx, eax
lea rcx, [rbp - 0x50]
add rcx, r9
lea r8, [0x1800569e4]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd r8, ecx
cdqe
lea rdx, [rbp - 0x50]
add rdx, rax
mov r9d, 0xa
mov ecx, dword [rsp + 0x30]
call fcn.18002b2d4
test r12d, r12d
je 0x180016dbe
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd rdx, ecx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x1800569e8]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd r8, ecx
cdqe
lea rdx, [rbp - 0x50]
add rdx, rax
mov r9d, 0xa
mov ecx, r12d
call fcn.18002b2d4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd rdx, ecx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x180055edc]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd r8, ecx
cdqe
lea rdx, [rbp - 0x50]
add rdx, rax
mov r9d, 0xa
mov ecx, r15d
call fcn.18002b2d4
mov r8d, r13d
cmp r15d, 2
sete r8b
lea r9, [rbp - 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx], rax
lea rcx, [rbp - 0x50]
mov rax, rsi
inc rax
cmp byte [rcx + rax], 0
jne 0x180016e31
mov r8d, eax
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.180002020
inc r15d
add rdi, 8
mov qword [rsp + 0x48], rdi
add rbx, 8
mov qword [rsp + 0x50], rbx
cmp r15d, 3
jl 0x180016bb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne r13b
mov r12, qword [rsp + 0x60]
mov dword [r12 + 0x98], r13d
lea rdx, str.Local_
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rax, [rbp - 0x50]
add rcx, rax
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rax, [rbp - 0x50]
add rcx, rax
lea rdx, str.Sect
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd rdx, ecx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x1800569e0]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rax, [rbp - 0x50]
add rcx, rax
lea rdx, str.CrossriderApp0057020
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd rdx, ecx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x1800569e4]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, r14d
sub ecx, eax
movsxd r8, ecx
cdqe
lea rdx, [rbp - 0x50]
add rdx, rax
mov r9d, 0xa
mov r15d, dword [rsp + 0x30]
mov ecx, r15d
call fcn.18002b2d4
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x180016fc7
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, r14d
sub edx, eax
movsxd rdx, edx
cdqe
lea rcx, [rbp - 0x50]
add rcx, rax
lea r8, [0x1800569e8]
call fcn.18002b14c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
sub r14d, eax
movsxd r8, r14d
cdqe
lea rdx, [rbp - 0x50]
add rdx, rax
mov r9d, 0xa
mov ecx, ebx
call fcn.18002b2d4
lea rcx, [rbp - 0x50]
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180016fd0
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [r12 + 0x28]
call fcn.180002020
mov rdx, qword [r12 + 0x28]
lea rcx, [rdx - 0x18]
mov rbx, qword [r12 + 0x38]
sub rbx, 0x18
cmp rcx, rbx
je 0x180017044
cmp dword [rbx + 0x10], 0
jl 0x180017036
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180017036
call fcn.180002110
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18001702b
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [r14 + 0x18]
mov qword [r12 + 0x38], rax
jmp 0x180017044
mov r8d, dword [rdx - 0x10]
lea rcx, [r12 + 0x38]
call fcn.180002020
lea r8, [0x1800569fc]
lea rdx, str.Local_
lea rcx, [r12 + 0x38]
call fcn.1800094e0
lea r8, [0x180055dd0]
lea rdx, [r12 + 0x48]
lea rcx, [rbp - 0x70]
call fcn.180001c40
nop
lea r8, [r12 + 0x38]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.180001b80
nop
lea r8, str..dat
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.180001c40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [r12 + 0x38]
sub rbx, 0x18
cmp rcx, rbx
je 0x1800170f1
cmp dword [rbx + 0x10], 0
jl 0x1800170e2
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1800170e2
call fcn.180002110
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x1800170d7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [r14 + 0x18]
mov qword [r12 + 0x38], rax
jmp 0x1800170f1
mov r8d, dword [rdx - 0x10]
lea rcx, [r12 + 0x38]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001710a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180017123
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001713b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
mov r8d, r15d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.180003920
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [r12 + 0x40]
sub rbx, 0x18
cmp rcx, rbx
je 0x1800171c1
cmp dword [rbx + 0x10], 0
jl 0x1800171b2
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1800171b2
call fcn.180002110
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x1800171a7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [r14 + 0x18]
mov qword [r12 + 0x40], rax
jmp 0x1800171c1
mov r8d, dword [rdx - 0x10]
lea rcx, [r12 + 0x40]
call fcn.180002020
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1800171db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rdx, [rdi - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1800171f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001720b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
nop
mov rax, r12
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1800289d0
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret