Function at 0x140395330
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb30
lea rbp, [rsp + 0x50]
mov rax, qword [0x1406836b8]
xor rax, rbp
mov qword [rbp + 0xad0], rax
mov rax, qword [rcx]
mov r15d, r8d
mov r14, rdx
mov r12, rcx
test rax, rax
jne 0x140395373
mov eax, 0x80040007
jmp 0x1403956af
cmp byte [rax + 8], 0
lea rcx, str.CreateMinidumpx64.exe
lea rbx, str.CreateMinidumpx86.exe
mov r8d, 0x104
cmovne rbx, rcx
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_wcsrchr
mov rsi, rax
xor edi, edi
add rsi, 2
je 0x1403954a3
mov r8, rbx
mov word [rsi], di
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1403954bd
lea r8d, [rdi + 4]
lea rdx, str.x86_
lea rcx, [rsi - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea rcx, [rbp + 0x90]
test eax, eax
jne 0x14039541f
mov r8, rbx
mov word [rsi - 8], di
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140395492
mov edx, 0x5c
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
je 0x140395492
lea r8, [rbp + 0x90]
mov word [rax], di
mov edx, 0x104
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.x86_
mov edx, 0x104
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbx
lea rcx, [rbp + 0x2a0]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x2a0]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1403954bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1403954b7
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1403956af
lea rcx, [0x14044b1c4]
mov edx, 0x30c
mov qword [rsp + 0x38], rcx
lea rax, [r12 + 0x18]
mov dword [rsp + 0x30], r15d
lea r9, str._s___s___d__s
mov qword [rsp + 0x28], r14
lea rcx, [rbp + 0x4b0]
mov r8d, edx
mov qword [rsp + 0x20], rax
call fcn.140194570
xor edx, edx
lea rcx, [rbp + 0x24]
lea r8d, [rdx + 0x64]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rbp + 0x20], 0x68
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x4b0]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov rax, 0xffffffffffffffff
mov rcx, rax
nop dword [rax]
inc rcx
cmp word [rdx + rcx*2], di
jne 0x140395530
lea rdx, [rbp + 0x90]
cmp word [rdx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140395540
lea rsi, [rax + 4]
mov rdx, rdi
add rsi, rcx
lea rax, [rsi + rsi]
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x1403955c4
cmp rdx, 0x400
ja 0x1403955a7
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140395585
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14039bb40
sub rsp, rax
lea rbx, [rsp + 0x50]
test rbx, rbx
je 0x1403955c7
mov dword [rbx], 0xcccc
add rbx, 0x10
jmp 0x1403955c7
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1403955c7
mov dword [rax], 0xdddd
add rbx, 0x10
jmp 0x1403955c7
mov rbx, rdi
lea rax, [rbp + 0x4b0]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, str.__s___s
lea rax, [rbp + 0x90]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140194570
lea rax, [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x90]
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14039564a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140395646
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x140395666
jmp 0x1403956af
mov rdi, qword [rbp + 8]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp]
test eax, eax
jne 0x1403956af
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140395697
mov eax, 0x80070002
jmp 0x1403956af
lea rcx, [r12 + 0x220]
mov r8, r14
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
mov rcx, qword [rbp + 0xad0]
xor rcx, rbp
call fcn.14039bbb0
lea rsp, [rbp + 0xae0]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret