Function at 0x140049a9a
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r13, qword [rcx]
mov qword [rcx], 0
test r13, r13
je 0x140049bf1
cmp byte [r13 + 0x30], 0
je 0x140049b43
mov rcx, qword [r13 + 8]
xor edx, edx
xor r8d, r8d
call fcn.14005d760
test rax, rax
je 0x140049c16
mov ecx, 2
call fcn.140044070
test al, al
je 0x140049b43
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1e0
mov r9d, 2
call fcn.140044120
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14000482c
mov rcx, rdi
call fcn.1400445e0
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov rcx, qword [r13 + 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
jne 0x140049bcf
mov ecx, 2
call fcn.140044070
test al, al
je 0x140049bcf
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 + 0xf8]
mov rcx, rdi
mov r8d, 0x129
mov r9d, 2
call fcn.140045050
lea rcx, [rsp + 0x108]
lea rdx, [0x1400b42c0]
mov r8d, 0xc
call fcn.14000482c
mov rcx, rdi
call fcn.140045140
lea rcx, [r13 + 0x38]
call fcn.14004b3ac
lea rcx, [r13 + 0x18]
call fcn.140025440
mov rcx, r13
call fcn.140032fce
mov rcx, r13
call fcn.140083808
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140083c20
nop
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14004a012
mov rbx, qword [r13 + 0x40]
sub rbx, qword [r13 + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov qword [rsp + 0xc8], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14004a2e7
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [r13 + 8]
mov r8d, 0x10
call fcn.14005db27
test al, al
je 0x14004a077
test rbx, rbx
je 0x140049b43
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rcx
ja 0x14004a2fc
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1400837ac
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov r14, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x40]
mov qword [rsp + 0x58], rcx
cmp r14, rcx
je 0x14004a0c6
lea rbx, [r13 + 0x18]
lea rsi, [rsp + 0xf8]
lea rdi, [rsp + 0x60]
lea r12, [rsp + 0xa0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rbx
lea rbp, [r14 + 0x10]
mov rcx, rbp
mov rdx, rsi
call fcn.140025fe0
mov rcx, rsi
mov r15, rbx
mov rdx, rbx
call fcn.140025740
mov ebx, eax
mov rcx, rsi
call fcn.140025440
test bl, bl
jne 0x14004a153
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, rbp
mov rdx, rdi
call fcn.140026170
movzx eax, byte [rsp + 0x60]
mov rcx, rax
shr rcx, 1
test al, 1
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x62]
cmove rax, rdx
mov qword [rsp + 0xd0], rax
cmovne rcx, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rcx
mov rcx, rsi
lea rdx, [rsp + 0xd0]
call fcn.14002ae20
mov rcx, r12
mov rdx, rsi
call fcn.14004b3f8
mov esi, eax
test byte [rsp + 0xf8], 1
je 0x140049de0
mov rcx, qword [rsp + 0x108]
call fcn.140083808
mov rcx, rdi
call fcn.140025440
lea rdx, [r14 + 0x28]
mov rcx, r12
call fcn.14004b3f8
mov r11d, eax
mov rcx, qword [r14 + 0x40]
mov r10, qword [r14 + 0x50]
mov r9d, dword [r14 + 0x58]
mov r8d, dword [r14 + 0x68]
mov bl, byte [r14 + 0x5c]
add bl, bl
or bl, byte [r14 + 0x48]
xor eax, eax
mov dword [rsp + 0xfb], eax
mov dword [rsp + 0xf8], eax
mov r12, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp r12, rax
jae 0x140049e92
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [r12], xmm0
mov dword [r12 + 0x10], esi
mov dword [r12 + 0x14], r11d
mov qword [r12 + 0x18], rcx
mov qword [r12 + 0x20], r10
mov dword [r12 + 0x28], r9d
mov dword [r12 + 0x2c], r8d
mov byte [r12 + 0x30], bl
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], ecx
add r12, 0x38
mov qword [rsp + 0x88], r12
mov rbx, r15
jmp 0x140049fd9
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x34], esi
mov rdi, qword [rsp + 0x80]
sub r12, rdi
mov rbp, r12
sar rbp, 3
movabs rsi, 0x6db6db6db6db6db7
imul rbp, rsi
lea rcx, [rbp + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x14004a2ef
sub rax, rdi
sar rax, 3
imul rax, rsi
lea r15, [rax + rax]
cmp r15, rcx
cmovb r15, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
cmovae r15, rdx
test r15, r15
je 0x140049f38
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x48], r10
cmp r15, rdx
ja 0x14004a2fc
mov r13, rdi
mov edi, r9d
mov esi, r8d
imul rcx, r15, 0x38
call fcn.1400837ac
mov r8d, esi
mov r9d, edi
mov rdi, r13
mov r10, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x30]
jmp 0x140049f3a
xor eax, eax
imul rcx, rbp, 0x38
lea r13, [rax + rcx]
imul rbp, r15, 0x38
add rbp, rax
movaps xmm0, xmmword [rsp + 0xe0]
lea rsi, [rax + rcx]
add rsi, 0x38
movups xmmword [rsi - 0x38], xmm0
mov eax, dword [rsp + 0x34]
mov dword [rsi - 0x28], eax
mov dword [rsi - 0x24], r11d
mov rax, qword [rsp + 0x50]
mov qword [rsi - 0x20], rax
mov qword [rsi - 0x18], r10
mov dword [rsi - 0x10], r9d
mov dword [rsi - 0xc], r8d
mov byte [rsi - 8], bl
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [rsi - 7], eax
mov dword [rsi - 4], ecx
sub r13, r12
test r12, r12
jle 0x140049faa
mov rcx, r13
mov rdx, rdi
mov r8, r12
call fcn.1400865f0
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rbp
test rdi, rdi
mov r13, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
je 0x140049fd9
mov rcx, rdi
call fcn.140083808
add r14, 0x70
cmp qword [rsp + 0x58], r14
lea rsi, [rsp + 0xf8]
lea rdi, [rsp + 0x60]
lea r12, [rsp + 0xa0]
jne 0x140049d35
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
jmp 0x14004a0c9
mov ecx, 2
call fcn.140044070
test al, al
je 0x140049b43
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 + 0xf8]
mov rcx, rdi
mov r8d, 0x1e7
mov r9d, 2
call fcn.140045050
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14000482c
mov rcx, rdi
call fcn.140045140
jmp 0x140049b43
mov ecx, 2
call fcn.140044070
test al, al
je 0x140049b43
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1f3
mov r9d, 2
call fcn.140044120
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140049b36
mov r8, rax
sub r8, rax
mov rcx, qword [r13 + 8]
mov rdx, rax
call fcn.14005db27
test al, al
je 0x14004a104
movzx r8d, byte [rsp + 0xa0]
test r8b, 1
je 0x14004a19a
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
jmp 0x14004a1a5
mov ecx, 2
call fcn.140044070
test al, al
je 0x14004a2ad
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.140044120
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
jmp 0x14004a200
mov ecx, 2
call fcn.140044070
test al, al
je 0x14004a2ad
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xf8]
mov r8d, 0x201
mov r9d, 2
call fcn.140044120
lea rcx, [rsp + 0x108]
test byte [r14 + 0x10], 1
jne 0x14004a20d
add r14, 0x12
jmp 0x14004a211
shr r8, 1
lea rdx, [rsp + 0xa1]
mov rcx, qword [r13 + 8]
call fcn.14005db27
test al, al
jne 0x14004a2ad
mov ecx, 2
call fcn.140044070
test al, al
je 0x14004a2ad
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x210
mov r9d, 2
call fcn.140044120
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
call fcn.14000482c
mov rcx, rdi
jmp 0x14004a2a8
mov r14, qword [r14 + 0x20]
mov rdx, r14
call fcn.140045200
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14000482c
movzx edx, byte [r13 + 0x18]
add r15, 2
mov rcx, rdx
shr rcx, 1
test dl, 1
cmovne r15, qword [r13 + 0x28]
mov rdi, rax
lea rdx, [rsp + 0xd0]
mov qword [rdx], r15
cmovne rcx, qword [r13 + 0x20]
mov qword [rdx + 8], rcx
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.14002ae20
movzx r8d, byte [rbx]
test r8b, 1
je 0x14004a27f
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
jmp 0x14004a287
shr r8, 1
lea rdx, [rsp + 0x61]
mov rcx, rdi
call fcn.14000482c
test byte [rsp + 0x60], 1
je 0x14004a2a0
mov rcx, qword [rsp + 0x70]
call fcn.140083808
lea rcx, [rsp + 0xf8]
call fcn.1400445e0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14004a2c7
mov qword [rsp + 0x88], rcx
call fcn.140083808
test byte [rsp + 0xa0], 1
je 0x140049b43
mov rcx, qword [rsp + 0xb0]
call fcn.140083808
jmp 0x140049b43
int3
lea rcx, [rsp + 0x80]
call fcn.140021144
call fcn.1400954ec
int3