Function at 0x140002370
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 r14d, r9d
mov rbp, r8
mov esi, edx
mov rbx, rcx
xor r15b, r15b
mov ecx, 0x401
call fcn.140002628
mov r12, rax
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r13b
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140002409
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, esi
lea rcx, str.Invalid_process_id__d_error__d_n
call fcn.140001400
jmp 0x14000256d
mov r9d, 0x400
mov r8, r12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
jne 0x140002443
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_process_name_FAILED__d_n
call fcn.140001400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000256d
mov r9d, esi
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400017b0
test al, al
je 0x140002561
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r8, qword [rsp + 0x48]
mov rdx, rbp
lea rcx, str.Writing__s_to_file__s_n
call fcn.140001370
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r13
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 rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400024f2
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, str.Invalid_dump_path__s_error__d_n
call fcn.140001400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000256d
mov ebx, r13d
nop word [rax + rax]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, r14d
mov r8, rbp
mov edx, esi
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x14000254a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8007012b
jne 0x14000253a
inc ebx
cmp ebx, 5
jl 0x140002500
jmp 0x14000254d
mov edx, eax
lea rcx, str.Write_dump_FAILED_0x_08x_n
call fcn.140001400
jmp 0x14000254d
mov r15b, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000256d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r15b, r15b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400025ad
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025a8
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], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rcx, r12
call fcn.140002620
mov qword [rsp + 0x40], r13
movzx eax, r15b
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