Function at 0x140002320
Capabilities:
Create process memory minidump

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15d, r9d
mov rdi, r8
mov ebp, edx
mov rbx, rcx
xor r12b, r12b
mov ecx, 0x401
call fcn.140002628
mov r13, rax
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r14b
mov r8d, ebp
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400023c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, ebx
mov r8d, ebp
lea rdx, str.Invalid_process_id__d_error__d_n
call fcn.140001010
jmp 0x140002566
mov r9d, 0x400
mov r8, r13
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
jne 0x140002413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, ebx
lea rdx, str.Get_process_name_FAILED__d_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002566
mov r9d, ebp
mov r8, r13
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001730
test al, al
je 0x14000255a
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r8, qword [rsp + 0x48]
mov rdx, rdi
lea rcx, str.Writing__s_to_file__s_n
call fcn.140001060
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400024d9
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdi, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [r14 + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, ebx
mov r8, rdi
lea rdx, str.Invalid_dump_path__s_error__d_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
jmp 0x140002566
mov ebx, edi
nop dword [rax + rax]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, r15d
mov r8, r14
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140002540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x8007012b
jne 0x140002521
inc ebx
cmp ebx, 5
mov edi, 0
jl 0x1400024e0
jmp 0x140002543
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, edi
lea rdx, str.Write_dump_FAILED_0x_08x_n
call fcn.140001010
jmp 0x140002543
mov r12b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
jmp 0x140002566
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12b, r12b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400025a6
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002620
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rcx, r13
call fcn.140002620
mov qword [rsp + 0x40], r14
movzx eax, r12b
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002600
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret