Function at 0x1400cd490
Capabilities:
Create process memory minidump
Delete file
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2090
call fcn.1400e6f00
sub rsp, rax
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x2080], rax
mov rbx, qword [0x140348398]
mov r14, rdx
add rbx, 2
mov rbp, rcx
add rbx, qword [rdx + 0x10]
xor r12d, r12d
mov eax, 2
mov rdi, 0xffffffffffffffff
mul rbx
mov r15d, r8d
cmovo rax, rdi
mov rcx, rax
call fcn.1400e6a30
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea r8, [0x140348388]
mov rdx, rbx
mov rcx, rax
cmovae r8, qword [0x140348388]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
cmp qword [r14 + 0x18], 8
jb 0x1400cd520
mov r14, qword [r14]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1400cd534
mov word [rsi], r12w
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], r12w
jne 0x1400cd550
mov r8, rdi
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400523d0
mov rcx, rsi
call fcn.1400e6a28
cmp qword [rsp + 0x70], 8
lea rcx, [rsp + 0x58]
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsp + 0x70], 8
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], r12
mov edx, 0xc0000000
cmovae rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cd656
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1300
mov qword [rsp + 0x40], r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r8, qword [rsp + 0x40]
lea rdx, str.Unable_to_save_crash_dump_to_Apple_Logs_folder._r_n_s
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea r8, [0x1403483a8]
mov r9d, 0x40010
lea rdx, [rsp + 0x80]
cmovae r8, qword [0x1403483a8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea edi, [rsi + 0x6f]
jmp 0x1400cd6c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x48]
test rbp, rbp
mov qword [rsp + 0x28], r12
mov r9d, r15d
mov dword [rsp + 0x48], eax
cmove rcx, r12
mov qword [rsp + 0x4c], rbp
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, rdi
mov dword [rsp + 0x54], r12d
mov edx, ebx
call sub.dbghelp.dll_MiniDumpWriteDump
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
cmovne edi, r12d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400cd707
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cd702
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cd702
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov eax, edi
mov rcx, qword [rsp + 0x2080]
xor rcx, rsp
call fcn.1400e6b50
add rsp, 0x2090
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret