Function at 0x1400022e0
Capabilities:
Create process memory minidump

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 7], rax
mov dword [rbp - 0x29], r9d
mov rdi, r8
mov r14d, edx
mov rbx, rcx
or rsi, 0xffffffffffffffff
xor r15d, r15d
mov r13b, r15b
mov ecx, 0x401
call fcn.1400025ac
mov r12, rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], r15b
mov r8d, r14d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
jne 0x14000238a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [rsi + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, ebx
mov r8d, r14d
lea rdx, str.Invalid_process_id__d_error__d_n
call fcn.140001008
jmp 0x1400024f0
mov r9d, 0x400
mov r8, r12
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
jne 0x1400023cc
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 r8d, ebx
lea rdx, str.Get_process_name_FAILED__d_n
mov rcx, rax
call fcn.140001008
jmp 0x1400024d7
mov r9d, r14d
mov r8, r12
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140001864
test al, al
je 0x1400024d7
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae r8, qword [rbp - 0x19]
mov rdx, rdi
lea rcx, str.Writing__s_to_file__s_n
call fcn.14000104c
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
and qword [rsp + 0x30], 0
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 rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002477
lea rdi, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdi, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [rsi + 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.140001008
jmp 0x1400024d7
xor ebx, ebx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, dword [rbp - 0x29]
mov r8, rsi
mov edx, r14d
mov rcx, r15
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x1400024d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x8007012b
jne 0x1400024ba
inc ebx
cmp ebx, 5
jl 0x140002479
jmp 0x1400024d7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.Write_dump_FAILED_0x_08x_n
jmp 0x1400023bf
mov r13b, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x1400024f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000252e
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002529
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002529
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400025a4
xor ebx, ebx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], bl
mov rcx, r12
call fcn.1400025a4
mov qword [rbp - 0x21], rbx
mov al, r13b
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140002580
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret