Function at 0x180246600
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 - 0x58]
sub rsp, 0x158
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r13, rcx
xor r12d, r12d
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
lea r8d, [r12 + 0x26]
lea rdx, str.5339F83D_43A2_4502_9D4D_4F06C2CE80C2
lea rcx, [rbp - 0x38]
call fcn.180004ea0
nop
mov qword [rsp + 0x30], r12
mov word [rsp + 0x38], r12w
mov word [rsp + 0x38], r12w
xor bl, bl
cmp qword [rbp - 0x28], r12
je 0x180246697
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r8, qword [rbp - 0x38]
jmp 0x18024669a
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1802466cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
mov ecx, 1
cmp eax, 0xb7
cmove ebx, ecx
mov byte [rsp + 0x39], bl
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x18024670e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246709
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246709
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
test r15, r15
je 0x18024672f
test bl, bl
je 0x18024672f
xor bl, bl
jmp 0x180246c52
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180246c50
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
cmp eax, 1
je 0x180246c50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
mov r8d, 3
lea rdx, [0x1803d63a0]
lea rcx, [rbp - 0x78]
call fcn.180004ea0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov esi, 0x3b
cmp rcx, rdx
jae 0x1802467aa
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdx, 8
cmovae rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], esi
jmp 0x1802467b6
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032180
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x1802467c3
mov r9, qword [r14]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x60]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180246806
lea rdi, [rcx + rdx]
mov qword [rbp - 0x68], rdi
lea rbx, [rbp - 0x78]
cmp r8, 8
cmovae rbx, qword [rbp - 0x78]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180246817
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.180009e30
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180246842
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdx, 8
cmovae rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], 0x3b
jmp 0x18024684e
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032180
lea rcx, [rsp + 0x58]
call fcn.180155230
nop
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18015c8a0
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.180155410
nop
lea r9, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae r9, qword [rbp + 8]
mov rdi, qword [rbp + 0x18]
mov r14, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x1802468ca
lea rax, [r14 + rdi]
mov qword [rbp - 0x68], rax
lea rbx, [rbp - 0x78]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x78]
lea r8, [rdi + rdi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov word [rbx + rax*2], r12w
jmp 0x1802468de
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180009e30
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180246909
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdx, 8
cmovae rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], 0x3b
jmp 0x180246915
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032180
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.18015d570
nop
lea rdx, [0x1803cc01c]
lea rcx, [rbp - 0x58]
call fcn.1801582a0
mov r9, rax
cmp rax, 0xffffffffffffffff
je 0x18024698e
mov r8, qword [rbp - 0x48]
cmp r8, rax
jb 0x180246c8f
mov qword [rsp + 0x48], r8
mov rax, r8
sub rax, r9
mov qword [rsp + 0x50], rax
mov rdx, r8
cmp rax, r8
cmovb rdx, rax
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
lea rcx, [rax + r9*2]
sub r8, rdx
mov qword [rbp - 0x48], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r9, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x48]
mov r14, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x1802469e3
lea rax, [r14 + rdi]
mov qword [rbp - 0x68], rax
lea rbx, [rbp - 0x78]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x78]
lea r8, [rdi + rdi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov word [rbx + rax*2], r12w
jmp 0x1802469f7
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180009e30
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180246a22
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdx, 8
cmovae rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], 0x3b
jmp 0x180246a2e
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032180
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rbp - 8], xmm1
mov word [rbp - 0x18], r12w
mov r8d, 0xb
lea rdx, str.upgrade.hzt
lea rcx, [rbp - 0x18]
call fcn.180004ea0
nop
lea rdx, [r13 + 8]
lea r8, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.18015a940
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x180246ab4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246aaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246aaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
lea rcx, [rbp + 0x28]
call fcn.180174f50
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x78]
call fcn.180244620
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x180246b20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246b1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246b1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180246b75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246b70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x180246bc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246bc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246bc4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r12w
lea rcx, [rsp + 0x70]
call fcn.180004cc0
nop
lea rax, vtable.RC::RCFileHash.0
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x68], 1
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180246c3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246c35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246c35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
xor bl, bl
jmp 0x180246c52
mov bl, 1
test r15, r15
je 0x180246c65
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
mov word [rsp + 0x38], 0
movzx eax, bl
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18000ae90
nop
int3