Function at 0x1400bbd30
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x228
mov rax, qword [0x14036e038]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1400bbe23
cmp byte [rsi + 0x48], 0
je 0x1400bbd97
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400efcf0
test rax, rax
je 0x1400bbe5f
mov ecx, 2
call fcn.140162930
test al, al
jne 0x1400bbef2
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
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 0x1400bbdd9
mov ecx, 2
call fcn.140162930
test al, al
jne 0x1400bbf3c
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x1400bc598
lea rcx, [rsi + 0x30]
call fcn.140163700
lea rcx, [rsi + 0x18]
call fcn.140163700
lea rax, [0x1402f0c88]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1400bc595
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400bbe1b
call fcn.1400e9720
mov rcx, rsi
call fcn.1401ae9b8
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401b0080
nop
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.140162930
test al, al
je 0x1400bbd97
jmp 0x1400bc379
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400bbe48
mov rbx, qword [rsi + 0x50]
mov r14, qword [rsi + 0x58]
mov rdi, r14
sub rdi, rbx
sar rdi, 4
movabs r15, 0x6db6db6db6db6db7
imul rdi, r15
mov dword [rsp + 0xb4], 0
movabs rax, 0x143504144
mov qword [rsp + 0xa8], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400bc537
mov eax, edi
lea rdx, [rsp + 0xa8]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400f0180
test al, al
jne 0x1400bbf8f
mov ecx, 2
call fcn.140162930
test al, al
je 0x1400bbd97
jmp 0x1400bc33c
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.1400762b0
lea rcx, [rsp + 0xc8]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1401e8d00
mov rcx, rdi
call fcn.1400768a0
jmp 0x1400bbd97
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x13c
mov r9d, 2
call fcn.14021aa00
lea rcx, [rsp + 0xc8]
lea rdx, [0x14031167a]
mov r8d, ntohl
call fcn.1401e8d00
mov rcx, rdi
call fcn.14021aa80
jmp 0x1400bbdd9
cmp r14, rbx
je 0x1400bbd97
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
movaps xmm0, xmmword [0x1402eb060]
movaps xmmword [rsp + 0x70], xmm0
cmp rdi, rax
ja 0x1400bc578
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1401ae97c
add rdi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rdi
mov rdi, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x48], rax
cmp rdi, rax
je 0x1400bc582
lea rbp, [rsi + 0x18]
lea r14, [rsp + 0xb8]
lea rbx, [rsp + 0x90]
mov qword [rsp + 0x28], rbp
jmp 0x1400bc0e2
mov ecx, 2
call fcn.140162930
test al, al
jne 0x1400bc4c2
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400bc059
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x1400bc054
add rax, 0xffffffffffffffc8
jne 0x1400bc044
jmp 0x1400bc524
call fcn.1401ae9b8
cmp byte [rsp + 0xa7], 0
jns 0x1400bbd97
mov rcx, qword [rsp + 0x90]
call fcn.1401ae9b8
jmp 0x1400bbd97
test r13, r13
je 0x1400bc565
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r13], xmm0
mov dword [r13 + 0x10], r14d
mov dword [r13 + 0x14], r11d
mov qword [r13 + 0x18], r12
mov qword [r13 + 0x20], r10
mov dword [r13 + 0x28], ebp
mov dword [r13 + 0x2c], r8d
mov byte [r13 + 0x30], bl
xor eax, eax
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], eax
add r13, 0x38
mov qword [rsp + 0x78], r13
lea rbx, [rsp + 0x90]
mov rbp, qword [rsp + 0x28]
add rdi, 0x70
cmp rdi, qword [rsp + 0x48]
lea r14, [rsp + 0xb8]
je 0x1400bc3cc
lea r12, [rdi + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.140163ef0
mov rcx, r14
mov rdx, rbp
call fcn.140078540
mov ebp, eax
mov rcx, r14
call fcn.140163700
test bpl, bpl
jne 0x1400bc023
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x210], xmm0
mov rcx, r12
lea r12, [rsp + 0x50]
mov rdx, r12
call fcn.140164820
movzx ecx, byte [rsp + 0x67]
test cl, cl
jns 0x1400bc13d
mov rcx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x1f8], r12
mov qword [rsp + 0x200], rcx
test rcx, rcx
js 0x1400bc53f
je 0x1400bc161
test r12, r12
je 0x1400bc552
mov rcx, r14
lea rdx, [rsp + 0x1f8]
call fcn.14015b4e0
mov rcx, rbx
mov rdx, r14
call fcn.1402514b0
mov r14d, eax
cmp byte [rsp + 0xcf], 0
jns 0x1400bc196
mov rcx, qword [rsp + 0xb8]
call fcn.1401ae9b8
lea rcx, [rsp + 0x50]
call fcn.140163700
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.1402514b0
mov r11d, eax
mov r12, qword [rdi + 0x40]
mov r10, qword [rdi + 0x50]
mov ebp, dword [rdi + 0x58]
mov r8d, dword [rdi + 0x68]
mov bl, byte [rdi + 0x5c]
add bl, bl
or bl, byte [rdi + 0x48]
xor eax, eax
mov dword [rsp + 0x20b], eax
mov dword [rsp + 0x208], eax
mov r13, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
cmp r13, rax
jb 0x1400bc079
mov dword [rsp + 0x34], r14d
mov rcx, qword [rsp + 0x70]
sub r13, rcx
sar r13, 3
imul r13, r15
lea r14, [r13 + 1]
movabs rdx, 0x492492492492492
cmp r14, rdx
ja 0x1400bc578
sub rax, rcx
sar rax, 3
imul rax, r15
lea rcx, [rax + rax]
cmp rcx, r14
cmova r14, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
cmovae r14, rdx
test r14, r14
je 0x1400bc334
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x40], r10
cmp r14, rdx
ja 0x1400bc57d
mov r12d, r8d
imul rcx, r14, 0x38
call fcn.1401ae97c
mov r15, rax
mov r8d, r12d
mov r10, qword [rsp + 0x40]
mov r11d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
imul r13, r13, 0x38
add r13, r15
je 0x1400bc565
imul rax, r14, 0x38
add r15, rax
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r13], xmm0
mov eax, dword [rsp + 0x34]
mov dword [r13 + 0x10], eax
mov dword [r13 + 0x14], r11d
mov qword [r13 + 0x18], r12
mov qword [r13 + 0x20], r10
mov dword [r13 + 0x28], ebp
mov dword [r13 + 0x2c], r8d
mov byte [r13 + 0x30], bl
mov eax, dword [rsp + 0x208]
mov ecx, dword [rsp + 0x20b]
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], ecx
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
sub r8, rdx
mov r12, r13
sub r12, r8
mov rcx, r12
call fcn.1401b1b20
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x80], r15
test rcx, rcx
je 0x1400bc30f
call fcn.1401ae9b8
add r13, 0x38
mov qword [rsp + 0x78], r13
movabs r15, 0x6db6db6db6db6db7
mov rbp, qword [rsp + 0x28]
lea rbx, [rsp + 0x90]
jmp 0x1400bc0cb
xor r15d, r15d
jmp 0x1400bc281
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x217
mov r9d, 2
call fcn.1400762b0
lea rcx, [rsp + 0xc8]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400bbf2a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.14021aa00
lea rcx, [rsp + 0xc8]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1401e8d00
mov rcx, rdi
call fcn.14021aa80
jmp 0x1400bbd97
mov rdx, qword [rsp + 0x70]
sub r13, rdx
je 0x1400bc582
mov rcx, qword [rsi + 8]
mov r8, r13
call fcn.1400f0180
test al, al
jne 0x1400bc441
mov ecx, 2
call fcn.140162930
test al, al
je 0x1400bc035
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.1400762b0
lea rcx, [rsp + 0xc8]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1401e8d00
mov rcx, rdi
jmp 0x1400bc51a
movzx r8d, byte [rsp + 0xa7]
test r8b, r8b
cmovs r8, qword [rsp + 0x98]
cmovs rbx, qword [rsp + 0x90]
mov rcx, qword [rsi + 8]
mov rdx, rbx
call fcn.1400f0180
test al, al
jne 0x1400bc035
mov ecx, 2
call fcn.140162930
test al, al
je 0x1400bc035
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb8]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.1400762b0
lea rcx, [rsp + 0xc8]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400bc434
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb8]
mov rcx, rbx
mov r8d, 0x225
mov r9d, 2
call fcn.1400762b0
lea rcx, [rsp + 0xc8]
mov rdx, r12
call fcn.14021b9c0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1401e8d00
mov rcx, rax
mov rdx, qword [rsp + 0x28]
call fcn.14021b9c0
mov rcx, rbx
call fcn.1400768a0
jmp 0x1400bc035
lea rcx, [0x1402f4f7c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401ec0b0
int3
lea rcx, [0x1402f4f7c]
lea rdx, str....._third_partylibc_srcinclude_string_view:314:_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.1401ec0b0
lea rcx, [0x1402f4f7c]
lea rdx, str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1401ec0b0
lea rcx, [0x1402f4f7c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1401ec0b0
call fcn.1401e8ca0
call fcn.1401e8c80
lea rcx, [0x1402f4f7c]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1401ec0b0
int3
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x1400bc5b9
add rdi, 0xffffffffffffff90
mov rcx, rdi
call fcn.14021d480
cmp rdi, rbx
jne 0x1400bc5a4
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1401ae9b8
jmp 0x1400bbde6