Function at 0x140052170
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 [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x140052724
cmp byte [rsi + 0x30], 0
je 0x1400521d7
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140066ed0
test rax, rax
je 0x140052263
mov ecx, 2
call fcn.1400485b0
test al, al
jne 0x1400527fa
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
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
jne 0x140052219
mov ecx, 2
call fcn.1400485b0
test al, al
jne 0x140052844
mov rbx, qword [rsi + 0x38]
test rbx, rbx
je 0x1400526f0
mov rdi, qword [rsi + 0x40]
cmp rdi, rbx
je 0x1400526e4
lea rbp, [rdi - 0x70]
cmp byte [rdi - 0x31], 0
jns 0x140052246
mov rcx, qword [rdi - 0x48]
call fcn.14008d81c
add rdi, 0xffffffffffffffa0
mov rcx, rdi
call fcn.14002e670
mov rdi, rbp
cmp rbx, rbp
jne 0x140052233
mov rcx, qword [rsi + 0x38]
jmp 0x1400526e7
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140052749
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs r15, 0x6db6db6db6db6db7
imul rdi, r15
mov qword [rsp + 0xc8], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x140052a9b
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140067340
test al, al
je 0x1400527ae
test rbx, rbx
je 0x1400521d7
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 0x140052ab3
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.14008d7cc
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov r12, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x58], rcx
cmp r12, rcx
je 0x140052897
mov qword [rsp + 0x28], rsi
lea r13, [rsi + 0x18]
lea rsi, [rsp + 0xd0]
lea rbp, [rsp + 0x60]
lea r14, [rsp + 0xa0]
mov qword [rsp + 0x30], r13
lea rdi, [r12 + 0x10]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f110
mov rcx, rsi
mov rdx, r13
call fcn.14002e860
mov ebx, eax
mov rcx, rsi
call fcn.14002e670
test bl, bl
jne 0x14005289f
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x230], xmm0
mov rcx, rdi
mov rdx, rbp
call fcn.14002f5f0
movzx eax, byte [rsp + 0x77]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, rbp
mov qword [rsp + 0x218], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0x220], rax
mov rcx, rsi
lea rdx, [rsp + 0x218]
call fcn.140034940
movzx edi, byte [rsp + 0xb7]
test dil, dil
jns 0x14005241f
mov rdi, qword [rsp + 0xa8]
mov rax, rdi
shr rax, 0x20
jne 0x1400526d4
movzx r8d, byte [rsp + 0xe7]
test r8b, r8b
cmovs r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
cmovns rdx, rsi
mov rcx, r14
call fcn.140027b90
mov rcx, r14
xor edx, edx
call fcn.140027e30
cmp byte [rsp + 0xe7], 0
jns 0x140052469
mov rcx, qword [rsp + 0xd0]
call fcn.14008d81c
mov rcx, rbp
call fcn.14002e670
movzx esi, byte [rsp + 0xb7]
test sil, sil
jns 0x140052493
mov rsi, qword [rsp + 0xa8]
mov rax, rsi
shr rax, 0x20
jne 0x1400526dc
movzx r8d, byte [r12 + 0x3f]
test r8b, r8b
jns 0x1400524aa
mov r8, qword [r12 + 0x30]
mov rdx, qword [r12 + 0x28]
jmp 0x1400524af
lea rdx, [r12 + 0x28]
mov rcx, r14
call fcn.140027b90
mov rcx, r14
xor edx, edx
call fcn.140027e30
mov rcx, qword [r12 + 0x40]
mov r11, qword [r12 + 0x50]
mov r10d, dword [r12 + 0x58]
mov r9d, dword [r12 + 0x68]
mov r14b, byte [r12 + 0x5c]
add r14b, r14b
or r14b, byte [r12 + 0x48]
xor eax, eax
mov dword [rsp + 0x22b], eax
mov dword [rsp + 0x228], eax
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp rbx, rax
jae 0x140052561
movaps xmm0, xmmword [rsp + 0x230]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], esi
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x20], r11
mov dword [rbx + 0x28], r10d
mov dword [rbx + 0x2c], r9d
mov byte [rbx + 0x30], r14b
mov eax, dword [rsp + 0x228]
mov ecx, dword [rsp + 0x22b]
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], ecx
add rbx, 0x38
mov qword [rsp + 0x88], rbx
lea rsi, [rsp + 0xd0]
lea r14, [rsp + 0xa0]
jmp 0x1400526c0
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov r8, qword [rsp + 0x80]
sub rbx, r8
mov rdi, rbx
sar rdi, 3
imul rdi, r15
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x140052aa6
sub rax, r8
sar rax, 3
imul rax, r15
lea r13, [rax + rax]
cmp r13, rcx
cmovb r13, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
cmovae r13, rdx
test r13, r13
je 0x1400525f9
mov qword [rsp + 0x38], r11
cmp r13, rdx
ja 0x140052ab3
mov r15d, r10d
mov esi, r9d
mov rbp, r8
imul rcx, r13, 0x38
call fcn.14008d7cc
mov r8, rbp
mov r9d, esi
mov r10d, r15d
mov r11, qword [rsp + 0x38]
jmp 0x1400525fb
xor eax, eax
imul rcx, rdi, 0x38
lea r15, [rax + rcx]
imul rdi, r13, 0x38
add rdi, rax
movaps xmm0, xmmword [rsp + 0x230]
lea rbp, [rax + rcx]
add rbp, 0x38
movups xmmword [rbp - 0x38], xmm0
mov rax, qword [rsp + 0x48]
mov dword [rbp - 0x28], eax
mov rax, qword [rsp + 0x50]
mov dword [rbp - 0x24], eax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r11
mov dword [rbp - 0x10], r10d
mov dword [rbp - 0xc], r9d
mov byte [rbp - 8], r14b
mov eax, dword [rsp + 0x228]
mov ecx, dword [rsp + 0x22b]
mov dword [rbp - 7], eax
mov dword [rbp - 4], ecx
sub r15, rbx
test rbx, rbx
jle 0x140052677
mov rcx, r15
mov rdx, r8
mov rsi, r8
mov r8, rbx
call fcn.140090b40
mov r8, rsi
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rdi
test r8, r8
mov r13, qword [rsp + 0x30]
lea rsi, [rsp + 0xd0]
lea r14, [rsp + 0xa0]
je 0x1400526b1
mov rcx, r8
call fcn.14008d81c
lea rbp, [rsp + 0x60]
movabs r15, 0x6db6db6db6db6db7
add r12, 0x70
cmp qword [rsp + 0x58], r12
jne 0x140052382
jmp 0x140052970
int3
int3
mov rcx, rbx
mov qword [rsi + 0x40], rbx
call fcn.14008d81c
lea rcx, [rsi + 0x18]
call fcn.14002e670
lea rax, [0x1400bee20]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x140052aa3
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14005271c
call fcn.140056e50
mov rcx, rsi
call fcn.14008d81c
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008db90
nop
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400485b0
test al, al
je 0x1400521d7
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 + 0xd0]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.140049240
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140002b20
mov rcx, rdi
call fcn.140049330
jmp 0x1400521d7
mov ecx, 2
call fcn.1400485b0
test al, al
je 0x1400521d7
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x210
mov r9d, 2
call fcn.140048660
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140052832
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x1fd
mov r9d, 2
call fcn.140048660
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140002b20
mov rcx, rdi
call fcn.140048af0
jmp 0x1400521d7
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 + 0xd0]
mov rcx, rdi
mov r8d, 0x138
mov r9d, 2
call fcn.140049240
lea rcx, [rsp + 0xe0]
lea rdx, [0x1400bfd50]
mov r8d, 0xc
call fcn.140002b20
mov rcx, rdi
call fcn.140049330
jmp 0x140052219
mov r8, rax
jmp 0x140052985
mov ecx, 2
call fcn.1400485b0
test al, al
mov rsi, qword [rsp + 0x28]
je 0x140052a17
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xd0]
mov r8d, 0x21e
mov r9d, 2
call fcn.140048660
lea rcx, [rsp + 0xe0]
cmp byte [r12 + 0x27], 0
jns 0x1400528eb
mov rdi, qword [r12 + 0x10]
mov rdx, rdi
call fcn.1400493e0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140002b20
movzx ecx, byte [rsi + 0x2f]
test cl, cl
cmovs r13, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x218]
mov qword [rdx], r13
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
mov rcx, rbp
call fcn.140034940
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
jns 0x140052947
mov r8, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, rbp
call fcn.140002b20
cmp byte [rsp + 0x77], 0
jns 0x140052963
mov rcx, qword [rsp + 0x60]
call fcn.14008d81c
lea rcx, [rsp + 0xd0]
jmp 0x140052a91
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
call fcn.140067340
test al, al
je 0x140052a09
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.140067340
test al, al
jne 0x140052a17
mov ecx, 2
call fcn.1400485b0
test al, al
je 0x140052a17
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x22d
mov r9d, 2
call fcn.140048660
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x140052a89
mov ecx, 2
call fcn.1400485b0
test al, al
jne 0x140052a51
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140052a31
mov qword [rsp + 0x88], rcx
call fcn.14008d81c
cmp byte [rsp + 0xb7], 0
jns 0x1400521d7
mov rcx, qword [rsp + 0xa0]
call fcn.14008d81c
jmp 0x1400521d7
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x228
mov r9d, 2
call fcn.140048660
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140002b20
mov rcx, rdi
call fcn.140048af0
jmp 0x140052a17
int3
int3
lea rcx, [rsp + 0x80]
call fcn.1400299b0
call fcn.14009fdac
int3