Function at 0x1400a1c8c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov r13b, dil
lea rax, vtable.CRefGuard_class_CRConData_.0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x10], eax
lea rax, vtable.CRConDataGuard.0
mov qword [rbp - 0x20], rax
xor edx, edx
mov rcx, rsi
call fcn.1400a6b2c
mov rcx, qword [rsi + 0x1cb8]
test rcx, rcx
je 0x1400a1cf8
call fcn.14012008c
mov qword [rsi + 0x1cb8], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi + 0x1cb0], xmm0
movups xmmword [rsi + 0x1cc0], xmm0
movups xmmword [rsi + 0x1cd0], xmm0
mov qword [rsi + 0x1ce0], rax
test rbx, rbx
je 0x1400a21e3
cmp word [rbx], di
je 0x1400a21e3
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r14d, [rax + 1]
mov r8d, r14d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400a21b7
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a21a5
mov rax, qword [rbp + 0x50]
test eax, eax
je 0x1400a21a5
cmp dword [rbp + 0x54], edi
jne 0x1400a21a5
mov ecx, eax
call fcn.140120104
mov rdx, rax
mov qword [rsi + 0x1cb8], rax
test rax, rax
je 0x1400a21da
mov eax, dword [rbp + 0x50]
mov qword [rsi + 0x1cb0], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x54]
mov r8d, dword [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a218a
mov eax, dword [rbp + 0x54]
cmp dword [rbp + 0x50], eax
jne 0x1400a218a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r15d, [r14 + 0xc]
mov edx, r15d
mov rcx, qword [rsi + 0x1cb8]
call fcn.14013a9b0
mov qword [rbp + 0x48], rax
test rax, rax
jne 0x1400a1e20
lea rcx, str.Dump_file_invalid_format__title_
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
or edx, 0xffffffff
call fcn.14011f550
jmp 0x1400a21e3
mov word [rax], di
mov rbx, qword [rbp + 0x48]
mov r8d, 6
lea rdx, [0x14019db78]
lea rcx, [rbx + 4]
call fcn.140146910
test eax, eax
je 0x1400a1e4a
lea rcx, str.Dump_file_invalid_format__Size_start_
jmp 0x1400a1e08
mov edx, r15d
lea rcx, [rbx + 4]
call fcn.14013a9b0
mov qword [rbp + 0x48], rax
test rax, rax
jne 0x1400a1e68
lea rcx, str.Dump_file_invalid_format__Size_line_end_
jmp 0x1400a1e08
add rax, 4
mov qword [rsi + 0x1cd8], rax
lea rcx, [rbx + 0x10]
mov r12d, 0xa
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.140143788
mov word [rsi + 0x1cc8], ax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400a217e
cmp word [rcx], 0x78
jne 0x1400a217e
add rcx, 2
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.140143788
mov word [rsi + 0x1cca], ax
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x1400a2172
cmp word [rbx], 0x20
je 0x1400a1edb
cmp word [rbx], r15w
jne 0x1400a2172
mov word [rsi + 0x1ccc], di
sub ax, r14w
mov word [rsi + 0x1cce], ax
cmp word [rbx], 0x20
jne 0x1400a1f67
add rbx, 2
cmp word [rbx], 0x20
je 0x1400a1ef3
mov r8d, 8
lea rdx, str.Cursor:
mov rcx, rbx
call fcn.140146910
test eax, eax
jne 0x1400a1f67
lea rcx, [rbx + 0x10]
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.140143788
mov ebx, eax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400a1fc1
cmp word [rcx], 0x78
jne 0x1400a1fc1
add rcx, 2
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.140143788
test bx, bx
js 0x1400a1f67
test ax, ax
js 0x1400a1f67
mov word [rsi + 0x1ccc], bx
mov word [rsi + 0x1cce], ax
movsx r14d, word [rsi + 0x1cc8]
movsx eax, word [rsi + 0x1cca]
imul r14d, eax
lea edx, [r14 + r14*2]
shl edx, 3
mov r15d, r14d
lea r12, [r14 + r14]
mov rcx, qword [rsi + 0x1cd8]
add rcx, r12
mov qword [rsi + 0x1ce0], rcx
sub rdx, qword [rsi + 0x1cb8]
add rdx, rcx
cmp rdx, qword [rsi + 0x1cb0]
setle al
mov byte [rsi + 0x1cd0], al
jle 0x1400a1fcd
lea rcx, str.Dump_file_invalid_format__Block1_
jmp 0x1400a1e08
lea rcx, str.Dump_file_invalid_format__Cursor_
jmp 0x1400a1e08
mov dword [rsi], 5
mov rcx, qword [rsi + 0x58]
call fcn.1400aa650
mov edi, eax
mov rcx, qword [rsi + 0x58]
call fcn.1400c17a8
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x1b50], xmm0
mov eax, 0xf
mov dword [rsi + 0x1b8c], eax
lea ecx, [rax - 0xe]
mov dword [rsi + 0x1b90], ecx
xor edx, edx
mov dword [rsi + 0x1bb2], edx
mov eax, 0x362
mov dword [rsi + 0x1b98], eax
mov dword [rsi + 0x1b94], eax
mov dword [rsi + 0x1b9c], edx
mov eax, dword [rsi + 0x1cc8]
mov dword [rsi + 0x1ba0], eax
mov eax, dword [rsi + 0x1ccc]
mov dword [rsi + 0x1ba4], eax
mov dword [rsi + 0x1ba8], 7
mov word [rsi + 0x1bac], dx
movzx eax, di
sub ax, cx
mov word [rsi + 0x1bae], ax
movzx eax, bx
sub ax, cx
mov word [rsi + 0x1bb0], ax
mov rax, qword [rsi + 0x58]
mov rcx, qword [rax + 0x4258]
mov eax, dword [rcx + 0x1bbe]
mov dword [rsi + 0x1bbe], eax
mov dword [rsi + 0x1bb2], eax
mov byte [rsp + 0x20], dl
xor r9d, r9d
or eax, 0xffffffff
mov r8d, eax
mov edx, eax
mov rcx, rsi
call fcn.1400a6ba8
mov dword [rsi + 0x1c04], edi
mov dword [rsi + 0x1c08], ebx
movsx eax, word [rsi + 0x1cca]
mov dword [rsi + 0x1c0c], eax
mov byte [rsi + 0x1c24], 1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1400a0a88
xor edi, edi
test al, al
je 0x1400a21e3
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14009b4c0
test al, al
je 0x1400a21e3
mov rdi, qword [rsi + 0x1ce0]
mov rax, qword [rbp - 0x18]
mov rbx, qword [rax + 0x30]
mov r8, r12
mov rdx, qword [rsi + 0x1cd8]
mov rcx, qword [rax + 0x28]
call fcn.14013b6b0
test r14d, r14d
je 0x1400a2159
lea rdx, [rdi + 8]
mov esi, 1
lea r8d, [rsi + 0xe]
mov eax, dword [rdx]
mov ecx, eax
shr ecx, 8
and cx, r8w
shr eax, 0x10
shl ax, 4
or cx, ax
mov eax, 0xff
and cx, ax
mov word [rbx], cx
lea rdx, [rdx + 0x18]
lea rbx, [rbx + 2]
sub r15, rsi
jne 0x1400a2128
mov rsi, qword [rbp + 0x40]
mov eax, 1
mov byte [rsi + 0x1c00], al
mov byte [rsi + 0x1c3c], al
mov r13b, al
jmp 0x1400a221c
lea rcx, str.Dump_file_invalid_format__Size.Y_
jmp 0x1400a1e08
lea rcx, str.Dump_file_invalid_format__Size.X_
jmp 0x1400a1e08
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Dump_file_reading_failed
mov qword [rsp + 0x20], rdi
call fcn.14011f550
jmp 0x1400a21da
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
lea rcx, str.Invalid_dump_file_size
jmp 0x1400a2199
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Cant_open_dump_file_for_reading
call fcn.14011f550
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a21e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x1cb8]
test rcx, rcx
je 0x1400a21fb
call fcn.14012008c
mov qword [rsi + 0x1cb8], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi + 0x1cb0], xmm0
movups xmmword [rsi + 0x1cc0], xmm0
movups xmmword [rsi + 0x1cd0], xmm0
mov qword [rsi + 0x1ce0], rax
lea rax, vtable.CRefGuard_class_CRConData_.0
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400a2254
mov eax, dword [rcx + 8]
mov edx, 0x7fffffff
cmp eax, edx
je 0x1400a2254
lock dec dword [rcx + 8]
mov eax, dword [rcx + 8]
test eax, eax
jg 0x1400a2251
mov dword [rcx + 8], edx
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400a2254
mov ecx, dword [rcx + 8]
mov al, r13b
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret