Function at 0x7ff649563700
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 - 0xc8]
sub rsp, 0x1c8
movaps xmmword [rsp + 0x1b0], xmm6
mov rax, qword [0x7ff6495ce010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r13, r9
mov r15, r8
mov rsi, rdx
mov r12, rcx
mov dword [rsp + 0x24], 0
mov byte [rsp + 0x20], 1
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov r14, qword [r12]
mov rdi, qword [r14 + 8]
mov rbx, r14
cmp byte [rdi + 0x19], 0
jne 0x7ff6495637b3
movaps xmm0, xmmword [r13]
movdqa xmmword [rbp], xmm0
nop dword [rax + rax]
movups xmm0, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov r8d, 0x10
lea rdx, [rbp]
lea rcx, [rsp + 0x30]
call fcn.7ff64957e000
test eax, eax
jns 0x7ff6495637a7
mov rdi, qword [rdi + 0x10]
jmp 0x7ff6495637ad
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x7ff649563780
cmp byte [rbx + 0x19], 0
jne 0x7ff6495637e8
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [r13]
movdqa xmmword [rbp], xmm1
mov r8d, 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.7ff64957e000
test eax, eax
js 0x7ff6495637e8
mov al, 1
jmp 0x7ff6495637ea
xor al, al
test al, al
cmove rbx, r14
cmp rbx, r14
je 0x7ff6495637ff
mov byte [rsp + 0x20], 0
jmp 0x7ff649563cda
mov r14, qword [rbp + 0x138]
test r14, r14
je 0x7ff6495637f5
xor ebx, ebx
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], bl
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
lea ecx, [rbx + 0x20]
call fcn.7ff649578e18
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], rbx
lea ecx, [rbx + 0x10]
call fcn.7ff649578e18
mov qword [rax + 8], rbx
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
mov qword [rax], rcx
mov eax, dword [rbp + 0x130]
mov dword [rbp + 0x48], eax
mov qword [rbp + 0x20], r15
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], r15b
xor r8d, r8d
lea rdx, [0x7ff6495bb843]
lea rcx, [rsp + 0x40]
call fcn.7ff649545d10
mov dword [rsp + 0x24], 1
mov edi, r15d
cmp qword [rsi + 0x10], rdi
jbe 0x7ff64956391d
mov ecx, r15d
movzx ebx, byte [rsp + 0x20]
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x7ff6495638c2
mov rax, qword [rsi]
movsx ecx, byte [rax + rcx]
call fcn.7ff649585a24
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
cmp rdx, r8
jae 0x7ff6495638fc
lea rcx, [rdx + 1]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x40]
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x40]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], r15b
jmp 0x7ff649563913
movzx r9d, al
movzx r8d, bl
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.7ff649547af0
inc edi
mov ecx, edi
cmp rcx, qword [rsi + 0x10]
jb 0x7ff6495638b5
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x7ff649563958
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff649563953
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff649563d1b
call fcn.7ff649578b74
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x38], xmm1
mov dword [rsp + 0x24], r15d
mov dword [rbp + 0x4c], r15d
mov rbx, qword [rbp + 0x50]
movabs rax, 0x7ffffffffffffff
cmp qword [rbp + 0x58], rax
je 0x7ff649563d21
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov ecx, 0x20
call fcn.7ff649578e18
movsd xmm0, qword [r14]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [r14 + 8]
mov dword [rax + 0x18], ecx
inc qword [rbp + 0x58]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbx + 8], rax
mov qword [rcx], rax
movaps xmm0, xmmword [r13]
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x98], r15
lea rdx, [0x7ff6495aa078]
mov ecx, 8
call fcn.7ff6495790e4
mov rbx, rax
test rax, rax
je 0x7ff649563a05
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [rbx], rax
jmp 0x7ff649563a19
mov rbx, r15
mov edx, 8
lea rcx, str.JHI_memory_allocation_of_size__d_failed_.
call fcn.7ff649543170
mov qword [rbp + 0x88], rbx
mov dword [rbp + 0x90], r15d
movaps xmm0, xmmword [r13]
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.7ff6495643a0
nop
mov rsi, qword [r12]
mov rbx, qword [rsi + 8]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r15d
mov rdi, rsi
movaps xmm6, xmmword [rsp + 0x60]
cmp byte [rbx + 0x19], 0
jne 0x7ff649563ab4
movaps xmmword [rsp + 0x30], xmm6
nop word [rax + rax]
mov qword [rsp + 0x40], rbx
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rbp], xmm0
mov r8d, 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.7ff64957e000
test eax, eax
jns 0x7ff649563aa0
mov dword [rsp + 0x48], r15d
mov rbx, qword [rbx + 0x10]
jmp 0x7ff649563aae
mov dword [rsp + 0x48], 1
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x7ff649563a70
cmp byte [rdi + 0x19], 0
jne 0x7ff649563adf
movups xmm0, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rbp], xmm6
mov r8d, 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.7ff64957e000
test eax, eax
jns 0x7ff649563b50
movabs rax, 0x155555555555555
cmp qword [r12 + 8], rax
je 0x7ff649563d2e
lea r9, [rsp + 0x60]
mov r8, rsi
mov rdx, r12
lea rcx, [rbp]
call fcn.7ff649567240
mov rbx, qword [rax + 8]
mov qword [rax + 8], r15
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x7ff649563b35
add rcx, 0x30
call fcn.7ff649563dd0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x7ff649563b35
mov edx, 0xc0
call fcn.7ff649578b74
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x30], xmm0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.7ff64954e490
nop
lea rcx, [rsp + 0x70]
call fcn.7ff649563dd0
mov rbx, qword [r12 + 8]
movaps xmm0, xmmword [r13]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea rdx, [0x7ff6495bb843]
lea rcx, [rsp + 0x40]
call fcn.7ff649545d10
mov dword [rsp + 0x24], 2
mov qword [rbp], r15
lea rdx, [rbp]
lea rcx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x7ff649563bbe
lea rcx, str.UuidToStringA_failed
call fcn.7ff6495431b0
jmp 0x7ff649563bee
mov rdx, qword [rbp]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x7ff649563bd0
lea rcx, [rsp + 0x40]
call fcn.7ff649545d10
lea rcx, [rbp]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeA]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, rbx
lea rcx, str.session_record_added_to_session_table_session_id:___s__n_current_session_count:__d_n
call fcn.7ff6495431b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x7ff649563c4d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff649563c47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff649563d34
call fcn.7ff649578b74
nop
lea rcx, [rbp + 0x60]
call fcn.7ff649566e80
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x60], r15
mov edx, 0x10
call fcn.7ff649578b74
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx + 8]
mov qword [rax], r15
mov rcx, qword [rcx]
test rcx, rcx
je 0x7ff649563c95
nop dword [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.7ff649578b74
mov rcx, rbx
test rbx, rbx
jne 0x7ff649563c80
mov edx, 0x20
mov rcx, qword [rbp + 0x50]
call fcn.7ff649578b74
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x7ff649563cda
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff649563cd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff649563d15
call fcn.7ff649578b74
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.7ff649578b50
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.7ff649585708
nop
call fcn.7ff649585708
nop
lea rcx, str.list_T__too_long
call fcn.7ff649579fcc
nop
call fcn.7ff649549600
nop
call fcn.7ff649585708
int3