Function at 0x140036c50
Capabilities:
Clear file content

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp + 0x180], rax
mov rsi, qword [rcx]
test rsi, rsi
je 0x140036d9d
cmp byte [rsi + 0x30], 0
je 0x140036ce9
mov rcx, qword [rsi]
xor edx, edx
xor r8d, r8d
call fcn.14004d280
test rax, rax
je 0x140036dc1
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x140036ce9
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x1d5
mov r9d, 2
call fcn.140023180
lea rcx, [rbp + 0x50]
lea rdx, str.failed_to_rewind_to_write
call fcn.14000d630
mov rcx, rdi
call fcn.140023620
pxor xmm0, xmm0
lea rax, [rbp + 0x160]
movdqa xmmword [rax + 0x10], xmm0
movdqa xmmword [rax], xmm0
mov rcx, qword [rsi]
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 0x140036d6b
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x140036d6b
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, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x129
mov r9d, 2
call fcn.1400245c0
lea rcx, [rbp + 0x58]
lea rdx, [0x140081d6a]
call fcn.14000d630
mov rcx, rdi
call fcn.140024700
lea rcx, [rsi + 0x38]
call fcn.1400384e0
lea rcx, [rsi + 0x10]
call fcn.140009970
cmp byte [rsi + 8], 0
jne 0x14003740d
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x140036d95
call fcn.14003abe0
mov rcx, rsi
call fcn.14005a6d0
mov rcx, qword [rbp + 0x180]
xor rcx, rbp
call fcn.14005aa40
nop
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140036e9e
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rax, rbx
sar rax, 3
movabs rdi, 0xeeeeeeeeeeeeeeef
imul rdi, rax
mov qword [rbp - 8], 0
movabs rax, 0x143504144
mov qword [rbp - 0x10], rax
mov rax, rdi
shr rax, 0x20
jne 0x140037405
mov eax, edi
lea rdx, [rbp - 0x10]
mov dword [rdx + 8], eax
mov rcx, qword [rsi]
mov r8d, 0x10
call fcn.14004d640
test al, al
je 0x140036ef5
test rbx, rbx
je 0x140036ce9
movabs rcx, 0x492492492492492
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
cmp rdi, rcx
ja 0x140037414
imul rbx, rdi, 0x38
cmp rbx, 0x1000
jb 0x140036f36
mov rax, rbx
add rax, 0x27
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14005a670
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x140036f41
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x140036ce9
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, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x1dc
mov r9d, 2
call fcn.1400245c0
lea rcx, [rbp + 0x58]
lea rdx, str.failed_to_truncate
call fcn.14000d630
mov rcx, rdi
call fcn.140024700
jmp 0x140036ce9
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x140036ce9
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x1e8
mov r9d, 2
call fcn.140023180
lea rcx, [rbp + 0x50]
lea rdx, str.failed_to_write_header
jmp 0x140036cdc
mov rcx, rbx
call fcn.14005a670
mov r15, rax
add rbx, r15
mov r13, qword [rsi + 0x38]
mov rax, qword [rsi + 0x40]
mov qword [rbp - 0x50], rax
cmp r13, rax
mov qword [rbp - 0x18], rsi
je 0x14003722e
lea rax, [rsi + 0x10]
mov qword [rbp - 0x30], rax
mov r14, r15
mov qword [rbp - 0x28], rbx
lea rdi, [r13 + 0x10]
mov rcx, rdi
lea r12, [rbp + 0x48]
mov rdx, r12
call fcn.14000a7b0
mov rcx, r12
mov rdx, qword [rbp - 0x30]
call fcn.140009d30
mov ebx, eax
mov rcx, r12
call fcn.140009970
test bl, bl
jne 0x1400372b0
movups xmm0, xmmword [r13]
movaps xmmword [rbp + 0x10], xmm0
mov rcx, rdi
lea rdi, [rbp + 0x160]
mov rdx, rdi
call fcn.14000ac60
mov rax, qword [rbp + 0x170]
cmp qword [rbp + 0x178], 7
jbe 0x140036fd0
mov rdi, qword [rbp + 0x160]
mov qword [rbp], rdi
mov qword [rbp + 8], rax
lea rdi, [rbp + 0x48]
mov rcx, rdi
mov rdx, rbp
call fcn.140016fd0
lea rbx, [rbp + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.140038590
mov esi, eax
mov rcx, rdi
call fcn.140001260
lea rcx, [rbp + 0x160]
call fcn.140009970
lea rdx, [r13 + 0x30]
mov rcx, rbx
call fcn.140038590
mov r10d, eax
mov r11, qword [r13 + 0x50]
mov r9, qword [r13 + 0x60]
mov r8d, dword [r13 + 0x68]
mov dil, byte [r13 + 0x6c]
add dil, dil
or dil, byte [r13 + 0x58]
mov ecx, dword [r13 + 0x70]
xor eax, eax
mov dword [rbp + 0x4b], eax
mov dword [rbp + 0x48], eax
mov rbx, qword [rbp - 0x28]
cmp rbx, r14
je 0x140037084
movdqa xmm0, xmmword [rbp + 0x10]
movdqu xmmword [r14], xmm0
mov dword [r14 + 0x10], esi
mov dword [r14 + 0x14], r10d
mov qword [r14 + 0x18], r11
mov qword [r14 + 0x20], r9
mov dword [r14 + 0x28], r8d
mov dword [r14 + 0x2c], ecx
mov byte [r14 + 0x30], dil
mov eax, dword [rbp + 0x48]
mov ecx, dword [rbp + 0x4b]
mov dword [r14 + 0x34], ecx
mov dword [r14 + 0x31], eax
add r14, 0x38
jmp 0x14003721e
mov dword [rbp - 0x34], ecx
mov dword [rbp - 0x38], esi
mov r14, rbx
sub r14, r15
mov r12, r14
sar r12, 3
movabs rax, 0x6db6db6db6db6db7
imul r12, rax
lea rcx, [r12 + 1]
mov rax, r12
shr rax, 1
movabs rbx, 0x492492492492492
mov rdx, rbx
sub rdx, rax
mov qword [rbp - 0x40], rcx
cmp r12, rdx
ja 0x1400370da
add rax, r12
mov rcx, qword [rbp - 0x40]
cmp rax, rcx
cmovb rax, rcx
mov rcx, rax
imul rdx, rcx, 0x38
cmp rcx, rbx
mov rcx, rdx
mov rax, 0xffffffffffffffff
cmova rcx, rax
cmp rcx, 0x1000
mov qword [rbp - 0x48], rdx
jb 0x140037133
add rcx, 0x27
cmovb rcx, rax
mov dword [rbp - 0x1c], r8d
mov rbx, r9
mov dword [rbp - 0x20], r10d
mov rsi, r11
call fcn.14005a670
mov r11, rsi
mov r10d, dword [rbp - 0x20]
mov r9, rbx
mov r8d, dword [rbp - 0x1c]
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140037160
test rcx, rcx
je 0x14003715e
mov dword [rbp - 0x1c], r8d
mov rsi, r9
mov dword [rbp - 0x20], r10d
mov rbx, r11
call fcn.14005a670
mov r11, rbx
mov r10d, dword [rbp - 0x20]
mov r9, rsi
mov r8d, dword [rbp - 0x1c]
mov rbx, rax
jmp 0x140037160
xor ebx, ebx
imul rax, r12, 0x38
movdqa xmm0, xmmword [rbp + 0x10]
movdqu xmmword [rbx + rax], xmm0
mov ecx, dword [rbp - 0x38]
mov dword [rbx + rax + 0x10], ecx
mov dword [rbx + rax + 0x14], r10d
mov qword [rbx + rax + 0x18], r11
mov qword [rbx + rax + 0x20], r9
mov dword [rbx + rax + 0x28], r8d
mov ecx, dword [rbp - 0x34]
mov dword [rbx + rax + 0x2c], ecx
mov byte [rbx + rax + 0x30], dil
mov ecx, dword [rbp + 0x48]
mov edx, dword [rbp + 0x4b]
mov dword [rbx + rax + 0x34], edx
mov dword [rbx + rax + 0x31], ecx
mov rdx, qword [rbp - 0x28]
cmp r15, rdx
je 0x1400371e4
xor eax, eax
mov rcx, qword [r15 + rax + 0x30]
mov qword [rbx + rax + 0x30], rcx
movdqu xmm0, xmmword [r15 + rax]
movups xmm1, xmmword [r15 + rax + 0x10]
movups xmm2, xmmword [r15 + rax + 0x20]
movups xmmword [rbx + rax + 0x20], xmm2
movups xmmword [rbx + rax + 0x10], xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x38
cmp r14, rax
jne 0x1400371ae
jmp 0x1400371e7
mov r15, rdx
test r15, r15
je 0x140037209
sub rdx, r15
sar rdx, 3
movabs rax, 0x6db6db6db6db6db7
imul rdx, rax
mov rcx, r15
call fcn.140038550
imul r14, qword [rbp - 0x40], 0x38
add r14, rbx
mov rax, qword [rbp - 0x48]
add rax, rbx
mov r15, rbx
mov rbx, rax
add r13, 0x78
cmp r13, qword [rbp - 0x50]
jne 0x140036f68
jmp 0x140037231
mov r14, r15
sub r14, r15
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
mov rdx, r15
mov r8, r14
call fcn.14004d640
test al, al
je 0x140037262
mov r8, qword [rbp + 0x38]
cmp qword [rbp + 0x40], 0xf
jbe 0x140037372
mov rdx, qword [rbp + 0x28]
jmp 0x140037376
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x1400373d1
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x200
mov r9d, 2
call fcn.140023180
lea rcx, [rbp + 0x50]
lea rdx, str.failed_to_write_records
call fcn.14000d630
mov rcx, rdi
call fcn.140023620
jmp 0x1400373d1
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x1400373cd
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp + 0x48]
mov r8d, 0x1f6
mov r9d, 2
call fcn.140023180
lea rcx, [rbp + 0x50]
mov eax, 8
cmp qword [r13 + 0x28], rax
mov rsi, qword [rbp - 0x18]
jb 0x1400372f4
mov rdi, qword [rdi]
mov rdx, rdi
call fcn.1400247d0
lea rdx, str._expected_to_start_with
mov rcx, rax
call fcn.14000d630
mov rdi, rax
cmp qword [rsi + 0x28], 7
jbe 0x14003731d
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x30], rax
mov rdx, rbp
mov rax, qword [rbp - 0x30]
mov qword [rdx], rax
mov rax, qword [rsi + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rbp + 0x160]
mov rcx, rbx
call fcn.140016fd0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x140037353
mov rdx, qword [rbp + 0x160]
mov rcx, rdi
call fcn.14000e890
mov rcx, rbx
call fcn.140001260
lea rcx, [rbp + 0x48]
call fcn.140023620
mov rbx, qword [rbp - 0x28]
jmp 0x1400373d5
lea rdx, [rbp + 0x28]
mov rsi, qword [rbp - 0x18]
mov rcx, qword [rsi]
call fcn.14004d640
test al, al
jne 0x1400373d5
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x1400373d5
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rbp + 0x48]
mov rcx, rdi
mov r8d, 0x205
mov r9d, 2
call fcn.140023180
lea rcx, [rbp + 0x50]
lea rdx, str.failed_to_write_string_table
call fcn.14000d630
mov rcx, rdi
call fcn.140023620
jmp 0x1400373d5
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x18]
test r15, r15
je 0x1400373f7
sub rbx, r15
sar rbx, 3
movabs rdx, 0x6db6db6db6db6db7
imul rdx, rbx
mov rcx, r15
call fcn.140038550
lea rcx, [rbp + 0x28]
call fcn.140001260
jmp 0x140036ce9
int3
int3
call fcn.140002ec0
ud2