Function at 0x140001e9a
Capabilities:
Check if file exists
Clear file content
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
jne 0x140001ef3
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140171860
nop
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x48], 0
je 0x140001fce
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400fe615
test rax, rax
jne 0x140001f80
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400020cd
cmp dword [0x140352b00], 2
jg 0x140001fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x21c
mov r9d, 2
call fcn.14020a880
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14015f6d6
mov rcx, rdi
call fcn.14020a900
jmp 0x140001fce
cmp dword [0x140352b00], 2
jg 0x140001fce
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x215
mov r9d, 2
call fcn.1400d3710
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14015f6d6
mov rcx, rdi
call fcn.140169410
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xffffffff
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x140002076
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, str.Microsoft.Crashpad.UnlockFileExFailedWithHR
call fcn.1400841f0
cmp dword [0x140352b00], 2
jg 0x140002076
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x146
mov r9d, 2
call fcn.14020a880
lea rcx, [rsp + 0xc0]
lea rdx, [0x14030ceda]
mov r8d, 0xc
call fcn.14015f6d6
mov rcx, rdi
call fcn.14020a900
lea rcx, [rsi + 0x50]
call fcn.140131ba6
cmp byte [rsi + 0x47], 0
jns 0x14000208e
mov rcx, qword [rsi + 0x30]
call fcn.14016eccc
cmp byte [rsi + 0x2f], 0
jns 0x14000209d
mov rcx, qword [rsi + 0x18]
call fcn.14016eccc
lea rax, [0x1402fd460]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x14000269b
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400020c0
call fcn.1400d0f6a
mov rcx, rsi
call fcn.14016eccc
jmp 0x140001ece
mov rbx, qword [rsi + 0x50]
mov r14, qword [rsi + 0x58]
mov rdi, r14
sub rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xac], 0
movabs rax, 0x843504144
mov qword [rsp + 0xa0], rax
mov rax, rdi
shr rax, 0x20
jne 0x140002689
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1401086b5
test al, al
je 0x1400024ed
cmp r14, rbx
je 0x140001fce
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x140002691
imul rbx, rdi, 0x38
mov rcx, rbx
call fcn.14016ecd4
mov rbp, rax
mov rdi, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp rdi, rax
je 0x1400026a4
add rbx, rbp
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x60]
lea r15, [rsp + 0x80]
mov qword [rsp + 0x30], rbp
mov r8, rbx
mov r13, r8
lea rbx, [rdi + 0x10]
mov rcx, rbx
lea r14, [rsp + 0xb0]
mov rdx, r14
call fcn.140050490
mov rcx, r14
mov rdx, qword [rsp + 0x40]
call fcn.140050a50
mov r14d, eax
cmp byte [rsp + 0xc7], 0
jns 0x1400021f5
mov rcx, qword [rsp + 0xb0]
call fcn.14016eccc
test r14b, r14b
jne 0x140002537
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x200], xmm0
mov rcx, rbx
mov rdx, r12
call fcn.140050ca0
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, r12
mov qword [rsp + 0x1f0], rax
cmovs rcx, qword [rsp + 0x68]
mov qword [rsp + 0x1f8], rcx
lea rbx, [rsp + 0xb0]
mov rcx, rbx
lea rdx, [rsp + 0x1f0]
call fcn.1400673e0
mov rcx, r15
mov rdx, rbx
call fcn.14024a85e
mov ebx, eax
cmp byte [rsp + 0xc7], 0
jns 0x14000227b
mov rcx, qword [rsp + 0xb0]
call fcn.14016eccc
cmp byte [rsp + 0x77], 0
jns 0x14000228c
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.14024a85e
mov r14d, eax
mov rax, qword [rdi + 0x40]
mov r11, qword [rdi + 0x50]
mov r10d, dword [rdi + 0x58]
mov r9d, dword [rdi + 0x68]
mov r15b, byte [rdi + 0x5c]
add r15b, r15b
or r15b, byte [rdi + 0x48]
mov r8, r13
cmp rbp, r13
jae 0x1400022fb
test rbp, rbp
je 0x14000269e
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rbp], xmm0
mov dword [rbp + 0x10], ebx
mov dword [rbp + 0x14], r14d
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], r11
mov dword [rbp + 0x28], r10d
mov dword [rbp + 0x2c], r9d
mov byte [rbp + 0x30], r15b
xor eax, eax
mov dword [rbp + 0x31], eax
mov dword [rbp + 0x34], eax
jmp 0x14000242c
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
sub rbp, rax
mov r12, rbp
sar r12, 3
movabs rcx, 0x6db6db6db6db6db7
imul r12, rcx
lea r13, [r12 + 1]
movabs rdx, 0x492492492492492
cmp r13, rdx
ja 0x140002691
mov dword [rsp + 0x38], r14d
sub r8, rax
sar r8, 3
imul r8, rcx
lea rax, [r8 + r8]
cmp rax, r13
cmova r13, rax
movabs rax, 0x249249249249249
cmp r8, rax
cmovae r13, rdx
test r13, r13
mov dword [rsp + 0x3c], ebx
jne 0x14000236e
xor eax, eax
jmp 0x140002396
mov qword [rsp + 0x48], r11
cmp r13, rdx
ja 0x140002696
mov ebx, r10d
mov r14d, r9d
imul rcx, r13, 0x38
call fcn.14016ecd4
mov r9d, r14d
mov r10d, ebx
mov r11, qword [rsp + 0x48]
imul r12, r12, 0x38
add r12, rax
je 0x1400026a1
mov r14, rax
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x10], eax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x18], rax
mov qword [r12 + 0x20], r11
mov dword [r12 + 0x28], r10d
mov dword [r12 + 0x2c], r9d
mov byte [r12 + 0x30], r15b
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
mov rbx, r12
sub rbx, rbp
mov rcx, rbx
mov r15, qword [rsp + 0x30]
mov rdx, r15
mov r8, rbp
call fcn.1401730b0
imul r13, r13, 0x38
test r15, r15
je 0x140002419
mov rcx, r15
call fcn.14016eccc
mov r8, r14
add r8, r13
mov qword [rsp + 0x30], rbx
mov rbp, r12
lea r12, [rsp + 0x60]
lea r15, [rsp + 0x80]
add rbp, 0x38
add rdi, 0x70
cmp rdi, qword [rsp + 0x58]
jne 0x1400021b4
mov rdi, qword [rsp + 0x30]
sub rbp, rdi
je 0x1400026a4
mov rcx, qword [rsi + 8]
mov rdx, rdi
mov r8, rbp
call fcn.1401086b5
test al, al
je 0x14000260e
movzx eax, byte [rsp + 0x97]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rsp + 0x88]
cmovs r15, qword [rsp + 0x80]
mov rcx, qword [rsi + 8]
mov rdx, r15
call fcn.1401086b5
test al, al
jne 0x14000265c
cmp dword [0x140352b00], 2
jg 0x14000265c
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r8d, 0x245
mov r9d, 2
call fcn.1400d3710
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14000264f
cmp dword [0x140352b00], 2
jg 0x140001fce
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x228
mov r9d, 2
call fcn.1400d3710
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140001fc1
cmp dword [0x140352b00], 2
jg 0x1400026a7
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xb0]
mov r8d, 0x236
mov r9d, 2
call fcn.1400d3710
lea rcx, [rsp + 0xc0]
cmp byte [rdi + 0x27], 0
jns 0x140002575
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x30]
mov rdx, rbx
call fcn.14020a9c0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14015f6d6
movzx ecx, byte [rsi + 0x2f]
mov r8d, ecx
and r8d, 0x7f
test cl, cl
mov rcx, qword [rsp + 0x40]
cmovs rcx, qword [rsi + 0x18]
mov rbx, rax
lea rdx, [rsp + 0x1f0]
mov qword [rdx], rcx
cmovs r8, qword [rsi + 0x20]
mov qword [rdx + 8], r8
mov rcx, r12
call fcn.1400673e0
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
jns 0x1400025e4
mov r8, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
jmp 0x1400025e8
and r8d, 0x7f
mov rcx, rbx
mov rdx, r12
call fcn.14015f6d6
cmp byte [rsp + 0x77], 0
jns 0x140002604
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
lea rcx, [rsp + 0xb0]
jmp 0x140002657
cmp dword [0x140352b00], 2
jg 0x14000265c
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r8d, 0x240
mov r9d, 2
call fcn.1400d3710
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.14015f6d6
mov rcx, rbx
call fcn.140169410
test rdi, rdi
je 0x140002669
mov rcx, rdi
call fcn.14016eccc
cmp byte [rsp + 0x97], 0
jns 0x140001fce
mov rcx, qword [rsp + 0x80]
call fcn.14016eccc
jmp 0x140001fce
int3
call fcn.14016fee0
call fcn.1401c93df
int3
int3
int3
int3
mov rdi, qword [rsp + 0x30]
jmp 0x14000265c