Function at 0x140002420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x2170]
mov eax, 0x2270
call fcn.1400a5130
sub rsp, rax
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x2130], rax
mov qword [rsp + 0x2290], rbx
mov qword [rsp + 0x2268], rsi
mov qword [rsp + 0x2260], rdi
mov qword [rsp + 0x2258], r12
mov qword [rsp + 0x2250], r13
mov rsi, rdx
mov r13d, 1
mov rdi, rcx
movabs rax, 0x5c003a0041
mov rdx, rcx
xor ebx, ebx
mov r8d, r13d
mov rcx, rsi
mov qword [rsp + 0x2248], r14
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x2240], r15
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x4c], 0xffffffff
mov qword [rbp + 0x120], rax
call fcn.140034aa0
mov rcx, rdi
dec eax
cmp eax, r13d
ja 0x1400024d4
lea rdx, str.A_VeraCrypt_system_volume_cant_be_expanded.
jmp 0x140002bd9
call fcn.14001b330
call fcn.1400192a0
mov rcx, rsi
call fcn.14002c1c0
test eax, eax
je 0x1400024fe
lea rcx, str.DISMOUNT_FIRST
mov rdx, rdi
call fcn.14001aa50
jmp 0x140002bec
call fcn.14003f860
test eax, eax
je 0x14000252f
cmp dword [0x1401a6c58], ebx
setne bl
add ebx, 0x23
mov eax, ebx
mov dword [rsp + 0x40], ebx
lea r8, str.ExpandVolumeWizard:833
mov edx, eax
mov rcx, rdi
call fcn.140028ea0
jmp 0x140002bf0
call fcn.140019310
lea rax, str.DOES_VOLUME_CONTAIN_HIDDEN
lea rcx, [rbp + 8]
mov qword [rbp + 0x10], rax
lea rax, str.VOLUME_CONTAINS_HIDDEN
mov r8, rdi
mov qword [rbp + 0x18], rax
lea rax, str.VOLUME_DOES_NOT_CONTAIN_HIDDEN
xor edx, edx
mov qword [rbp + 0x20], rax
lea rax, str.IDCANCEL
mov qword [rbp + 8], rbx
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rbx
call fcn.14001ab00
dec eax
je 0x140002bcf
dec eax
jne 0x140002bec
call fcn.1400192a0
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call fcn.140002ee0
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400025b3
mov eax, r13d
mov dword [rsp + 0x40], eax
jmp 0x140002519
call fcn.140019310
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x50]
lea r12, str.ENTER_NORMAL_VOL_PASSWORD
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x90]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rax
call fcn.140007800
test eax, eax
je 0x140002bec
nop
mov rcx, rdi
call fcn.14001b330
call fcn.1400192a0
cmp dword [0x140196f54], ebx
je 0x140002633
mov r8, qword [0x140196f58]
test r8, r8
je 0x140002633
lea rdx, [rbp + 0x90]
mov r9, rsi
mov rcx, rdi
call fcn.140038870
lea rax, [rbp + 0x40]
lea r9, [rbp - 0x30]
lea r8, [0x1400012a0]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x90]
mov edx, r13d
mov qword [rbp - 0x20], rax
mov eax, dword [rsp + 0x44]
mov rcx, rdi
mov dword [rbp - 0x18], eax
mov eax, dword [rsp + 0x4c]
mov qword [rbp - 0x28], rsi
mov dword [rbp - 0x14], eax
mov eax, dword [0x1401482e4]
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], eax
lea rax, [rsp + 0x40]
mov dword [rbp - 4], ebx
mov qword [rbp], rax
call fcn.14001eb50
call fcn.140019310
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140002715
cmp ecx, 3
jne 0x1400026fc
call fcn.140019310
mov edx, dword [rsp + 0x40]
lea r8, str.ExpandVolumeWizard:653
mov rcx, rdi
call fcn.140028ea0
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x90]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call fcn.140007800
test eax, eax
jne 0x140002600
jmp 0x140002bec
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140002bf0
jmp 0x140002519
mov rcx, qword [rbp + 0x48]
movsxd r12, dword [rbp + 0x50]
mov r14, qword [rbp + 0x60]
mov r13d, dword [rcx + 0x2bdc]
mov eax, dword [rcx + 8]
mov dword [rsp + 0x44], eax
test r13d, r13d
je 0x140002740
mov r15, r14
test r12d, r12d
cmovne r15, rbx
jmp 0x140002751
mov rcx, qword [rcx + 0x2be8]
xor edx, edx
call fcn.140003160
mov r15, rax
lea rcx, [rbp + 0x40]
call fcn.14001b000
call fcn.1400192a0
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x28], edx
lea r9, [rbp + 0x90]
mov dword [rsp + 0x20], ecx
lea r8, [rsp + 0x54]
mov rdx, rsi
mov rcx, rdi
call fcn.140002c80
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140002519
movzx eax, word [rsp + 0x54]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x120]
add word [rbp + 0x120], ax
call fcn.140002db0
mov ecx, dword [rsp + 0x48]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x48], ecx
test r13d, r13d
je 0x140002805
test r12d, r12d
je 0x140002805
cmp ecx, 2
jne 0x140002805
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x120]
call fcn.140002ff0
mov ecx, dword [rsp + 0x40]
mov r15, qword [rbp - 0x40]
test eax, eax
mov eax, dword [rsp + 0x60]
mov r8d, 1
cmove ecx, r8d
inc r15
mov dword [rsp + 0x40], ecx
imul r15, rax
jmp 0x14000280b
mov r8d, 1
mov edx, dword [rsp + 0x54]
mov rcx, rdi
call fcn.14002b0f0
call fcn.140019310
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140002519
test r12d, r12d
je 0x140002853
test r13d, r13d
je 0x140002845
cmp dword [rsp + 0x48], 2
je 0x140002845
lea rdx, str.Expanding_a_device_hosted_legacy_volume_with_no_NTFS_file_system_nis_unsupported._nNote_that_expanding_the_VeraCrypt_volume_itself_is_not_neccessary_nfor_legacy_volumes._n
jmp 0x140002bd6
lea rax, [r15 + 0x10000]
cmp r14, rax
jb 0x14000285e
jmp 0x140002895
cmp qword [rsp + 0x58], 0x10000
jae 0x14000286a
lea rdx, str.Not_enough_free_space_to_expand_the_volume
jmp 0x140002bd6
cmp r14, r15
je 0x140002895
mov r8, qword [0x140196ee8]
lea rdx, str.Warning:_The_container_file_is_larger_than_the_VeraCrypt_volume_area._The_data_after_the_VeraCrypt_volume_area_will_be_overwritten._n_nDo_you_want_to_continue_
mov r9d, 0x124
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x140002bec
mov ecx, dword [rsp + 0x48]
dec ecx
je 0x1400028d5
dec ecx
je 0x1400028fb
mov r8, qword [0x140196ee8]
dec ecx
mov r9d, 0x124
mov rcx, rdi
je 0x1400028cc
lea rdx, str.Warning:_The_VeraCrypt_volume_contains_an_unknown_or_no_file_system__n_nOnly_the_VeraCrypt_volume_itself_will_be_expanded__the_file_system_remains_unchanged._n_nDo_you_want_to_continue_
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x1400028fb
jmp 0x140002bec
lea rdx, str.Warning:_The_VeraCrypt_volume_contains_an_exFAT_file_system__n_nOnly_the_VeraCrypt_volume_itself_will_be_expanded__but_not_the_file_system._n_nDo_you_want_to_continue_
jmp 0x1400028ec
mov r8, qword [0x140196ee8]
mov r9d, 0x124
lea rdx, str.Warning:_The_VeraCrypt_volume_contains_a_FAT_file_system__n_nOnly_the_VeraCrypt_volume_itself_will_be_expanded__but_not_the_file_system._n_nDo_you_want_to_continue_
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x140002bec
test r13d, r13d
je 0x14000290a
test r12d, r12d
je 0x14000290a
mov dword [rbp - 0x64], ebx
jmp 0x140002912
mov eax, 1
mov dword [rbp - 0x64], eax
mov eax, dword [rsp + 0x48]
test r12d, r12d
mov dword [rbp - 0x60], ebx
mov dword [rbp - 0x70], eax
lea rax, [rbp + 0x90]
mov dword [rbp - 0x5c], r12d
mov qword [rbp - 0x58], rax
mov eax, dword [rsp + 0x44]
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x50], eax
mov eax, dword [rsp + 0x4c]
mov dword [rbp - 0x6c], r12d
mov dword [rbp - 0x4c], eax
mov rax, r14
mov dword [rbp - 0x68], r13d
cmovne rax, r15
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x80], rax
jne 0x140002989
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13d, 1
cmp eax, 0xffffffff
je 0x14000298f
test eax, 0xa00
mov eax, dword [rbp - 0x5c]
cmovne eax, r13d
mov dword [rbp - 0x5c], eax
jmp 0x14000298f
mov r13d, 1
mov rcx, qword [0x1401971c0]
lea rax, [rsp + 0x70]
lea r9, [0x1400016a0]
mov r8, rdi
mov edx, 0x75
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp rax, 2
je 0x140002bec
movabs rcx, 0x4000000000000
nop dword [rax]
mov rsi, qword [rsp + 0x78]
test r12, r12
jne 0x140002b21
lea rax, [r14 + 0x10000]
cmp rsi, rax
jae 0x140002a42
cmp r14, r15
je 0x140002a02
cmp rsi, r14
jne 0x140002a02
mov rax, r14
sub rax, r15
cmp rax, 0x10000
jae 0x140002a42
lea r8, str.New_volume_size_too_small__must_be_at_least__I64u_kB_larger_than_the_current_size.
lea rcx, [rbp + 0x130]
mov r9d, 0x40
mov edx, 0x2000
call section..text
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x130]
mov r9d, 0x30
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140002b66
mov rax, rsi
sub rax, r14
cmp rax, qword [rsp + 0x58]
jbe 0x140002a89
lea r8, str.New_volume_size_too_large__not_enough_space_on_host_drive.
lea rcx, [rbp + 0x130]
mov edx, 0x2000
call section..text
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x130]
mov r9d, 0x30
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140002b66
mov r9, qword [rbp - 0x38]
cmp rsi, r9
jbe 0x140002ad0
lea r8, str.Maximum_file_size_of__I64u_MB_on_host_drive_exceeded.
lea rcx, [rbp + 0x130]
shr r9, 0x14
mov edx, 0x2000
call section..text
mov r8, qword [0x140196ee8]
lea rdx, [0x1400cafd8]
mov r9d, 0x30
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140002b66
cmp dword [rbp - 0x60], ebx
je 0x140002b21
cmp dword [0x14014fb38], ebx
jne 0x140002b21
lea rcx, str.SeManageVolumePrivilege
mov edx, r13d
call fcn.14001b6d0
test eax, eax
jne 0x140002b10
mov r8, qword [0x140196ee8]
lea r9d, [rax + 0x30]
lea rdx, str.Error:_Failed_to_get_necessary_privileges_to_enable_Quick_Expand__nPlease_uncheck_Quick_Expand_option_and_try_again.
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rbp - 0x60], ebx
jmp 0x140002b66
mov dword [0x14014fb38], r13d
movabs rcx, 0x4000000000000
cmp rsi, rcx
jbe 0x140002ba2
lea r8, str.Maximum_VeraCrypt_volume_size_of__I64u_TB_exceeded__n
lea rcx, [rbp + 0x130]
mov r9d, 0x400
mov edx, 0x2000
call section..text
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x130]
mov r9d, 0x30
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
test r12, r12
jne 0x140002ba2
mov rcx, qword [0x1401971c0]
lea rax, [rsp + 0x70]
lea r9, [0x1400016a0]
mov r8, rdi
mov edx, 0x75
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
movabs rcx, 0x4000000000000
cmp rax, 2
jne 0x1400029d0
jmp 0x140002bec
mov rcx, qword [0x1401971c0]
lea rax, [rsp + 0x70]
lea r9, [0x140001bd0]
mov r8, rdi
mov edx, 0x6a
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r15
call qword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x140002bec
lea rdx, str.An_outer_volume_containing_a_hidden_volume_cant_be_expanded__because_this_destroys_the_hidden_volume.
mov rcx, rdi
mov r8, qword [0x140196ee8]
mov r9d, 0x30
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x40], ebx
mov r15, qword [rsp + 0x2240]
mov r14, qword [rsp + 0x2248]
mov r13, qword [rsp + 0x2250]
mov r12, qword [rsp + 0x2258]
mov rsi, qword [rsp + 0x2268]
mov rbx, qword [rsp + 0x2290]
mov edx, 0x88
lea rdi, [rbp + 0x90]
xor eax, eax
mov ecx, edx
lea r8, [rbp + 0x90]
rep stosb byte [rdi], al
mov rdi, qword [rsp + 0x2260]
mov byte [r8], al
inc r8
dec rdx
jne 0x140002c41
call fcn.14001ac40
xor ecx, ecx
call fcn.14003da80
call fcn.140019310
mov rcx, qword [rbp + 0x2130]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x2270
pop rbp
ret