Function at 0x140056a20
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, 0x218
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x140056ae8
cmp byte [rsi + 0x48], 1
je 0x140056b9a
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 0x140056b35
mov rdx, qword [rsi + 0x50]
test rdx, rdx
jne 0x140056b1c
cmp byte [rsi + 0x47], 0
jns 0x140056aae
mov rcx, qword [rsi + 0x30]
call fcn.1401a9dc4
cmp byte [rsi + 0x2f], 0
jns 0x140056abd
mov rcx, qword [rsi + 0x18]
call fcn.1401a9dc4
lea rax, [0x14029b748]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 1
je 0x140056b16
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140056ae0
call fcn.140057220
test al, al
je 0x140056b19
mov rcx, rsi
call fcn.1401a9dc4
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140056b02
call fcn.1401ac870
int3
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
int3
lea rdi, [rsi + 0x50]
mov rcx, rdi
call fcn.140241770
mov rcx, qword [rdi]
call fcn.1401a9dc4
jmp 0x140056a9f
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x140056a96
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x13c
mov r9d, 2
call fcn.14022a1d0
lea rcx, [rsp + 0xe8]
lea rdx, [0x1402b89bc]
mov r8d, Ordinal_14
call fcn.14018fa80
mov rcx, rdi
call fcn.14022a240
jmp 0x140056a96
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140057e30
test rax, rax
je 0x140056c09
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x140056a62
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xe8]
lea rdx, str.failed_to_rewind_to_write
mov r8d, Ordinal_26
call fcn.14018fa80
mov rcx, rdi
call fcn.140001aa0
jmp 0x140056a62
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140056cd8
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, 0x143504144
mov qword [rsp + 0xa0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400571fe
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.14004ebf0
test al, al
jne 0x140056d3d
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x140056a62
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x217
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xe8]
lea rdx, str.failed_to_write_header
mov r8d, Ordinal_26
jmp 0x140056bf7
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x140056a62
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.14022a1d0
lea rcx, [rsp + 0xe8]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14018fa80
mov rcx, rdi
call fcn.14022a240
jmp 0x140056a62
cmp r14, rbx
je 0x140056a62
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x140057206
imul rbp, rdi, 0x38
mov rcx, rbp
call fcn.1401a9d88
mov r15, rax
mov r12, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp r12, rax
je 0x1400570e6
add rbp, r15
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
mov rbx, r15
jmp 0x140056e07
test rbx, rbx
je 0x1400570e6
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rbx], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x20], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x2c], eax
mov byte [rbx + 0x30], r13b
xor eax, eax
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], eax
add rbx, 0x38
add r12, 0x70
cmp r12, qword [rsp + 0x58]
je 0x140057110
lea r14, [r12 + 0x10]
mov rcx, r14
lea rdi, [rsp + 0xd8]
mov rdx, rdi
call fcn.1401682d0
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.140066c50
mov edi, eax
cmp byte [rsp + 0xef], 0
jns 0x140056e45
mov rcx, qword [rsp + 0xd8]
call fcn.1401a9dc4
test dil, dil
jne 0x14005706b
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xc0], xmm0
mov rcx, r14
lea rdi, [rsp + 0x60]
mov rdx, rdi
call fcn.140167f30
movsx rax, byte [rsp + 0x77]
test rax, rax
jns 0x140056e80
mov rax, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rax
lea rdi, [rsp + 0xd8]
mov rcx, rdi
lea rdx, [rsp + 0xb0]
call fcn.14015b7d0
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140241990
mov dword [rsp + 0x3c], eax
cmp byte [rsp + 0xef], 0
jns 0x140056ed3
mov rcx, qword [rsp + 0xd8]
call fcn.1401a9dc4
cmp byte [rsp + 0x77], 0
jns 0x140056ee4
mov rcx, qword [rsp + 0x60]
call fcn.1401a9dc4
lea rdx, [r12 + 0x28]
lea rcx, [rsp + 0x80]
call fcn.140241990
mov dword [rsp + 0x34], eax
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [r12 + 0x50]
mov qword [rsp + 0x48], rax
mov eax, dword [r12 + 0x58]
mov dword [rsp + 0x38], eax
mov r13b, byte [r12 + 0x5c]
add r13b, r13b
or r13b, byte [r12 + 0x48]
mov eax, dword [r12 + 0x68]
mov dword [rsp + 0x30], eax
xor eax, eax
mov dword [rsp + 0xdb], eax
mov dword [rsp + 0xd8], eax
cmp rbx, rbp
jb 0x140056da6
sub rbx, r15
mov rdi, rbx
sar rdi, 3
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
lea r14, [rdi + 1]
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x140057206
sub rbp, r15
sar rbp, 3
movabs rax, 0x6db6db6db6db6db7
imul rbp, rax
lea rax, [rbp*2]
cmp rax, r14
cmova r14, rax
movabs rax, 0x249249249249249
cmp rbp, rax
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x140057064
cmp r14, rax
ja 0x14005720b
imul rcx, r14, 0x38
call fcn.1401a9d88
mov rbp, rax
imul rdi, rdi, 0x38
add rdi, rbp
je 0x1400570e6
imul rax, r14, 0x38
add rbp, rax
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rdi], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [rdi + 0x10], eax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x20], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x2c], eax
mov byte [rdi + 0x30], r13b
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0xdb]
mov dword [rdi + 0x31], eax
mov dword [rdi + 0x34], ecx
lea r14, [rdi + 0x38]
sub rdi, rbx
mov rcx, rdi
mov rdx, r15
mov r8, rbx
call fcn.1401e56b0
test r15, r15
je 0x140057059
mov rcx, r15
call fcn.1401a9dc4
mov r15, rdi
mov rbx, r14
jmp 0x140056df8
xor ebp, ebp
jmp 0x140056fd2
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x1400570d6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x225
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xe8]
mov rdx, r14
call fcn.14022b160
lea rdx, str._expected_to_start_with
mov r8d, Ordinal_26
mov rcx, rax
call fcn.14018fa80
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.14022b160
mov rcx, rdi
call fcn.140001aa0
test r15, r15
je 0x1400570f0
cmp rbx, r15
je 0x1400570e8
add rbx, 0xffffffffffffffc8
jne 0x1400570db
ud2
mov rcx, r15
call fcn.1401a9dc4
cmp byte [rsp + 0x97], 0
jns 0x140056a62
mov rcx, qword [rsp + 0x80]
call fcn.1401a9dc4
jmp 0x140056a62
mov r8, rbx
sub r8, r15
je 0x1400570e6
mov rcx, qword [rsi + 8]
mov rdx, r15
call fcn.14004ebf0
test al, al
jne 0x140057178
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x1400570d6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xe8]
lea rdx, str.failed_to_write_records
mov r8d, Ordinal_26
call fcn.14018fa80
jmp 0x1400570ce
movsx r8, byte [rsp + 0x97]
test r8, r8
cmovs r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x80]
cmovs rdx, qword [rsp + 0x80]
mov rcx, qword [rsi + 8]
call fcn.14004ebf0
test al, al
jne 0x1400570d6
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x1400570d6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xe8]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14005716e
int3
call fcn.1401e9f80
call fcn.1401e9820
int3