Function at 0x1400383c0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rdx
mov r14, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r15d, r15d
lea rbx, [r15 - 1]
test eax, eax
jne 0x14003819b
mov qword [rsp + 0x20], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x60]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r15w
jne 0x140038102
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140006890
xor sil, sil
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x14003814a
cmp eax, 0xb7
je 0x14003814a
cmp eax, 0x50
jne 0x14003814d
mov sil, 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003818f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003818a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400383b4
call fcn.14007c190
test sil, sil
jne 0x14003819b
xor al, al
jmp 0x140038388
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x60]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r15w
jne 0x1400381b2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140006890
nop
mov qword [rsp + 0x20], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400381e0
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006890
nop
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140082c08
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
test eax, eax
je 0x14003829e
lea rax, [rbp + 0x170]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140038246
mov rax, qword [rsp + 0x58]
cmp rbx, rax
ja 0x14003828a
lea rdi, [rsp + 0x40]
cmp rax, 8
cmovae rdi, qword [rsp + 0x40]
mov qword [rsp + 0x50], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x170]
mov rcx, rdi
call fcn.14007e1c0
mov word [rbx + rdi], r15w
jmp 0x14003829e
lea r9, [rbp + 0x170]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006cd0
cmp esi, 1
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400382e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400382e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400383ba
call fcn.14007c190
test bl, bl
je 0x140038347
lea rcx, [r14 + 0x68]
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x140038345
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x14003833d
mov rdi, rcx
cmp rax, 8
jb 0x140038323
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.14007e1c0
mov word [rdi + rbx*2], r15w
jmp 0x140038345
mov rdx, rbx
call fcn.140006cd0
mov bl, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140038385
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038380
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400383ae
call fcn.14007c190
movzx eax, bl
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14007bb60
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140082b90
int3
call fcn.140082b90
nop
call fcn.140082b90
nop
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
cmp byte [rcx + 0x98], 0
jne 0x1400383f4
xor al, al
jmp 0x1400385f4
lea rdx, [rcx + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140006070
nop
lea rdi, [rbx + 0x48]
cmp qword [rsp + 0x68], 0
jne 0x140038428
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003841c
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.140038090
test al, al
je 0x140038448
lea rdx, [rbx + 0x90]
cmp qword [rdx], 0
jne 0x14003844f
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14004792d.0]
test al, al
jne 0x14003844f
xor bl, bl
jmp 0x1400385b3
xor esi, esi
cmp qword [rbx + 0xd0], rsi
jne 0x140038471
lea ecx, [rsi + 8]
call fcn.14007be20
mov qword [rsp + 0x40], rax
mov qword [rax], rsi
mov qword [rbx + 0xd0], rax
cmp qword [rdi + 0x18], 8
jb 0x14003847b
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], si
jne 0x140038491
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006890
mov rdi, qword [rbx + 0xd0]
cmp qword [rdi], rsi
jne 0x140038500
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x140038500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140038500
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rdi], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140038542
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003853d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003861c
call fcn.14007c190
lea rcx, [rsp + 0x48]
call fcn.140092158
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x158], rax
mov qword [rbx + 0x160], rax
cmp byte [rbx + 0x131], sil
je 0x1400385a3
mov rax, qword [rbx + 0xd0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400385a3
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x1400385a3
mov rcx, rbx
call fcn.140044010
mov rcx, qword [rbx + 0xd0]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1400385aa
mov byte [rbx + 0x131], sil
mov byte [rbx + 0x99], 1
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400385f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400385ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038616
call fcn.14007c190
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007bb60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140082b90
nop
call fcn.140082b90
nop
int3