Function at 0x1400156d0
Capabilities:
Check mutex on windows
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1401717c8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rdx
mov edi, ecx
mov edx, 0x5c
lea rsi, str.C:.image_jenkinsworkspaceCC_Windows_ReleaseVECrashHandlerwinmain.cpp
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14001572b
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x14001572e
mov rax, rsi
mov r9d, 0x9a
lea r8, str.wmain
mov rdx, rax
lea rcx, str._lv_crash_handler___s:_s:_d_:_crash_handler_start...
call fcn.140014db0
cmp edi, 1
je 0x140015b9d
cmp qword [rbx + 8], 0
je 0x140015b9d
xor ecx, ecx
call fcn.140001e50
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r15d, r15d
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, edi
call fcn.140015350
mov rdx, qword [rsp + 0x30]
mov rax, rdx
movabs r12, 0x6666666666666667
mov rcx, qword [rsp + 0x38]
cmp rdx, rcx
je 0x14001592c
cmp dword [rax], 1
je 0x1400157b8
add rax, 0x28
cmp rax, rcx
jne 0x1400157a5
jmp 0x14001592c
lea r8, str.CapCut_crash_handler_0CF3FB091DCC4E34A1B4E06052077B40
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401729c8], rax
test rax, rax
je 0x140015922
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140015922
mov rcx, qword [0x1401729c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401729c8], r15
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp rbx, rbp
je 0x1400158d4
add rbx, 8
nop word [rax + rax]
mov eax, dword [rbx - 8]
dec eax
cmp eax, 1
ja 0x1400158b1
mov rdi, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001583b
mov rdi, qword [rbx]
test rdi, rdi
je 0x1400158b1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
jne 0x1400158b1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x1400158b1
mov edx, 0x5c
lea rcx, [0x1400c3c10]
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x140015889
mov edx, 0x5c
lea rcx, [0x1400c3c10]
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
jmp 0x140015890
lea rax, [0x1400c3c10]
mov qword [rsp + 0x20], rdi
mov r9d, 0x83
lea r8, str.handle_before_exit
mov rdx, rax
lea rcx, str._lv_crash_handler___s:_s:_d_:_fail_to_remove_file__s_
call fcn.140014e70
add rbx, 0x28
lea rax, [rbx - 8]
cmp rax, rbp
jne 0x140015820
mov rcx, qword [0x1401729c8]
test rcx, rcx
je 0x1400158d4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401729c8], r15
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400158fe
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
mov r9d, 0xa9
lea r8, str.wmain
mov rdx, rsi
lea rcx, str._lv_crash_handler___s:_s:_d_:_crash_handler_already_run__exit_
call fcn.140014db0
mov r14d, r15d
jmp 0x140015acb
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub rcx, rdx
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x14001598d
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140015969
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x14001596c
mov rax, rsi
mov r9d, 0x91
lea r8, str.handle_commands
mov rdx, rax
lea rcx, str._lv_crash_handler___s:_s:_d_:_no_commands__not_exec_
call fcn.140014db0
mov r14d, r15d
jmp 0x1400159b9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140013d60
nop
mov r8, rbx
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140014940
mov r14d, eax
lea rcx, [rsp + 0x50]
call fcn.140013e40
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp rbx, rbp
je 0x140015a72
add rbx, 8
mov eax, dword [rbx - 8]
dec eax
cmp eax, 1
ja 0x140015a61
mov rdi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400159eb
mov rdi, qword [rbx]
test rdi, rdi
je 0x140015a61
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
jne 0x140015a61
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x140015a61
mov edx, 0x5c
lea rcx, [0x1400c3c10]
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x140015a39
mov edx, 0x5c
lea rcx, [0x1400c3c10]
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
jmp 0x140015a40
lea rax, [0x1400c3c10]
mov qword [rsp + 0x20], rdi
mov r9d, 0x83
lea r8, str.handle_before_exit
mov rdx, rax
lea rcx, str._lv_crash_handler___s:_s:_d_:_fail_to_remove_file__s_
call fcn.140014e70
add rbx, 0x28
lea rax, [rbx - 8]
cmp rax, rbp
jne 0x1400159d0
mov rcx, qword [0x1401729c8]
test rcx, rcx
je 0x140015a84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401729c8], r15
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140015aae
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
mov r9d, 0xaf
lea r8, str.wmain
mov rdx, rsi
lea rcx, str._lv_crash_handler___s:_s:_d_:_crash_handler_exit...
call fcn.140014db0
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140015b98
mov rdi, qword [rsp + 0x38]
cmp r8, rdi
je 0x140015b44
lea rbx, [r8 + 0x20]
mov rdx, qword [rbx]
cmp rdx, 8
jb 0x140015b22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx - 0x18]
cmp rdx, 0x1000
jb 0x140015b1d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140015b89
mov rcx, r8
call fcn.14007c2d8
mov qword [rbx - 8], r15
mov qword [rbx], 7
mov word [rbx - 0x18], r15w
add rbx, 0x28
lea rcx, [rbx - 0x20]
cmp rcx, rdi
jne 0x140015ae7
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x140015b90
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015b90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14007c2d8
mov eax, r14d
jmp 0x140015be8
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140015bc0
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
mov r9d, 0x9d
lea r8, str.wmain
mov rdx, rsi
lea rcx, str._lv_crash_handler___s:_s:_d_:_crash_handler_no_params__exit_
call fcn.140014db0
mov rdx, rbx
mov ecx, edi
call fcn.1400152d0
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007c640
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret