Function at 0x140099680
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
mov dword [rsi + 0x1b50], edi
mov rcx, qword [rsi + 0x1cb0]
test rcx, rcx
je 0x1400996e8
call fcn.140113e18
mov qword [rsi + 0x1cb0], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi + 0x1ca8], xmm0
movups xmmword [rsi + 0x1cb8], xmm0
movups xmmword [rsi + 0x1cc8], xmm0
mov qword [rsi + 0x1cd8], rax
test rbx, rbx
je 0x140099bd3
cmp word [rbx], di
je 0x140099bd3
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 0x140099ba7
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140099b95
mov rax, qword [rbp + 0x50]
test eax, eax
je 0x140099b95
cmp dword [rbp + 0x54], edi
jne 0x140099b95
mov ecx, eax
call fcn.140113e8c
mov rdx, rax
mov qword [rsi + 0x1cb0], rax
test rax, rax
je 0x140099bca
mov eax, dword [rbp + 0x50]
mov qword [rsi + 0x1ca8], 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 0x140099b7a
mov eax, dword [rbp + 0x54]
cmp dword [rbp + 0x50], eax
jne 0x140099b7a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r15d, [r14 + 0xc]
mov edx, r15d
mov rcx, qword [rsi + 0x1cb0]
call fcn.14012cc40
mov qword [rbp + 0x48], rax
test rax, rax
jne 0x140099810
lea rcx, str.Dump_file_invalid_format__title_
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
or edx, 0xffffffff
call fcn.140113304
jmp 0x140099bd3
mov word [rax], di
mov rbx, qword [rbp + 0x48]
mov r8d, 6
lea rdx, [0x1401aaee8]
lea rcx, [rbx + 4]
call fcn.140138a08
test eax, eax
je 0x14009983a
lea rcx, str.Dump_file_invalid_format__Size_start_
jmp 0x1400997f8
mov edx, r15d
lea rcx, [rbx + 4]
call fcn.14012cc40
mov qword [rbp + 0x48], rax
test rax, rax
jne 0x140099858
lea rcx, str.Dump_file_invalid_format__Size_line_end_
jmp 0x1400997f8
add rax, 4
mov qword [rsi + 0x1cd0], rax
lea rcx, [rbx + 0x10]
mov r12d, 0xa
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.1401358a4
mov word [rsi + 0x1cc0], ax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140099b6e
cmp word [rcx], 0x78
jne 0x140099b6e
add rcx, 2
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.1401358a4
mov word [rsi + 0x1cc2], ax
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x140099b62
cmp word [rbx], 0x20
je 0x1400998cb
cmp word [rbx], r15w
jne 0x140099b62
mov word [rsi + 0x1cc4], di
sub ax, r14w
mov word [rsi + 0x1cc6], ax
cmp word [rbx], 0x20
jne 0x140099957
add rbx, 2
cmp word [rbx], 0x20
je 0x1400998e3
mov r8d, 8
lea rdx, str.Cursor:
mov rcx, rbx
call fcn.140138a08
test eax, eax
jne 0x140099957
lea rcx, [rbx + 0x10]
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.1401358a4
mov ebx, eax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400999b1
cmp word [rcx], 0x78
jne 0x1400999b1
add rcx, 2
mov r8d, r12d
lea rdx, [rbp + 0x48]
call fcn.1401358a4
test bx, bx
js 0x140099957
test ax, ax
js 0x140099957
mov word [rsi + 0x1cc4], bx
mov word [rsi + 0x1cc6], ax
movsx r14d, word [rsi + 0x1cc0]
movsx eax, word [rsi + 0x1cc2]
imul r14d, eax
lea edx, [r14 + r14*2]
shl edx, 3
mov r15d, r14d
lea r12, [r14 + r14]
mov rcx, qword [rsi + 0x1cd0]
add rcx, r12
mov qword [rsi + 0x1cd8], rcx
sub rdx, qword [rsi + 0x1cb0]
add rdx, rcx
cmp rdx, qword [rsi + 0x1ca8]
setle al
mov byte [rsi + 0x1cc8], al
jle 0x1400999bd
lea rcx, str.Dump_file_invalid_format__Block1_
jmp 0x1400997f8
lea rcx, str.Dump_file_invalid_format__Cursor_
jmp 0x1400997f8
mov dword [rsi], 5
mov rcx, qword [rsi + 0x58]
call fcn.1400b8174
mov edi, eax
mov rcx, qword [rsi + 0x58]
call fcn.1400b815c
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x1b50], xmm0
mov eax, 0xf
mov dword [rsi + 0x1b84], eax
lea ecx, [rax - 0xe]
mov dword [rsi + 0x1b88], ecx
xor edx, edx
mov dword [rsi + 0x1baa], edx
mov eax, 0x362
mov dword [rsi + 0x1b90], eax
mov dword [rsi + 0x1b8c], eax
mov dword [rsi + 0x1b94], edx
mov eax, dword [rsi + 0x1cc0]
mov dword [rsi + 0x1b98], eax
mov eax, dword [rsi + 0x1cc4]
mov dword [rsi + 0x1b9c], eax
mov dword [rsi + 0x1ba0], 7
mov word [rsi + 0x1ba4], dx
movzx eax, di
sub ax, cx
mov word [rsi + 0x1ba6], ax
movzx eax, bx
sub ax, cx
mov word [rsi + 0x1ba8], ax
mov rax, qword [rsi + 0x58]
mov rcx, qword [rax + 0x4250]
mov eax, dword [rcx + 0x1bb6]
mov dword [rsi + 0x1bb6], eax
mov dword [rsi + 0x1baa], eax
mov byte [rsp + 0x20], dl
xor r9d, r9d
or eax, 0xffffffff
mov r8d, eax
mov edx, eax
mov rcx, rsi
call fcn.14009df78
mov dword [rsi + 0x1bfc], edi
mov dword [rsi + 0x1c00], ebx
movsx eax, word [rsi + 0x1cc2]
mov dword [rsi + 0x1c04], eax
mov byte [rsi + 0x1c18], 1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140098384
xor edi, edi
test al, al
je 0x140099bd3
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.140093000
test al, al
je 0x140099bd3
mov rdi, qword [rsi + 0x1cd8]
mov rax, qword [rbp - 0x18]
mov rbx, qword [rax + 0x30]
mov r8, r12
mov rdx, qword [rsi + 0x1cd0]
mov rcx, qword [rax + 0x28]
call fcn.14012d940
test r14d, r14d
je 0x140099b49
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 0x140099b18
mov rsi, qword [rbp + 0x40]
mov eax, 1
mov byte [rsi + 0x1bf8], al
mov byte [rsi + 0x1c34], al
mov r13b, al
jmp 0x140099c0c
lea rcx, str.Dump_file_invalid_format__Size.Y_
jmp 0x1400997f8
lea rcx, str.Dump_file_invalid_format__Size.X_
jmp 0x1400997f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Dump_file_reading_failed
mov qword [rsp + 0x20], rdi
call fcn.140113304
jmp 0x140099bca
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
lea rcx, str.Invalid_dump_file_size
jmp 0x140099b89
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.140113304
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140099bd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x1cb0]
test rcx, rcx
je 0x140099beb
call fcn.140113e18
mov qword [rsi + 0x1cb0], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi + 0x1ca8], xmm0
movups xmmword [rsi + 0x1cb8], xmm0
movups xmmword [rsi + 0x1cc8], xmm0
mov qword [rsi + 0x1cd8], rax
lea rax, vtable.CRefGuard_class_CRConData_.0
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140099c44
mov eax, dword [rcx + 8]
mov edx, 0x7fffffff
cmp eax, edx
je 0x140099c44
lock dec dword [rcx + 8]
mov eax, dword [rcx + 8]
test eax, eax
jg 0x140099c41
mov dword [rcx + 8], edx
mov rax, qword [rcx]
call qword [rax]
jmp 0x140099c44
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