Function at 0x180246e70
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 [0x1804cd010]
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 0x180246f07
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r8, qword [rbp - 0x38]
jmp 0x180246f0a
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 0x180246f3b
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 0x180246f7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246f79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246f79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
test r15, r15
je 0x180246f9f
test bl, bl
je 0x180246f9f
xor bl, bl
jmp 0x1802474c2
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1802474c0
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
cmp eax, 1
je 0x1802474c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
mov r8d, 3
lea rdx, [0x1803d7440]
lea rcx, [rbp - 0x78]
call fcn.180004ea0
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov esi, 0x3b
cmp rcx, rdx
jae 0x18024701a
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 0x180247026
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800328a0
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x180247033
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 0x180247076
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 0x180247087
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 0x1802470b2
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 0x1802470be
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800328a0
lea rcx, [rsp + 0x58]
call fcn.1801558e0
nop
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18015cf50
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x58]
call fcn.180155ac0
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 0x18024713a
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 0x18024714e
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 0x180247179
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 0x180247185
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800328a0
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.18015dc20
nop
lea rdx, [0x1803cd08c]
lea rcx, [rbp - 0x58]
call fcn.180158950
mov r9, rax
cmp rax, 0xffffffffffffffff
je 0x1802471fe
mov r8, qword [rbp - 0x48]
cmp r8, rax
jb 0x1802474ff
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 0x180247253
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 0x180247267
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 0x180247292
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 0x18024729e
mov r9d, esi
lea rcx, [rbp - 0x78]
call fcn.1800328a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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.18015aff0
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x180247324
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024731f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024731f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
lea rcx, [rbp + 0x28]
call fcn.180175600
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x78]
call fcn.180244e90
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x180247390
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024738b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024738b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1802473e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802473e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802473e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x180247439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180247434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180247434
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
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 0x1802474aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802474a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802474a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
xor bl, bl
jmp 0x1802474c2
mov bl, 1
test r15, r15
je 0x1802474d5
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.180388400
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