Function at 0x180243c40
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 [0x1804e0010]
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.180005cd0
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 0x180243cd7
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r8, qword [rbp - 0x38]
jmp 0x180243cda
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 0x180243d0b
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 0x180243d4e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180243d49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180243d49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
test r15, r15
je 0x180243d6f
test bl, bl
je 0x180243d6f
xor bl, bl
jmp 0x180244292
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180244290
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
cmp eax, 1
je 0x180244290
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
mov r8d, 3
lea rdx, [0x1803e51a0]
lea rcx, [rbp - 0x78]
call fcn.180005cd0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov esi, 0x3b
cmp rcx, rdx
jae 0x180243dea
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 0x180243df6
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800345a0
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x180243e03
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 0x180243e46
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 0x180243e57
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.18000ada0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180243e82
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 0x180243e8e
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800345a0
lea rcx, [rsp + 0x58]
call fcn.18015a920
nop
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180162570
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.18015ab00
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 0x180243f0a
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 0x180243f1e
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.18000ada0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180243f49
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 0x180243f55
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800345a0
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.180163240
nop
lea rdx, [0x1803daf9c]
lea rcx, [rbp - 0x58]
call fcn.18015d990
mov r9, rax
cmp rax, 0xffffffffffffffff
je 0x180243fce
mov r8, qword [rbp - 0x48]
cmp r8, rax
jb 0x1802442cf
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 0x180244023
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 0x180244037
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.18000ada0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
cmp rcx, rdx
jae 0x180244062
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 0x18024406e
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800345a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp - 8], xmm1
mov word [rbp - 0x18], r12w
mov r8d, 0xb
lea rdx, str.upgrade.hzt
lea rcx, [rbp - 0x18]
call fcn.180005cd0
nop
lea rdx, [r13 + 8]
lea r8, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.180160610
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x1802440f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802440ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802440ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
lea rcx, [rbp + 0x28]
call fcn.18017a3d0
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x78]
call fcn.180241c60
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x180244160
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024415b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024415b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1802441b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802441b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802441b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x180244209
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244204
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244204
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r12w
lea rcx, [rsp + 0x70]
call fcn.180005af0
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 0x18024427a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180244275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180244275
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
xor bl, bl
jmp 0x180244292
mov bl, 1
test r15, r15
je 0x1802442a5
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.180393f50
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18000be20
nop
int3