Function at 0x14001b790
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, rdx
mov r12, rcx
lea rdx, str.Crash_Report_configuration:_r_n
call fcn.14003a530
lea r8, [r15 + 0x68]
cmp qword [r8 + 0x18], 0x10
jb 0x14001b7bf
mov r8, qword [r8]
lea rdx, str.__App_Name:__s_r_n
mov rcx, r12
call fcn.14003a530
lea r8, [r15 + 0xa8]
cmp qword [r8 + 0x18], 0x10
jb 0x14001b7df
mov r8, qword [r8]
lea rdx, str.__App_Version:__s_r_n
mov rcx, r12
call fcn.14003a530
lea r8, [r15 + 0x108]
cmp qword [r8 + 0x18], 0x10
jb 0x14001b7ff
mov r8, qword [r8]
lea rdx, str.__Mono_DLL:__s_r_n
mov rcx, r12
call fcn.14003a530
cmp qword [r15 + 0x40], 0x10
lea r8, [r15 + 0x28]
jb 0x14001b81c
mov r8, qword [r8]
lea rdx, str.__Bug_Reporter_App_Path:__s_r_n
mov rcx, r12
call fcn.14003a530
cmp qword [r15 + 0x60], 0x10
lea r8, [r15 + 0x48]
jb 0x14001b839
mov r8, qword [r8]
lea rdx, str.__Crash_Report_Path:__s_r_n
mov rcx, r12
call fcn.14003a530
cmp byte [r15 + 0x129], 0
lea rax, str.true
lea r8, str.false
mov rcx, r12
cmovne r8, rax
lea rdx, str.__Is_Editor:__s_r_n
call fcn.14003a530
lea rdx, str._r_nCrash_Report_metadata:_r_n
mov rcx, r12
call fcn.14003a530
mov rax, qword [r15]
mov rdi, qword [rax]
cmp rdi, rax
je 0x14001b91f
nop
cmp qword [rdi + 0x58], 0x10
lea r9, [rdi + 0x40]
jb 0x14001b89e
mov r9, qword [r9]
cmp qword [rdi + 0x38], 0x10
lea r8, [rdi + 0x20]
jb 0x14001b8ac
mov r8, qword [r8]
lea rdx, str.___s___s_r_n
mov rcx, r12
call fcn.14003a530
cmp byte [rdi + 0x19], 0
jne 0x14001b916
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14001b8f1
mov rcx, qword [rax]
mov rdi, rax
cmp byte [rcx + 0x19], 0
jne 0x14001b916
nop word [rax + rax]
mov rax, qword [rcx]
mov rdi, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14001b8e0
jmp 0x14001b916
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x14001b913
nop dword [rax + rax]
cmp rdi, qword [rax + 0x10]
jne 0x14001b913
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14001b900
mov rdi, rax
cmp rdi, qword [r15]
jne 0x14001b890
mov qword [rsp + 0x80], rsi
lea rdx, str._r_nAdditional_report_files:_r_n
mov qword [rsp + 0x88], r13
mov rcx, r12
mov qword [rsp + 0x90], r14
call fcn.14003a530
mov rbx, qword [r15 + 0x10]
cmp rbx, qword [r15 + 0x18]
je 0x14001bb32
xor r13d, r13d
nop word [rax + rax]
cmp qword [rbx + 0x18], 0x10
mov rsi, rbx
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r13w
jb 0x14001b97e
mov rsi, qword [rbx]
mov r14, qword [rbx + 0x10]
test r14, r14
jne 0x14001b995
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
jmp 0x14001ba7f
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov r8, rsi
mov qword [rsp + 0x20], r13
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x14001b9d1
cmp qword [rbp - 8], 8
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], r13
cmovae rax, qword [rbp - 0x20]
mov word [rax], r13w
jmp 0x14001ba7f
mov r8, qword [rbp - 0x10]
movsxd rcx, eax
cmp rcx, r8
ja 0x14001b9f6
cmp qword [rbp - 8], 8
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], rcx
cmovae rax, qword [rbp - 0x20]
mov word [rax + rcx*2], r13w
jmp 0x14001ba52
mov rdi, qword [rbp - 8]
mov rdx, rcx
mov rax, rdi
sub rdx, r8
sub rax, r8
cmp rdx, rax
ja 0x14001ba3a
cmp rdi, 8
mov qword [rbp - 0x10], rcx
lea r9, [rbp - 0x20]
cmovae r9, qword [rbp - 0x20]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001ba2f
movzx eax, r13w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], r13w
jmp 0x14001ba52
xor eax, eax
mov word [rsp + 0x20], r13w
movzx r8d, al
lea rcx, [rbp - 0x20]
mov r9, rdx
call fcn.140010be0
cmp qword [rbp - 8], 8
lea rcx, [rbp - 0x20]
mov eax, dword [rbp - 0x10]
mov r9d, r14d
cmovae rcx, qword [rbp - 0x20]
mov r8, rsi
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rcx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rbx + 0x38], 0x10
lea rdi, [rbx + 0x20]
jb 0x14001ba8d
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 0x10
mov rsi, rbx
jb 0x14001ba9a
mov rsi, qword [rbx]
cmp qword [rbp - 8], 8
lea rcx, [rbp - 0x20]
cmovae rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001babb
test al, 0x10
jne 0x14001babb
mov al, 1
jmp 0x14001babd
xor al, al
test al, al
mov qword [rsp + 0x20], rdi
lea rax, [0x14006377a]
mov r9, rsi
lea r8, str.MISSING:
mov rcx, r12
cmovne r8, rax
lea rdx, str.___s__s____s__r_n
call fcn.14003a530
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14001bb24
mov rcx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb1f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb64
call fcn.14003f61c
add rbx, 0x40
cmp rbx, qword [r15 + 0x18]
jne 0x14001b960
lea rdx, str._r_n_r_n
mov rcx, r12
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rbx
pop rbp
jmp fcn.14003a530
call fcn.14004a3a0
int3