Function at 0x140070970
Capabilities:
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, 0x238
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x140070a28
cmp byte [rsi + 0x48], 0
jne 0x140070bcc
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
je 0x140070a7f
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x140070a50
lea rcx, [rsi + 0x30]
call fcn.1400b4c50
lea rcx, [rsi + 0x18]
call fcn.1400b4c50
lea rax, [0x140181b98]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x140070a4d
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140070a20
call fcn.1400832c0
mov rcx, rsi
call fcn.1400dae18
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400dc300
nop
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x140070a71
add rdi, 0xffffffffffffff90
mov rcx, rdi
call fcn.140147060
cmp rdi, rbx
jne 0x140070a5c
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1400dae18
jmp 0x1400709ef
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x1400709e6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x13c
mov r9d, 2
call fcn.14012f9d0
lea rcx, [rsp + 0xe0]
lea rdx, [0x14019cbda]
mov r8d, 0xc
call fcn.140113430
mov rcx, rdi
call fcn.14012fa50
jmp 0x1400709e6
mov rdx, qword [rsp + 0x80]
sub rbx, rdx
je 0x14007123d
mov rcx, qword [rsi + 8]
mov r8, rbx
call fcn.140083d00
test al, al
jne 0x140070b1c
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x140070e0a
jmp 0x1400711ee
movzx r8d, byte [rsp + 0xb7]
test r8b, r8b
cmovs r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
cmovs rdx, qword [rsp + 0xa0]
mov rcx, qword [rsi + 8]
call fcn.140083d00
test al, al
jne 0x140070e0a
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x140070e0a
jmp 0x1400711b4
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov r8d, 0x225
mov r9d, 2
call fcn.1400473b0
lea rcx, [rsp + 0xe0]
mov rdx, r15
call fcn.140130810
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140113430
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.140130810
mov rcx, rbx
call fcn.1400479a0
jmp 0x140070e0a
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140083870
test rax, rax
je 0x140070ca4
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x1400709b2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.1400473b0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140113430
mov rcx, rdi
call fcn.1400479a0
jmp 0x1400709b2
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x1400709b2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.14012f9d0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140113430
mov rcx, rdi
call fcn.14012fa50
jmp 0x1400709b2
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140070c3f
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 + 0xcc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x140071173
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140083d00
test al, al
jne 0x140070d6b
mov ecx, 2
call fcn.1400b3f70
test al, al
je 0x1400709b2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x217
mov r9d, 2
call fcn.1400473b0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140070c2d
cmp r14, rbx
je 0x1400709b2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
movaps xmm0, xmmword [0x14017f9f0]
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rax
ja 0x140071233
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1400daddc
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov rdi, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp rdi, rax
je 0x14007123d
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140070ecd
mov ecx, 2
call fcn.1400b3f70
test al, al
jne 0x140070b6a
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140070e34
mov rax, qword [rsp + 0x88]
cmp rax, rcx
je 0x140070e2f
add rax, 0xffffffffffffffc8
jne 0x140070e1f
jmp 0x14007113f
call fcn.1400dae18
cmp byte [rsp + 0xb7], 0
jns 0x1400709b2
mov rcx, qword [rsp + 0xa0]
call fcn.1400dae18
jmp 0x1400709b2
test r12, r12
je 0x1400711a1
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x10], eax
mov eax, dword [rsp + 0x34]
mov dword [r12 + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x20], rax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x28], eax
mov dword [r12 + 0x2c], r15d
mov byte [r12 + 0x30], bpl
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
add r12, 0x38
mov qword [rsp + 0x88], r12
mov rbx, r12
add rdi, 0x70
cmp rdi, qword [rsp + 0x58]
je 0x140070ae4
lea r15, [rdi + 0x10]
mov rcx, r15
lea rbx, [rsp + 0xd0]
mov rdx, rbx
call fcn.1400b5410
mov rcx, rbx
mov rdx, qword [rsp + 0x50]
call fcn.140049310
mov ebp, eax
mov rcx, rbx
call fcn.1400b4c50
test bpl, bpl
jne 0x140070df8
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x220], xmm0
mov rcx, r15
lea rbx, [rsp + 0x60]
mov rdx, rbx
call fcn.1400b5d40
movzx ecx, byte [rsp + 0x77]
test cl, cl
jns 0x140070f32
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x210], rbx
mov qword [rsp + 0x218], rcx
test rcx, rcx
js 0x14007117b
je 0x140070f56
test rbx, rbx
je 0x14007118e
lea rbx, [rsp + 0xd0]
mov rcx, rbx
lea rdx, [rsp + 0x210]
call fcn.1400ad480
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140147310
mov dword [rsp + 0x3c], eax
cmp byte [rsp + 0xe7], 0
jns 0x140070f99
mov rcx, qword [rsp + 0xd0]
call fcn.1400dae18
lea rcx, [rsp + 0x60]
call fcn.1400b4c50
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.140147310
mov dword [rsp + 0x34], eax
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x48], rax
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x38], eax
mov bpl, byte [rdi + 0x5c]
add bpl, bpl
or bpl, byte [rdi + 0x48]
mov r15d, dword [rdi + 0x68]
mov r12, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp r12, rax
jb 0x140070e54
mov r13, qword [rsp + 0x80]
mov rbx, r12
sub rbx, r13
sar rbx, 3
movabs rcx, 0x6db6db6db6db6db7
imul rbx, rcx
lea r14, [rbx + 1]
movabs rcx, 0x492492492492492
cmp r14, rcx
ja 0x140071233
sub rax, r13
sar rax, 3
movabs rcx, 0x6db6db6db6db6db7
imul rax, rcx
lea rcx, [rax + rax]
cmp rcx, r14
cmova r14, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x14007116c
cmp r14, rax
ja 0x140071238
imul rcx, r14, 0x38
call fcn.1400daddc
imul rbx, rbx, 0x38
add rbx, rax
je 0x1400711a1
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [rbx], xmm0
mov ecx, dword [rsp + 0x3c]
mov dword [rbx + 0x10], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rbx + 0x14], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x20], rcx
mov ecx, dword [rsp + 0x38]
mov dword [rbx + 0x28], ecx
mov dword [rbx + 0x2c], r15d
mov byte [rbx + 0x30], bpl
xor ecx, ecx
mov dword [rbx + 0x31], ecx
mov dword [rbx + 0x34], ecx
mov rdx, rbx
cmp r12, r13
je 0x140071119
mov rcx, rbx
mov r8, r12
mov rdx, qword [r8 - 8]
mov qword [rcx - 8], rdx
movups xmm0, xmmword [r8 - 0x38]
movups xmm1, xmmword [r8 - 0x28]
movups xmm2, xmmword [r8 - 0x18]
lea r9, [r8 - 0x38]
lea rdx, [rcx - 0x38]
movups xmmword [rcx - 0x18], xmm2
movups xmmword [rcx - 0x28], xmm1
movups xmmword [rcx - 0x38], xmm0
mov rcx, rdx
mov r8, r9
cmp r9, r13
jne 0x1400710e3
imul rcx, r14, 0x38
add rax, rcx
add rbx, 0x38
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x90], rax
cmp r12, r13
je 0x140071152
add r12, 0xffffffffffffffc8
jne 0x140071134
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140114030
test r13, r13
je 0x14007115f
mov rcx, r13
call fcn.1400dae18
mov qword [rsp + 0x88], rbx
jmp 0x140070ebe
xor eax, eax
jmp 0x140071086
int3
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140114030
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140114030
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140114030
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.1400473b0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x140071226
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.1400473b0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140113430
mov rcx, rdi
jmp 0x140070bc2
call fcn.140112ec0
call fcn.140113200
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_vector:1393:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.140114030
int3