Function at 0x1400121e0
Capabilities:
Check if file exists
Create process memory minidump
Delete file
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x1208]
mov eax, 0x1308
call fcn.14002f320
sub rsp, rax
mov esi, r8d
mov rbx, rdx
xor eax, eax
mov r12d, 1
lock cmpxchg dword [0x14021be18], r12d
jne 0x140012758
test rdx, rdx
je 0x140012758
mov rcx, qword [rdx]
test rcx, rcx
je 0x140012758
cmp qword [rdx + 8], 0
je 0x140012758
mov eax, dword [rcx]
add eax, 0x7ffffffd
cmp eax, r12d
jbe 0x140012768
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x1338], rdi
mov qword [rsp + 0x1340], r14
movaps xmmword [0x140229760], xmm0
movups xmm1, xmmword [rcx + 0x10]
mov qword [rsp + 0x1300], r15
movaps xmmword [0x140229770], xmm1
movups xmm0, xmmword [rcx + 0x20]
movaps xmmword [0x140229780], xmm0
movups xmm1, xmmword [rcx + 0x30]
movaps xmmword [0x140229790], xmm1
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [0x1402297a0], xmm0
movups xmm1, xmmword [rcx + 0x50]
movaps xmmword [0x1402297b0], xmm1
movups xmm0, xmmword [rcx + 0x60]
movaps xmmword [0x1402297c0], xmm0
movups xmm1, xmmword [rcx + 0x70]
movaps xmmword [0x1402297d0], xmm1
movups xmm0, xmmword [rcx + 0x80]
movaps xmmword [0x1402297e0], xmm0
movsd xmm1, qword [rcx + 0x90]
lea rcx, [0x140229290]
movsd qword [0x1402297f0], xmm1
mov rax, qword [rdx + 8]
lea edx, [r12 + 8]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, r12
jne 0x1400122f0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
call fcn.140010e00
mov rcx, qword [0x14021be28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001238b
mov rcx, qword [0x14021be28]
call fcn.140011720
xor r14d, r14d
lea r15, [0x14021d580]
cmp word [0x14021d580], r14w
je 0x1400124dc
mov r9, qword [0x14021c048]
lea rax, [rsp + 0x78]
mov r8, qword [0x14021be28]
lea rdx, [0x1401c2940]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
lea rax, [0x1401b7690]
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x74], 0x104
mov word [rsp + 0x78], r14w
mov qword [rsp + 0x20], r15
call fcn.1400038c0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400124dc
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 3]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400124dc
lea r9, [rbp + 0x1230]
mov dword [rbp + 0x1230], r14d
lea r8d, [r14 + 2]
mov qword [rsp + 0x20], r14
lea rdx, [0x1401c28e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140012468
mov eax, r14d
mov dword [rbp + 0x1230], eax
jmp 0x14001246e
mov eax, dword [rbp + 0x1230]
lock add qword [0x1401f4d68], rax
mov rdx, qword [0x14021d648]
mov eax, r14d
mov dword [rbp + 0x1248], eax
test rdx, rdx
je 0x1400124cb
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140012492
add r8d, r8d
je 0x1400124cb
lea r9, [rbp + 0x1248]
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400124c5
mov eax, r14d
mov dword [rbp + 0x1248], eax
jmp 0x1400124cb
mov eax, dword [rbp + 0x1248]
lock add qword [0x1401f4d68], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x4c], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x30], r15
lea r9, str._s_s._s.dmp
mov dword [rsp + 0x40], eax
lea rcx, [rbp + 0x200]
mov rax, qword [0x14021c048]
mov edx, 0x103
mov qword [rsp + 0x28], rax
mov r8, 0xffffffffffffffff
mov rax, qword [0x14021be28]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x44], rbx
call fcn.140003dd0
mov qword [rsp + 0x30], r14
lea rcx, [rbp + 0x200]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140012601
cmp dword [0x14021c8d0], r12d
jb 0x1400125ac
mov rcx, qword [0x14021c8c8]
test rcx, rcx
je 0x1400125ac
cmp word [rcx], r14w
je 0x1400125ac
lea rax, [0x140011890]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
jmp 0x1400125bf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov rcx, rax
mov r8, rdi
mov edx, ebx
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x200]
call fcn.140011dc0
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rsi, qword [0x140229278]
test rsi, rsi
je 0x140012740
mov r15d, 0xfeff
nop word [rax + rax]
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140012730
cmp word [rax], r14w
je 0x140012730
mov word [rbp + 0x200], r15w
lea rcx, [rbp + 0x202]
mov r8, qword [rsi + 0x108]
mov r9, 0xffffffffffffffff
mov edx, 0x7fe
call fcn.14003c5c8
mov r9d, dword [rsi]
lea r8, str.parameters__u.txt
mov edx, 0x3f
lea rcx, [rbp + 0x180]
call fcn.140011970
lea rax, [rbp + 0x200]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x140012690
add r9, r9
lea r8, [rbp + 0x200]
lea rdx, [rbp + 0x180]
call fcn.1400119e0
mov r8, qword [rsi + 0x108]
lea rcx, [rbp + 0x200]
mov r9, 0xffffffffffffffff
mov edx, 0x800
call fcn.14003c5c8
lea rdx, str.File:
lea rcx, [rbp + 0x200]
call fcn.140030c6c
mov rbx, rax
test rax, rax
je 0x140012730
nop word [rax + rax]
lea rdx, [0x1401c293c]
mov rcx, rbx
call fcn.140030c6c
mov rdi, rax
test rax, rax
je 0x140012730
lea rdx, [rbx + 0xa]
mov word [rax], r14w
call fcn.140011dc0
test al, al
je 0x140012730
lea rcx, [rdi + 2]
lea rdx, str.File:
call fcn.140030c6c
mov rbx, rax
test rax, rax
jne 0x1400126f0
mov rsi, qword [rsi + 0x118]
test rsi, rsi
jne 0x140012620
mov r14, qword [rsp + 0x1340]
mov rdi, qword [rsp + 0x1338]
mov r15, qword [rsp + 0x1300]
mov eax, r12d
add rsp, 0x1308
pop r12
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov r8d, 0x100000
mov rcx, rbx
call fcn.14014e180
call fcn.14000e620
int3