Function at 0x1400e1820
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 [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1400e18e0
cmp byte [rsi + 0x48], 0
jne 0x1400e1905
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 0x1400e1978
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x1400e19dd
lea rcx, [rsi + 0x30]
call fcn.14017ca10
lea rcx, [rsi + 0x18]
call fcn.14017ca10
lea rax, [0x140337ad8]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1400e1a27
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400e18d8
call fcn.140103770
mov rcx, rsi
call fcn.1401cfdbc
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d1390
nop
add rsp, 0x248
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.14010b980
test rax, rax
je 0x1400e1a2a
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1862
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x202
mov r9d, 2
call fcn.14007d0b0
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14020f8f0
mov rcx, rdi
call fcn.14007d550
jmp 0x1400e1862
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1896
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 + 0xe0]
mov rcx, rdi
mov r8d, 0x13a
mov r9d, 2
call fcn.14023e670
lea rcx, [rsp + 0xf0]
lea rdx, [0x140380c4a]
mov r8d, ntohl
call fcn.14020f8f0
mov rcx, rdi
call fcn.14023e6f0
jmp 0x1400e1896
mov rdi, qword [rsi + 0x58]
cmp rdi, rbx
je 0x1400e1e2f
add rdi, 0xffffffffffffffa0
cmp byte [rdi + 0x2f], 0
jns 0x1400e19fd
mov rcx, qword [rdi + 0x18]
call fcn.1401cfdbc
mov rcx, rdi
call fcn.14017ca10
lea rax, [rdi - 0x70]
add rdi, 0xfffffffffffffff0
cmp rdi, rbx
mov rdi, rax
jne 0x1400e19ee
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1401cfdbc
jmp 0x1400e18a3
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400e1e37
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 + 0xdc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xd0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400e20eb
mov eax, edi
lea rdx, [rsp + 0xd0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.14010bdf0
test al, al
je 0x1400e1e9c
cmp rbp, rbx
je 0x1400e1862
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], 0
movaps xmm0, xmmword [0x14033b990]
movaps xmmword [rsp + 0x90], xmm0
cmp rdi, rax
ja 0x1400e20f3
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1401cfd80
add rdi, rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdi
mov r13, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x58]
mov qword [rsp + 0x68], rcx
cmp r13, rcx
je 0x1400e1f2f
lea rcx, [rsi + 0x18]
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov r12, rax
lea rbp, [r13 + 0x10]
mov rcx, rbp
lea rdi, [rsp + 0xe0]
mov rdx, rdi
call fcn.14017cac0
mov rcx, rdi
mov rdx, qword [rsp + 0x60]
call fcn.14007a780
mov ebx, eax
mov rcx, rdi
call fcn.14017ca10
test bl, bl
jne 0x1400e1eeb
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0x230], xmm0
mov rcx, rbp
lea rdi, [rsp + 0x70]
mov rdx, rdi
call fcn.14017cea0
movzx eax, byte [rsp + 0x87]
test al, al
mov rcx, qword [rsp + 0x70]
cmovns rcx, rdi
mov qword [rsp + 0x220], rcx
cmovs rax, qword [rsp + 0x78]
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0xe0]
mov rcx, rdi
lea rdx, [rsp + 0x220]
call fcn.140185d10
lea rcx, [rsp + 0xb0]
mov rdx, rdi
call fcn.14029e670
mov dword [rsp + 0x3c], eax
cmp byte [rsp + 0xf7], 0
jns 0x1400e1bfe
mov rcx, qword [rsp + 0xe0]
call fcn.1401cfdbc
lea rcx, [rsp + 0x70]
call fcn.14017ca10
lea rdx, [r13 + 0x28]
lea rcx, [rsp + 0xb0]
call fcn.14029e670
mov dword [rsp + 0x30], eax
mov rax, qword [r13 + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [r13 + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [r13 + 0x58]
mov dword [rsp + 0x34], eax
mov eax, dword [r13 + 0x68]
mov dword [rsp + 0x38], eax
mov bpl, byte [r13 + 0x5c]
add bpl, bpl
or bpl, byte [r13 + 0x48]
mov rax, qword [rsp + 0xa0]
cmp r12, rax
jae 0x1400e1ccd
movaps xmm0, xmmword [rsp + 0x230]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x10], eax
mov eax, dword [rsp + 0x30]
mov dword [r12 + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r12 + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [r12 + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x2c], eax
mov byte [r12 + 0x30], bpl
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
add r12, 0x38
mov qword [rsp + 0x98], r12
add r13, 0x70
cmp r13, qword [rsp + 0x68]
jne 0x1400e1b3f
jmp 0x1400e200d
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rcx
sub r12, rcx
mov rdi, r12
sar rdi, 3
movabs rcx, 0x6db6db6db6db6db7
imul rdi, rcx
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x1400e20f8
sub rax, qword [rsp + 0x40]
sar rax, 3
movabs rdx, 0x6db6db6db6db6db7
imul rax, rdx
lea rbx, [rax + rax]
cmp rbx, rcx
ja 0x1400e1d2c
mov rbx, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
movabs rax, 0x492492492492492
cmovae rbx, rax
test rbx, rbx
je 0x1400e1e27
movabs rax, 0x492492492492492
cmp rbx, rax
ja 0x1400e20f3
imul rcx, rbx, 0x38
call fcn.1401cfd80
mov r14, rax
imul rdi, rdi, 0x38
lea r15, [r14 + rdi]
imul rbx, rbx, 0x38
add rbx, r14
movaps xmm0, xmmword [rsp + 0x230]
movups xmmword [r14 + rdi], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r14 + rdi + 0x10], eax
mov eax, dword [rsp + 0x30]
mov dword [r14 + rdi + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r14 + rdi + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r14 + rdi + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [r14 + rdi + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [r14 + rdi + 0x2c], eax
mov byte [r14 + rdi + 0x30], bpl
xor eax, eax
mov dword [r14 + rdi + 0x31], eax
mov dword [r14 + rdi + 0x34], eax
sub r15, r12
test r12, r12
jle 0x1400e1dec
mov rcx, r15
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.1401d2e10
lea r12, [r14 + rdi]
add r12, 0x38
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], rbx
cmp qword [rsp + 0x40], 0
je 0x1400e1cb9
mov rcx, qword [rsp + 0x40]
call fcn.1401cfdbc
jmp 0x1400e1cb9
xor r14d, r14d
jmp 0x1400e1d6f
mov rcx, rbx
jmp 0x1400e1a19
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1862
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 + 0xe0]
mov rcx, rdi
mov r8d, 0x209
mov r9d, 2
call fcn.14023e670
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14020f8f0
mov rcx, rdi
call fcn.14023e6f0
jmp 0x1400e1862
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1862
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x215
mov r9d, 2
call fcn.14007d0b0
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400e1966
mov ecx, 2
call fcn.14017e5e0
test al, al
jne 0x1400e201a
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400e1f0f
call fcn.1401cfdbc
cmp byte [rsp + 0xc7], 0
jns 0x1400e1862
mov rcx, qword [rsp + 0xb0]
call fcn.1401cfdbc
jmp 0x1400e1862
mov r12, rax
sub r12, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
mov r8, r12
call fcn.14010bdf0
test al, al
je 0x1400e1fb6
lea rdx, [rsp + 0xb0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.14010bdf0
test al, al
jne 0x1400e1efd
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1efd
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x232
mov r9d, 2
call fcn.14007d0b0
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400e2000
mov ecx, 2
call fcn.14017e5e0
test al, al
je 0x1400e1efd
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x22d
mov r9d, 2
call fcn.14007d0b0
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.14020f8f0
mov rcx, rdi
jmp 0x1400e20e1
mov rax, qword [rsp + 0x90]
jmp 0x1400e1f32
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xe0]
mov r8d, 0x223
mov r9d, 2
call fcn.14007d0b0
lea rcx, [rsp + 0xf0]
cmp byte [r13 + 0x27], 0
jns 0x1400e204d
mov rbp, qword [r13 + 0x10]
mov rdx, rbp
call fcn.14023e7a0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14020f8f0
movzx ecx, byte [rsi + 0x2f]
test cl, cl
mov rbp, qword [rsp + 0x60]
cmovs rbp, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x220]
mov qword [rdx], rbp
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x70]
call fcn.140185d10
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
jns 0x1400e20b8
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.14020f8f0
cmp byte [rsp + 0x87], 0
jns 0x1400e20d9
mov rcx, qword [rsp + 0x70]
call fcn.1401cfdbc
lea rcx, [rsp + 0xe0]
call fcn.14007d550
jmp 0x1400e1efd
int3
call fcn.1401e9f10
lea rcx, [rsp + 0x90]
call fcn.14020f6b0
int3