Function at 0x14000fee0
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.1400a5130
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x11a0], rbx
mov qword [rsp + 0x11a8], rsi
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x1050], rax
movzx r12d, r8b
mov rdi, rdx
mov r13, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
test rdx, rdx
je 0x1400101bc
cmp word [rdx], r14w
je 0x1400101bc
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov esi, r14d
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x60]
call fcn.14000e340
cmp word [rdi], 0x5c
je 0x14000ffa8
lea r8d, [r14 + 1]
lea rdx, [0x1400ca248]
lea rcx, [rbp - 0x60]
call fcn.14000b850
mov r8, rdi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.14000f2c0
xor r9d, r9d
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14000e0b0
nop
cmp byte [rbp - 7], 0
jne 0x14001000f
mov ecx, dword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x1400cc930]
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.VeraCrypt::File::GetFileSize:869
mov qword [rsp + 0x38], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x28]
call fcn.1400a5d24
int3
cmp byte [rbp - 8], 0
je 0x14001002a
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x18]
call fcn.14000a5b0
mov rdi, qword [rsp + 0x40]
jmp 0x14001007b
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x20]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140010076
lea rdx, [0x1400cc930]
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.VeraCrypt::File::GetFileSize:880
mov qword [rsp + 0x38], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x28]
call fcn.1400a5d24
int3
mov rdi, qword [rsp + 0x20]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.14000cc70
mov edx, edi
mov rbx, qword [rsp + 0x50]
mov byte [rdx + rbx], 0
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.14000a700
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400100ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
mov byte [rbp - 7], 0
test r12b, r12b
je 0x1400100ef
lea rcx, [0x1400cdbe4]
movzx edx, word [rbx]
cmp dx, word [rcx]
jne 0x1400100e0
movzx edx, byte [rbx + 2]
cmp dl, byte [rcx + 2]
jne 0x1400100e0
mov eax, r14d
jmp 0x1400100e5
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, 3
test eax, eax
cmove esi, ecx
mov edx, esi
add rdx, rbx
mov qword [r13 + 0x18], 0xf
mov qword [r13 + 0x10], r14
mov byte [r13], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call fcn.140007f10
nop
lea rax, [0x1400cc990]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x140010143
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
mov byte [rbp - 7], 0
cmp qword [rbp + 0x30], 8
jb 0x140010157
mov rcx, qword [rbp + 0x18]
call fcn.1400a58b8
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r14
mov word [rbp + 0x18], r14w
cmp qword [rbp - 0x20], 8
jb 0x140010178
mov rcx, qword [rbp - 0x38]
call fcn.1400a58b8
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
cmp qword [rbp - 0x48], 8
jb 0x140010199
mov rcx, qword [rbp - 0x60]
call fcn.1400a58b8
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
test rbx, rbx
je 0x1400101b7
mov rcx, rbx
call fcn.1400a58b8
mov rax, r13
jmp 0x1400101e6
lea rax, [0x1400ccb18]
mov qword [rsp + 0x40], rax
lea rax, str.VeraCrypt::ReadESPFile:2552
mov qword [rsp + 0x48], rax
lea rdx, [0x140143520]
lea rcx, [rsp + 0x40]
call fcn.1400a5d24
int3
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1400a4e70
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret