Function at 0x14000c680
Capabilities:
Clear file content

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x228
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1a0], 0xfffffffffffffffe
mov r14, qword [rcx]
test r14, r14
je 0x14000c831
cmp byte [r14 + 0x38], 1
jne 0x14000c713
mov rcx, qword [r14]
xor edx, edx
xor r8d, r8d
call fcn.140049a80
test rax, rax
je 0x14000c846
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x204
call fcn.140005c30
lea rcx, [rbp - 0x48]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1400048b0
lea rcx, [rbp - 0x50]
call fcn.140006650
xorps xmm0, xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov rcx, qword [r14]
lea rax, [rbp + 0x130]
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 0x14000c798
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.__cdecl_crashpad::_anonymous_namespace_::Metadata::Metadata_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x13c
call fcn.1400069d0
lea rcx, [rbp - 0x48]
lea rdx, [0x1400c70e6]
mov r8d, 0xc
call fcn.1400048b0
lea rcx, [rbp - 0x50]
call fcn.140006a90
mov rsi, qword [r14 + 0x40]
test rsi, rsi
je 0x14000c804
mov rdi, qword [r14 + 0x48]
mov rcx, rsi
cmp rsi, rdi
je 0x14000c7f4
add rdi, 0xffffffffffffffa0
movabs rbx, 0x7fffffffffffffff
jmp 0x14000c7d8
mov rcx, rdi
call fcn.140007390
lea rax, [rdi - 0x70]
add rdi, 0xfffffffffffffff0
cmp rdi, rsi
mov rdi, rax
je 0x14000c7f0
cmp byte [rdi + 0x2f], 0
jns 0x14000c7c0
mov rdx, qword [rdi + 0x28]
and rdx, rbx
mov rcx, qword [rdi + 0x18]
call fcn.14009665c
jmp 0x14000c7c0
mov rcx, qword [r14 + 0x40]
mov qword [r14 + 0x48], rsi
mov rdx, qword [r14 + 0x50]
sub rdx, rcx
call fcn.14009665c
lea rcx, [r14 + 0x20]
call fcn.140007390
lea rcx, [r14 + 8]
call fcn.140007390
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x14000c824
call fcn.14004b650
mov edx, 0x58
mov rcx, r14
call fcn.14009665c
nop
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14000ccbc
mov rsi, qword [r14 + 0x40]
mov rbx, qword [r14 + 0x48]
mov rdi, rbx
sub rdi, rsi
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rbp + 0x10c], 0
movabs rax, 0x143504144
mov qword [rbp + 0x100], rax
mov rax, rdi
shr rax, 0x20
jne 0x14000cf4d
mov eax, edi
mov dword [rbp + 0x108], eax
mov rcx, qword [r14]
lea rdx, [rbp + 0x100]
mov r8d, 0x10
call fcn.14004a150
test al, al
je 0x14000cd0e
cmp rbx, rsi
je 0x14000c713
mov qword [rbp + 0x178], r14
xorps xmm0, xmm0
movaps xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], 0
movabs rax, 0x492492492492493
cmp rdi, rax
jae 0x14000cf89
imul rcx, rdi, 0x38
mov qword [rbp + 0x190], 0
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x198], rcx
call fcn.140096664
mov r15, rax
add qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x178]
mov rbx, qword [rax + 0x40]
mov rcx, qword [rax + 0x48]
mov qword [rbp + 0x110], rcx
lea rcx, [rax + 8]
mov qword [rbp + 0x150], rcx
lea r8, [rbp - 0x50]
mov rsi, r15
jmp 0x14000c9aa
movaps xmm0, xmmword [rbp + 0xf0]
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], r12d
mov dword [rsi + 0x14], r15d
mov qword [rsi + 0x18], r8
mov qword [rsi + 0x20], r11
mov dword [rsi + 0x28], r10d
mov dword [rsi + 0x2c], r9d
mov byte [rsi + 0x30], r14b
mov dword [rsi + 0x31], 0
mov dword [rsi + 0x34], 0
add rsi, 0x38
mov r14, rsi
mov rax, qword [rbp + 0x178]
mov r15, qword [rbp + 0x180]
lea r8, [rbp - 0x50]
add rbx, 0x70
mov rsi, r14
cmp rbx, qword [rbp + 0x110]
mov qword [rbp + 0x180], r15
je 0x14000cd4e
lea rdi, [rbx + 0x10]
mov qword [rbp + 0x190], r15
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov rcx, rdi
mov rdx, r8
call fcn.1400076c0
lea r14, [rbp - 0x50]
mov rcx, r14
mov rdx, qword [rbp + 0x150]
call fcn.1400076b0
mov r15d, eax
mov rcx, r14
call fcn.140007390
test r15b, r15b
jne 0x14000ce2d
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0xf0], xmm0
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov rcx, rdi
lea rdx, [rbp + 0x130]
call fcn.140007980
movsx rax, byte [rbp + 0x147]
test rax, rax
cmovs rax, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x130]
lea rdx, [rbp + 0x130]
cmovns rcx, rdx
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rax
lea rdi, [rbp - 0x50]
mov rcx, rdi
lea rdx, [rbp + 0xe0]
call fcn.140017cd0
lea rcx, [rbp + 0x160]
mov rdx, rdi
call fcn.140010040
mov r12d, eax
cmp byte [rbp - 0x39], 0
jns 0x14000cab6
mov rdx, qword [rbp - 0x40]
movabs rax, 0x7fffffffffffffff
and rdx, rax
mov rcx, qword [rbp - 0x50]
call fcn.14009665c
lea rcx, [rbp + 0x130]
call fcn.140007390
lea rdx, [rbx + 0x28]
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
lea rcx, [rbp + 0x160]
call fcn.140010040
mov r15d, eax
mov r8, qword [rbx + 0x40]
mov r11, qword [rbx + 0x50]
mov r10d, dword [rbx + 0x58]
mov r9d, dword [rbx + 0x68]
movzx r14d, byte [rbx + 0x5c]
add r14b, r14b
or r14b, byte [rbx + 0x48]
cmp rsi, qword [rbp + 0x198]
jb 0x14000c956
mov rdx, qword [rbp + 0x180]
sub rsi, rdx
mov r13, rsi
sar r13, 3
movabs rcx, 0x6db6db6db6db6db7
imul r13, rcx
lea rdi, [r13 + 1]
movabs rax, 0x492492492492493
cmp rdi, rax
jae 0x14000cf55
mov rax, qword [rbp + 0x198]
sub rax, rdx
mov qword [rbp + 0x120], rax
sar rax, 3
imul rax, rcx
lea rcx, [rax + rax]
cmp rcx, rdi
cmova rdi, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
movabs rax, 0x492492492492492
cmovae rdi, rax
test rdi, rdi
mov qword [rbp + 0x118], r8
je 0x14000cbfb
mov qword [rbp + 0x128], r11
mov dword [rbp + 0x15c], r10d
mov dword [rbp + 0x158], r9d
movabs rax, 0x492492492492493
cmp rdi, rax
jae 0x14000cf6f
imul rcx, rdi, 0x38
mov qword [rbp + 0x190], rdx
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
call fcn.140096664
mov rcx, rax
mov r9d, dword [rbp + 0x158]
mov r10d, dword [rbp + 0x15c]
mov r11, qword [rbp + 0x128]
jmp 0x14000cbfd
xor ecx, ecx
imul r8, r13, 0x38
imul rax, rdi, 0x38
add rax, rcx
mov qword [rbp + 0x198], rax
movaps xmm0, xmmword [rbp + 0xf0]
movups xmmword [rcx + r8], xmm0
mov dword [rcx + r8 + 0x10], r12d
mov dword [rcx + r8 + 0x14], r15d
mov rax, qword [rbp + 0x118]
mov qword [rcx + r8 + 0x18], rax
mov qword [rcx + r8 + 0x20], r11
mov dword [rcx + r8 + 0x28], r10d
mov dword [rcx + r8 + 0x2c], r9d
mov byte [rcx + r8 + 0x30], r14b
mov dword [rcx + r8 + 0x31], 0
mov dword [rcx + r8 + 0x34], 0
lea r14, [rcx + r8]
add r14, 0x38
mov rax, rsi
movabs rdx, 0xb6db6db6db6db6db
imul rdx
mov rax, rdx
shr rax, 0x3f
sar rdx, 4
add rdx, rax
imul r15, rdx, 0x38
add r15, rcx
add r15, r8
mov rcx, r15
mov rdi, qword [rbp + 0x180]
mov rdx, rdi
mov r8, rsi
call fcn.140098a10
test rdi, rdi
je 0x14000ccb0
mov rcx, rdi
mov rdx, qword [rbp + 0x120]
call fcn.14009665c
mov rax, qword [rbp + 0x178]
jmp 0x14000c99f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x20b
call fcn.1400069d0
lea rcx, [rbp - 0x48]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1400048b0
lea rcx, [rbp - 0x50]
call fcn.140006a90
jmp 0x14000c713
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x217
call fcn.140005c30
lea rcx, [rbp - 0x48]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
call fcn.1400048b0
jmp 0x14000c70a
sub rsi, r15
mov rcx, qword [rax]
mov qword [rbp + 0x190], r15
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov rdx, r15
mov r8, rsi
call fcn.14004a150
test al, al
je 0x14000cea0
movsx r8, byte [rbp + 0x177]
test r8, r8
cmovs r8, qword [rbp + 0x168]
lea rdx, [rbp + 0x160]
cmovs rdx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x178]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
call fcn.14004a150
test al, al
jne 0x14000cf00
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x233
call fcn.140005c30
lea rcx, [rbp - 0x48]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
call fcn.1400048b0
jmp 0x14000cef7
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x225
call fcn.140005c30
lea rcx, [rbp - 0x48]
mov rdx, rdi
call fcn.140008200
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1400048b0
mov rcx, rax
mov rdx, qword [rbp + 0x150]
call fcn.140008200
jmp 0x14000cef7
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
mov dword [rsp + 0x20], 2
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace_::Metadata::Write_void_
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x22e
call fcn.140005c30
lea rcx, [rbp - 0x48]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1400048b0
lea rcx, [rbp - 0x50]
call fcn.140006650
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14000cf1b
mov rdx, qword [rbp + 0x198]
sub rdx, rcx
call fcn.14009665c
cmp byte [rbp + 0x177], 0
jns 0x14000cf41
movabs rdx, 0x7fffffffffffffff
and rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x160]
call fcn.14009665c
mov r14, qword [rbp + 0x178]
jmp 0x14000c713
int3
mov qword [rbp + 0x190], rdx
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
call fcn.140005110
mov qword [rbp + 0x190], rdx
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
call fcn.140004690
mov qword [rbp + 0x190], 0
mov qword [rbp + 0x188], 0
call fcn.140005110
int3