Function at 0x14004d9a0
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x14004da60
cmp byte [rsi + 0x48], 0
jne 0x14004da85
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 0x14004daf8
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x14004db5d
lea rcx, [rsi + 0x30]
call fcn.14006a350
lea rcx, [rsi + 0x18]
call fcn.14006a350
lea rax, [0x1400feb08]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x14004dba7
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14004da58
call fcn.14004f9b0
mov rcx, rsi
call fcn.1400897f8
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14008ab00
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.140056860
test rax, rax
je 0x14004dbaa
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004d9e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x202
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1400bcbd0
mov rcx, rdi
call fcn.140042750
jmp 0x14004d9e2
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004da16
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, 0x13a
mov r9d, 2
call fcn.1400dd030
lea rcx, [rsp + 0xd0]
lea rdx, [0x140107f5a]
mov r8d, 0xc
call fcn.1400bcbd0
mov rcx, rdi
call fcn.1400dd0b0
jmp 0x14004da16
mov rdi, qword [rsi + 0x58]
cmp rdi, rbx
je 0x14004df5d
add rdi, 0xffffffffffffffa0
cmp byte [rdi + 0x2f], 0
jns 0x14004db7d
mov rcx, qword [rdi + 0x18]
call fcn.1400897f8
mov rcx, rdi
call fcn.14006a350
lea rax, [rdi - 0x70]
add rdi, 0xfffffffffffffff0
cmp rdi, rbx
mov rdi, rax
jne 0x14004db6e
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1400897f8
jmp 0x14004da23
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14004df65
mov rbx, qword [rsi + 0x50]
mov rbp, qword [rsi + 0x58]
mov rdi, rbp
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 0x14004e214
mov eax, edi
lea rdx, [rsp + 0xb0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140056cc0
test al, al
je 0x14004dfca
cmp rbp, rbx
je 0x14004d9e2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
cmp rdi, rax
ja 0x14004e21c
imul rcx, rdi, 0x38
mov qword [rsp + 0x30], rcx
call fcn.1400897bc
mov qword [rsp + 0x28], rax
mov r15, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x68], rax
cmp r15, rax
je 0x14004e05d
mov r13, qword [rsp + 0x28]
add qword [rsp + 0x30], r13
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rbp, [r15 + 0x10]
mov rcx, rbp
lea rdi, [rsp + 0xc0]
mov rdx, rdi
call fcn.14006a400
mov rcx, rdi
mov rdx, qword [rsp + 0x60]
call fcn.1400340a0
mov ebx, eax
mov rcx, rdi
call fcn.14006a350
test bl, bl
jne 0x14004e019
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x210], xmm0
mov rcx, rbp
lea rbx, [rsp + 0x70]
mov rdx, rbx
call fcn.14006a7d0
movzx eax, byte [rsp + 0x87]
test al, al
mov rcx, qword [rsp + 0x70]
cmovns rcx, rbx
mov qword [rsp + 0x200], rcx
cmovs rax, qword [rsp + 0x78]
mov qword [rsp + 0x208], rax
lea rdi, [rsp + 0xc0]
mov rcx, rdi
lea rdx, [rsp + 0x200]
call fcn.14006ddf0
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.1400e40a0
mov edi, eax
cmp byte [rsp + 0xd7], 0
jns 0x14004dd5f
mov rcx, qword [rsp + 0xc0]
call fcn.1400897f8
lea rcx, [rsp + 0x70]
call fcn.14006a350
lea rdx, [r15 + 0x28]
lea rcx, [rsp + 0x90]
call fcn.1400e40a0
mov dword [rsp + 0x3c], eax
mov rax, qword [r15 + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [r15 + 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x68]
mov dword [rsp + 0x44], eax
mov bpl, byte [r15 + 0x5c]
add bpl, bpl
or bpl, byte [r15 + 0x48]
cmp r13, qword [rsp + 0x30]
jae 0x14004de04
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r13], xmm0
mov dword [r13 + 0x10], edi
mov eax, dword [rsp + 0x3c]
mov dword [r13 + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r13 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r13 + 0x20], rax
mov eax, dword [rsp + 0x40]
mov dword [r13 + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [r13 + 0x2c], eax
mov byte [r13 + 0x30], bpl
xor eax, eax
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], eax
add r13, 0x38
jmp 0x14004df41
sub r13, qword [rsp + 0x28]
mov rbx, r13
sar rbx, 3
movabs rax, 0x6db6db6db6db6db7
imul rbx, rax
lea r14, [rbx + 1]
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x14004e21c
mov rcx, qword [rsp + 0x30]
sub rcx, qword [rsp + 0x28]
sar rcx, 3
movabs rax, 0x6db6db6db6db6db7
imul rcx, rax
lea rax, [rcx + rcx]
cmp rax, r14
cmova r14, rax
movabs rax, 0x249249249249249
cmp rcx, rax
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x14004df55
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x14004e221
imul rcx, r14, 0x38
call fcn.1400897bc
mov r12, rax
imul rbx, rbx, 0x38
lea rcx, [r12 + rbx]
imul rax, r14, 0x38
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r12 + rbx], xmm0
mov dword [r12 + rbx + 0x10], edi
mov eax, dword [rsp + 0x3c]
mov dword [r12 + rbx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r12 + rbx + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r12 + rbx + 0x20], rax
mov eax, dword [rsp + 0x40]
mov dword [r12 + rbx + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [r12 + rbx + 0x2c], eax
mov byte [r12 + rbx + 0x30], bpl
xor eax, eax
mov dword [r12 + rbx + 0x31], eax
mov dword [r12 + rbx + 0x34], eax
sub rcx, r13
mov rdi, rcx
test r13, r13
jle 0x14004df1d
mov rcx, rdi
mov rdx, qword [rsp + 0x28]
mov r8, r13
call fcn.14008c580
add qword [rsp + 0x30], r12
lea r13, [r12 + rbx]
add r13, 0x38
cmp qword [rsp + 0x28], 0
je 0x14004df3c
mov rcx, qword [rsp + 0x28]
call fcn.1400897f8
mov qword [rsp + 0x28], rdi
add r15, 0x70
cmp r15, qword [rsp + 0x68]
jne 0x14004dca3
jmp 0x14004e062
xor r12d, r12d
jmp 0x14004de9f
mov rcx, rbx
jmp 0x14004db99
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004d9e2
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, 0x209
mov r9d, 2
call fcn.1400dd030
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1400bcbd0
mov rcx, rdi
call fcn.1400dd0b0
jmp 0x14004d9e2
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004d9e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x215
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x14004dae6
mov ecx, 2
call fcn.140074720
test al, al
jne 0x14004e143
cmp qword [rsp + 0x28], 0
je 0x14004e03d
mov rcx, qword [rsp + 0x28]
call fcn.1400897f8
cmp byte [rsp + 0xa7], 0
jns 0x14004d9e2
mov rcx, qword [rsp + 0x90]
call fcn.1400897f8
jmp 0x14004d9e2
mov r13, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x28]
sub r13, rdx
mov rcx, qword [rsi + 8]
mov r8, r13
call fcn.140056cc0
test al, al
je 0x14004e0ec
lea rdx, [rsp + 0x90]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.140056cc0
test al, al
jne 0x14004e02b
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004e02b
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x232
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14004e136
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004e02b
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x22d
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1400bcbd0
mov rcx, rdi
jmp 0x14004e20a
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xc0]
mov r8d, 0x223
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0xd0]
cmp byte [r15 + 0x27], 0
jns 0x14004e176
mov rbp, qword [r15 + 0x10]
mov rdx, rbp
call fcn.1400dd160
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1400bcbd0
movzx ecx, byte [rsi + 0x2f]
test cl, cl
mov rbp, qword [rsp + 0x60]
cmovs rbp, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x200]
mov qword [rdx], rbp
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x70]
call fcn.14006ddf0
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
jns 0x14004e1e1
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.1400bcbd0
cmp byte [rsp + 0x87], 0
jns 0x14004e202
mov rcx, qword [rsp + 0x70]
call fcn.1400897f8
lea rcx, [rsp + 0xc0]
call fcn.140042750
jmp 0x14004e02b
int3
call fcn.1400bd1c0
call fcn.1400bd1c0
int3