Function at 0x14009ba50
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 [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r12, qword [rcx]
test r12, r12
je 0x14009bba4
cmp byte [r12 + 0x28], 0
je 0x14009baed
mov rcx, qword [r12]
xor edx, edx
xor r8d, r8d
call fcn.1400a2c40
test rax, rax
je 0x14009bbc9
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009baed
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x1d5
mov r9d, 2
mov rcx, rdi
call fcn.14002c3a0
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_rewind_to_write
call fcn.140002bb0
mov rcx, rdi
call fcn.14002c830
pxor xmm0, xmm0
lea rax, [rsp + 0x200]
movdqa xmmword [rax + 0x10], xmm0
movdqa xmmword [rax], xmm0
mov rcx, qword [r12]
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 0x14009bb79
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009bb79
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x129
mov r9d, 2
mov rcx, rdi
call fcn.14002d860
lea rcx, [rsp + 0x100]
lea rdx, [0x140158d8a]
call fcn.140002bb0
mov rcx, rdi
call fcn.14002d9a0
lea rcx, [r12 + 0x30]
call fcn.14009d240
lea rcx, [r12 + 8]
call fcn.1400289c0
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14009bb9c
call fcn.14009e510
mov rcx, r12
call fcn.14011a350
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14011a370
nop
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14009bd16
mov rbx, qword [r12 + 0x38]
sub rbx, qword [r12 + 0x30]
mov rax, rbx
sar rax, 3
movabs rdi, 0xeeeeeeeeeeeeeeef
imul rdi, rax
mov qword [rsp + 0x88], 0
movabs rax, 0x143504144
mov qword [rsp + 0x80], rax
mov rax, rdi
shr rax, 0x20
jne 0x14009c2d6
mov eax, edi
lea rdx, [rsp + 0x80]
mov dword [rdx + 8], eax
mov rcx, qword [r12]
mov r8d, 0x10
call fcn.1400a3000
test al, al
je 0x14009bd75
test rbx, rbx
je 0x14009baed
movabs rcx, 0x492492492492492
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0xe0], xmm0
mov byte [rsp + 0xd0], 0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp rdi, rcx
ja 0x14009c2e5
imul rcx, rdi, 0x38
cmp rcx, 0x1000
jb 0x14009bdbe
cmp rcx, 0xffffffffffffffd9
jae 0x14009c2de
add rcx, 0x27
call fcn.14011a310
lea rdx, [rax + 0x27]
and rdx, 0xffffffffffffffe0
mov qword [rdx - 8], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
je 0x14009bdc6
sub rcx, rax
xor ebp, ebp
mov rbx, qword [rax + rbp + 0x30]
mov qword [rdx + rbp + 0x30], rbx
movdqu xmm0, xmmword [rax + rbp]
movups xmm1, xmmword [rax + rbp + 0x10]
movups xmm2, xmmword [rax + rbp + 0x20]
movups xmmword [rdx + rbp + 0x20], xmm2
movups xmmword [rdx + rbp + 0x10], xmm1
movdqu xmmword [rdx + rbp], xmm0
add rbp, 0x38
cmp rcx, rbp
jne 0x14009bce0
jmp 0x14009bdc6
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009baed
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x1dc
mov r9d, 2
mov rcx, rdi
call fcn.14002d860
lea rcx, [rsp + 0x100]
lea rdx, str.failed_to_truncate
call fcn.140002bb0
mov rcx, rdi
call fcn.14002d9a0
jmp 0x14009baed
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009baed
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x1e8
mov r9d, 2
mov rcx, rdi
call fcn.14002c3a0
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_header
jmp 0x14009bae0
call fcn.14011a310
mov rdx, rax
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
call fcn.14009d320
mov rdi, qword [r12 + 0x30]
mov rax, qword [r12 + 0x38]
mov qword [rsp + 0x58], rax
cmp rdi, rax
je 0x14009c103
lea rax, [r12 + 8]
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x200]
lea rbp, [rdi + 0x10]
mov rcx, rbp
lea rsi, [rsp + 0xb0]
mov rdx, rsi
call fcn.140029680
mov rcx, rsi
mov rdx, qword [rsp + 0x40]
call fcn.140028d80
mov ebx, eax
mov rcx, rsi
call fcn.1400289c0
test bl, bl
jne 0x14009c18a
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, rbp
mov rdx, r14
call fcn.140029a30
mov rax, qword [rsp + 0x210]
cmp qword [rsp + 0x218], 7
mov rcx, r14
jbe 0x14009be6a
mov rcx, qword [rsp + 0x200]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
lea rsi, [rsp + 0xf0]
mov rcx, rsi
lea rdx, [rsp + 0x90]
call fcn.140040560
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov rdx, rsi
call fcn.14009d3d0
mov ebp, eax
mov rcx, rsi
call fcn.1400064a0
mov rcx, r14
call fcn.1400289c0
lea rdx, [rdi + 0x30]
mov rcx, rbx
call fcn.14009d3d0
mov r13d, eax
mov r14, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x60]
mov r11d, dword [rdi + 0x68]
mov r10d, dword [rdi + 0x70]
mov bl, byte [rdi + 0x6c]
add bl, bl
or bl, byte [rdi + 0x58]
mov word [rsp + 0xf4], 0
mov byte [rsp + 0xf6], 0
mov dword [rsp + 0xf0], 0
mov rax, qword [rsp + 0x68]
mov r15, qword [rsp + 0x70]
cmp r15, rax
je 0x14009bf5f
movdqa xmm0, xmmword [rsp + 0xa0]
movdqu xmmword [rax], xmm0
mov dword [rax + 0x10], ebp
mov dword [rax + 0x14], r13d
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rsi
mov dword [rax + 0x28], r11d
mov dword [rax + 0x2c], r10d
mov byte [rax + 0x30], bl
mov cl, byte [rsp + 0xf6]
mov byte [rax + 0x37], cl
movzx ecx, word [rsp + 0xf4]
mov word [rax + 0x35], cx
mov ecx, dword [rsp + 0xf0]
mov dword [rax + 0x31], ecx
add rax, 0x38
mov qword [rsp + 0x68], rax
jmp 0x14009c0ec
sub r15, qword [rsp + 0x60]
sar r15, 3
movabs rax, 0x6db6db6db6db6db7
imul r15, rax
lea r8, [r15 + 1]
mov rax, r15
shr rax, 1
movabs rcx, 0x492492492492492
sub rcx, rax
mov r9, r8
cmp r15, rcx
ja 0x14009bfa2
add rax, r15
cmp rax, r8
cmovb rax, r8
mov r9, rax
test r9, r9
je 0x14009c018
movabs rax, 0x492492492492492
cmp r9, rax
ja 0x14009c2de
imul rcx, r9, 0x38
cmp rcx, 0x1000
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x34], r11d
mov qword [rsp + 0x48], rsi
jb 0x14009c01e
mov qword [rsp + 0x38], r9
cmp rcx, 0xffffffffffffffd9
jae 0x14009c2de
mov esi, r10d
add rcx, 0x27
call fcn.14011a310
lea rdx, [rax + 0x27]
and rdx, 0xffffffffffffffe0
mov qword [rdx - 8], rax
mov ecx, ebp
mov r8, qword [rsp + 0x50]
mov r10d, esi
mov r11d, dword [rsp + 0x34]
mov rsi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
jmp 0x14009c047
mov ecx, ebp
xor edx, edx
jmp 0x14009c047
mov dword [rsp + 0x38], r10d
mov rsi, r9
call fcn.14011a310
mov r9, rsi
mov rsi, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x34]
mov r10d, dword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
mov ecx, ebp
mov rdx, rax
imul rax, r15, 0x38
movdqa xmm0, xmmword [rsp + 0xa0]
movdqu xmmword [rdx + rax], xmm0
mov dword [rdx + rax + 0x10], ecx
mov dword [rdx + rax + 0x14], r13d
mov qword [rdx + rax + 0x18], r14
mov qword [rdx + rax + 0x20], rsi
mov dword [rdx + rax + 0x28], r11d
mov dword [rdx + rax + 0x2c], r10d
mov byte [rdx + rax + 0x30], bl
mov cl, byte [rsp + 0xf6]
mov byte [rdx + rax + 0x37], cl
movzx ecx, word [rsp + 0xf4]
mov word [rdx + rax + 0x35], cx
mov ecx, dword [rsp + 0xf0]
mov dword [rdx + rax + 0x31], ecx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
je 0x14009c0e2
sub rcx, rax
xor ebp, ebp
mov rbx, qword [rax + rbp + 0x30]
mov qword [rdx + rbp + 0x30], rbx
movdqu xmm0, xmmword [rax + rbp]
movups xmm1, xmmword [rax + rbp + 0x10]
movups xmm2, xmmword [rax + rbp + 0x20]
movups xmmword [rdx + rbp + 0x20], xmm2
movups xmmword [rdx + rbp + 0x10], xmm1
movdqu xmmword [rdx + rbp], xmm0
add rbp, 0x38
cmp rcx, rbp
jne 0x14009c0b1
lea rcx, [rsp + 0x60]
call fcn.14009d320
lea r14, [rsp + 0x200]
add rdi, 0x78
cmp rdi, qword [rsp + 0x58]
jne 0x14009be00
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
sub r8, rdx
mov rcx, qword [r12]
call fcn.1400a3000
test al, al
je 0x14009c141
mov r8, qword [rsp + 0xe0]
cmp qword [rsp + 0xe8], 0xf
jbe 0x14009c258
mov rdx, qword [rsp + 0xd0]
jmp 0x14009c260
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009c2ba
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x200
mov r9d, 2
mov rcx, rdi
call fcn.14002c3a0
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_records
jmp 0x14009c2ad
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009c2ba
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xf0]
mov r8d, 0x1f6
mov r9d, 2
call fcn.14002c3a0
lea rcx, [rsp + 0xf8]
mov eax, 8
cmp qword [rdi + 0x28], rax
jb 0x14009c1d3
mov rbp, qword [rbp]
mov rdx, rbp
call fcn.14002da70
lea rdx, str._expected_to_start_with
mov rcx, rax
call fcn.140002bb0
mov rdi, rax
cmp qword [r12 + 0x20], 7
jbe 0x14009c1ff
mov rax, qword [r12 + 8]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x90]
mov rax, qword [rsp + 0x40]
mov qword [rdx], rax
mov rax, qword [r12 + 0x18]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x200]
mov rcx, rbx
call fcn.140040560
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14009c23e
mov rdx, qword [rsp + 0x200]
mov rcx, rdi
call fcn.140009960
mov rcx, rbx
call fcn.1400064a0
lea rcx, [rsp + 0xf0]
jmp 0x14009c2b5
lea rdx, [rsp + 0xd0]
mov rcx, qword [r12]
call fcn.1400a3000
test al, al
jne 0x14009c2ba
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009c2ba
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov r8d, 0x205
mov r9d, 2
mov rcx, rdi
call fcn.14002c3a0
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_string_table
call fcn.140002bb0
mov rcx, rdi
call fcn.14002c830
lea rcx, [rsp + 0x60]
call fcn.14009d1b0
lea rcx, [rsp + 0xd0]
call fcn.1400064a0
jmp 0x14009baed
int3
call fcn.14011ae10
ud2
call fcn.14009d300
ud2