Function at 0x140002340
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.14000260c
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 0x1400023ea
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 0x140002550
mov r9d, 0x400
mov r8, r12
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
jne 0x14000242c
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 0x140002537
mov r9d, r14d
mov r8, r12
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140001864
test al, al
je 0x140002537
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 0x1400024d7
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 0x140002537
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 0x140002534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x8007012b
jne 0x14000251a
inc ebx
cmp ebx, 5
jl 0x1400024d9
jmp 0x140002537
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 0x14000241f
mov r13b, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x140002550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000258e
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002589
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002589
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002604
xor ebx, ebx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], bl
mov rcx, r12
call fcn.140002604
mov qword [rbp - 0x21], rbx
mov al, r13b
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400025e0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret