Function at 0x18001b6f0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
sub rsp, 0x258
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [0x1800d5b50], 0
mov qword [r11 + 0x10], rbx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x18], r12
mov rbx, rcx
je 0x18001b743
lea r9, str.CAgentU64Thread::Run_1
lea r8, str.AgentU64
lea rcx, [0x1800d5a98]
mov edx, 0x1f
call fcn.180015620
xor r12d, r12d
call fcn.180011900
mov ecx, r12d
test eax, eax
mov edx, 1
cmovne ecx, edx
call fcn.1800042b0
call fcn.18001c7a0
mov rcx, qword [rbx + 0x20]
mov edx, 0x3e8
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001b938
mov qword [rsp + 0x270], rbp
lea rbp, [0x180000000]
mov qword [rsp + 0x248], rdi
cmp dword [rbx + 0x48], r12d
jne 0x18001b928
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x40]
mov edi, eax
call fcn.18001bfc0
test edi, edi
je 0x18001b7c7
cmp edi, esi
jb 0x18001b7c7
lea ecx, [rsi + 0x3a98]
cmp edi, ecx
jbe 0x18001b8dd
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov esi, edi
mov word [rsp + 0x20], r12w
call fcn.180031610
call fcn.180045990
mov rcx, r12
test eax, eax
je 0x18001b880
movzx eax, word [rcx + rbp + 0x9b5f8]
add rcx, 2
mov word [rsp + rcx + 0x1e], ax
test ax, ax
jne 0x18001b7f1
xor eax, eax
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT]
mov qword [rdi - 2], rax
mov rax, qword [0x180091798]
mov qword [rdi + 6], rax
mov rax, qword [0x1800917a0]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1800917a8]
mov qword [rdi + 0x16], rax
mov rax, qword [0x1800917b0]
mov qword [rdi + 0x1e], rax
mov rax, qword [0x1800917b8]
mov qword [rdi + 0x26], rax
mov rax, qword [0x1800917c0]
mov qword [rdi + 0x2e], rax
mov rax, qword [0x1800917c8]
mov qword [rdi + 0x36], rax
movzx eax, word [0x1800917d0]
mov word [rdi + 0x3e], ax
jmp 0x18001b896
movzx eax, word [rcx + rbp + 0x91790]
add rcx, 2
mov word [rsp + rcx + 0x1e], ax
test ax, ax
jne 0x18001b880
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x18001b8cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x18001b8d6
mov eax, dword [0x1800d7a80]
cmp eax, 0xc
ja 0x18001b8f9
inc eax
mov dword [0x1800d7a80], eax
jmp 0x18001b8dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1800d7a80], r12d
mov rcx, qword [rbx + 0x20]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18001b796
jmp 0x18001b928
cmp dword [0x1800d5b50], r12d
je 0x18001b921
lea r9, str.CAgentU64Thread::Run_2
lea r8, str.AgentU64
lea rcx, [0x1800d5a98]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.180015620
mov dword [0x1800d7a80], r12d
mov rdi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x270]
mov rcx, rbx
call fcn.18001b610
mov rcx, rbx
call fcn.1800250a0
cmp dword [0x1800d5b50], 0
mov r12, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x268]
je 0x18001b988
lea r9, str.CAgentU64Thread::Run_2
lea r8, str.AgentU64
lea rcx, [0x1800d5a98]
mov edx, 0x1f
call fcn.180015620
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18002f7c0
add rsp, 0x258
ret