Function at 0x180244680
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 [0x1804ca010]
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.180004e70
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 0x180244717
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r8, qword [rbp - 0x38]
jmp 0x18024471a
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 0x18024474b
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 0x18024478e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244789
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244789
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
test r15, r15
je 0x1802447af
test bl, bl
je 0x1802447af
xor bl, bl
jmp 0x180244cd2
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180244cd0
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
cmp eax, 1
je 0x180244cd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
mov r8d, 3
lea rdx, [0x1803d53a8]
lea rcx, [rbp - 0x78]
call fcn.180004e70
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov esi, 0x3b
cmp rcx, rdx
jae 0x18024482a
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 0x180244836
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032810
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x180244843
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 0x180244886
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 0x180244897
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.180009e00
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x1802448c2
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 0x1802448ce
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032810
lea rcx, [rsp + 0x58]
call fcn.180155320
nop
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18015c990
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.180155500
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 0x18024494a
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 0x18024495e
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180009e00
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180244989
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 0x180244995
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032810
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.18015d660
nop
lea rdx, [0x1803cb08c]
lea rcx, [rbp - 0x58]
call fcn.180158390
mov r9, rax
cmp rax, 0xffffffffffffffff
je 0x180244a0e
mov r8, qword [rbp - 0x48]
cmp r8, rax
jb 0x180244d0f
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 0x180244a63
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 0x180244a77
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180009e00
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180244aa2
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 0x180244aae
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.180032810
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp - 8], xmm1
mov word [rbp - 0x18], r12w
mov r8d, 0xb
lea rdx, str.upgrade.hzt
lea rcx, [rbp - 0x18]
call fcn.180004e70
nop
lea rdx, [r13 + 8]
lea r8, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.18015aa30
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x180244b34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244b2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244b2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
lea rcx, [rbp + 0x28]
call fcn.180175040
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x78]
call fcn.1802426a0
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x180244ba0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244b9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244b9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180244bf5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244bf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244bf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x180244c49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244c44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244c44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r12w
lea rcx, [rsp + 0x70]
call fcn.180004c90
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 0x180244cba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244cb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244cb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
xor bl, bl
jmp 0x180244cd2
mov bl, 1
test r15, r15
je 0x180244ce5
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.180385c10
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18000ae60
nop
int3