Function at 0x14012d0a0
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 [0x140418038]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x14012d160
cmp byte [rsi + 0x48], 0
jne 0x14012d185
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
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 0x14012d1f8
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x14012d25d
lea rcx, [rsi + 0x30]
call fcn.1401ddb90
lea rcx, [rsi + 0x18]
call fcn.1401ddb90
lea rax, [0x1403a55b0]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x14012d28c
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14012d158
call fcn.14015e570
mov rcx, rsi
call fcn.140240d14
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140160a20
test rax, rax
je 0x14012d28f
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d0e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14027e630
mov rcx, rdi
call fcn.1400e3a40
jmp 0x14012d0e2
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d116
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x13b
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0xd0]
lea rdx, [0x1403be42a]
mov r8d, ntohl
call fcn.14027e630
mov rcx, rdi
call fcn.1402b39c0
jmp 0x14012d116
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x14012d27e
add rdi, 0xffffffffffffff90
mov rcx, rdi
call fcn.1402bf950
cmp rdi, rbx
jne 0x14012d269
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.140240d14
jmp 0x14012d123
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14012d632
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 + 0xbc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xb0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14012d90a
mov eax, edi
lea rdx, [rsp + 0xb0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140160e90
test al, al
je 0x14012d697
cmp r14, rbx
je 0x14012d0e2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
cmp rdi, rax
ja 0x14012d93e
imul rcx, rdi, 0x38
mov qword [rsp + 0x38], rcx
call fcn.140240cd8
mov rbp, rax
mov r15, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x68], rax
cmp r15, rax
je 0x14012d943
add qword [rsp + 0x38], rbp
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rbp
lea rdi, [r15 + 0x10]
mov rcx, rdi
lea rbx, [rsp + 0xc0]
mov rdx, rbx
call fcn.1401ddba0
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
call fcn.1400e0120
mov r14d, eax
mov rcx, rbx
call fcn.1401ddb90
test r14b, r14b
jne 0x14012d6e6
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x210], xmm0
mov rcx, rdi
lea rdi, [rsp + 0x70]
mov rdx, rdi
call fcn.1401ddd50
movzx eax, byte [rsp + 0x87]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x70]
cmovns rax, rdi
mov qword [rsp + 0x200], rax
cmovs rcx, qword [rsp + 0x78]
mov qword [rsp + 0x208], rcx
lea rdi, [rsp + 0xc0]
mov rcx, rdi
lea rdx, [rsp + 0x200]
call fcn.1401e9a30
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.1402fd120
mov dword [rsp + 0x4c], eax
cmp byte [rsp + 0xd7], 0
jns 0x14012d44b
mov rcx, qword [rsp + 0xc0]
call fcn.140240d14
lea rcx, [rsp + 0x70]
call fcn.1401ddb90
lea rdx, [r15 + 0x28]
lea rcx, [rsp + 0x90]
call fcn.1402fd120
mov edi, eax
mov r14, qword [r15 + 0x40]
mov rax, qword [r15 + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [r15 + 0x58]
mov dword [rsp + 0x44], eax
mov eax, dword [r15 + 0x68]
mov dword [rsp + 0x48], eax
mov bl, byte [r15 + 0x5c]
add bl, bl
or bl, byte [r15 + 0x48]
cmp rbp, qword [rsp + 0x38]
jae 0x14012d4e0
test rbp, rbp
je 0x14012d912
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [rbp], xmm0
mov eax, dword [rsp + 0x4c]
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x14], edi
mov qword [rbp + 0x18], r14
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x20], rax
mov eax, dword [rsp + 0x44]
mov dword [rbp + 0x28], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp + 0x2c], eax
mov byte [rbp + 0x30], bl
xor eax, eax
mov dword [rbp + 0x31], eax
mov dword [rbp + 0x34], eax
jmp 0x14012d613
sub rbp, qword [rsp + 0x30]
mov r12, rbp
sar r12, 3
movabs rax, 0x6db6db6db6db6db7
imul r12, rax
lea r13, [r12 + 1]
movabs rax, 0x492492492492492
cmp r13, rax
ja 0x14012d93e
mov rcx, qword [rsp + 0x38]
sub rcx, qword [rsp + 0x30]
sar rcx, 3
movabs rax, 0x6db6db6db6db6db7
imul rcx, rax
lea rax, [rcx + rcx]
cmp rax, r13
cmova r13, rax
movabs rax, 0x249249249249249
cmp rcx, rax
movabs rax, 0x492492492492492
cmovae r13, rax
test r13, r13
je 0x14012d62b
movabs rax, 0x492492492492492
cmp r13, rax
ja 0x14012d96f
imul rcx, r13, 0x38
call fcn.140240cd8
mov qword [rsp + 0x38], rax
imul r12, r12, 0x38
add r12, qword [rsp + 0x38]
je 0x14012d912
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x4c]
mov dword [r12 + 0x10], eax
mov dword [r12 + 0x14], edi
mov qword [r12 + 0x18], r14
mov rax, qword [rsp + 0x58]
mov qword [r12 + 0x20], rax
mov eax, dword [rsp + 0x44]
mov dword [r12 + 0x28], eax
mov eax, dword [rsp + 0x48]
mov dword [r12 + 0x2c], eax
mov byte [r12 + 0x30], bl
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
mov rdi, r12
sub rdi, rbp
mov rcx, rdi
mov r14, qword [rsp + 0x30]
mov rdx, r14
mov r8, rbp
call fcn.140243eb0
imul rbx, r13, 0x38
test r14, r14
je 0x14012d606
mov rcx, qword [rsp + 0x30]
call fcn.140240d14
add qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov rbp, r12
add rbp, 0x38
add r15, 0x70
cmp r15, qword [rsp + 0x68]
jne 0x14012d386
jmp 0x14012d72a
xor eax, eax
jmp 0x14012d579
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d0e2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14027e630
mov rcx, rdi
call fcn.1402b39c0
jmp 0x14012d0e2
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d0e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x14012d1e6
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14012d7d9
cmp qword [rsp + 0x30], 0
je 0x14012d70a
mov rcx, qword [rsp + 0x30]
call fcn.140240d14
cmp byte [rsp + 0xa7], 0
jns 0x14012d0e2
mov rcx, qword [rsp + 0x90]
call fcn.140240d14
jmp 0x14012d0e2
sub rbp, qword [rsp + 0x30]
je 0x14012d943
mov rcx, qword [rsi + 8]
mov rdx, qword [rsp + 0x30]
mov r8, rbp
call fcn.140160e90
test al, al
je 0x14012d87f
movzx eax, byte [rsp + 0xa7]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rsp + 0x98]
lea rdx, [rsp + 0x90]
cmovs rdx, qword [rsp + 0x90]
mov rcx, qword [rsi + 8]
call fcn.140160e90
test al, al
jne 0x14012d6f8
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d6f8
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14012d8c9
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xc0]
mov r8d, 0x224
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0xd0]
cmp byte [r15 + 0x27], 0
jns 0x14012d80b
mov rdi, qword [rdi]
mov rdx, rdi
call fcn.1402b3a80
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14027e630
movzx ecx, byte [rsi + 0x2f]
mov r8d, ecx
and r8d, 0x7f
test cl, cl
mov rcx, qword [rsp + 0x60]
cmovs rcx, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x200]
mov qword [rdx], rcx
cmovs r8, qword [rsi + 0x20]
mov qword [rdx + 8], r8
lea rcx, [rsp + 0x70]
call fcn.1401e9a30
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
jns 0x14012d8d3
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
jmp 0x14012d8d7
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012d6f8
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.14027e630
mov rcx, rdi
jmp 0x14012d900
and r8d, 0x7f
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.14027e630
cmp byte [rsp + 0x87], 0
jns 0x14012d8f8
mov rcx, qword [rsp + 0x70]
call fcn.140240d14
lea rcx, [rsp + 0xc0]
call fcn.1400e3a40
jmp 0x14012d6f8
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140280b90
call fcn.14025af90
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x587
call fcn.140280b90
call fcn.14027e620
int3