Function at 0x140004680
Capabilities:
Get disk size
Get volume information via ioctl

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x2d78]
mov eax, 0x2e78
call fcn.14000a810
sub rsp, rax
mov rax, qword [0x140074248]
xor rax, rsp
mov qword [rbp + 0x2d40], rax
cmp qword [0x140075048], 0
mov rdi, r9
mov rax, qword [rbp + 0x2dc0]
mov rbx, r8
mov qword [rsp + 0x60], rax
mov r12, rcx
mov qword [rsp + 0x58], r9
jne 0x1400046f1
mov r9d, InitCommonControls
lea r8, [0x14005f108]
lea rdx, str.Could_not_get_NtFsControlFile_entry_point
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1400050cb
mov qword [rsp + 0x2e68], r13
lea rcx, [rbp + 0x2520]
movzx r13d, dx
lea rdx, str.._c:
mov r8d, r13d
mov qword [rsp + 0x2e60], r14
mov qword [rsp + 0x2e58], r15
call fcn.140002700
xor r15d, r15d
lea rcx, [rbp + 0x2520]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14000477c
lea r9d, [r15 + 0x10]
mov rcx, r12
lea r8, [0x14005f108]
lea rdx, str.Could_not_open_volume
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1400050b3
mov r8d, r13d
lea rdx, str._c:_
lea rcx, [rbp + 0x2520]
call fcn.140002700
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2520]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [rsp + 0x48], 0x60
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x38], r15d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x90064
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [0x140075048]
test eax, eax
je 0x140004826
mov r9d, InitCommonControls
lea r8, [0x14005f108]
lea rdx, str.Unable_to_get_volume_information.
mov rcx, r12
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400050b3
mov rcx, qword [0x1401750b0]
mov qword [rsp + 0x2e70], rsi
mov esi, dword [rbp]
shr esi, 3
add esi, 0x18
call fcn.14001a638
mov ecx, esi
call fcn.14001a640
mov qword [0x1401750b0], rax
test rax, rax
jne 0x140004881
lea r9d, [rax + 0x10]
mov rcx, r12
lea r8, [0x14005f108]
lea rdx, str.There_is_insufficient_memory_to_process_a_disk_with_this_number_of_clusters.
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400050ab
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14000d0d0
mov rax, qword [0x1401750b0]
xor r9d, r9d
mov dword [rsp + 0x48], esi
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov dword [rsp + 0x38], 8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 0x9006f
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], r15
call qword [0x140075048]
cmp eax, 0x103
jne 0x1400048ef
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x140004920
mov r9d, InitCommonControls
lea r8, [0x14005f108]
lea rdx, str.Error_retrieving_volume_bitmap
mov rcx, r12
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400050ab
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x60]
call fcn.14000d0d0
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x60
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x90064
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004975
mov rax, qword [rbp - 0x20]
mov ecx, dword [rbp - 0x18]
mov dword [rbx + 0x10], eax
sub ecx, eax
jmp 0x14000497c
mov dword [rbx + 0x10], r15d
mov ecx, r15d
mov dword [rbx + 0x14], ecx
lea rcx, [0x140075050]
mov rax, qword [0x1401750b0]
add rax, 0x10
mov qword [rbx], rax
mov eax, dword [rbp]
mov dword [rbx + 0x28], eax
mov eax, dword [rbp + 8]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x50]
imul eax, dword [rsp + 0x68]
mov dword [rbx + 0xc], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x30]
call fcn.140009ec0
mov ecx, dword [rbx + 0x28]
mov eax, 8
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.140009eb8
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140004a22
lea rcx, [0x140075050]
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x28], r15d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9d, [rsi + 0x11]
mov rcx, r12
lea r8, [0x14005f108]
lea rdx, str.There_is_insufficient_memory_to_process_a_disk_with_this_number_of_clusters.
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1400050ab
mov r8d, dword [rbx + 0x28]
mov edx, esi
shl r8, 3
mov rcx, rax
call fcn.14000d0d0
mov esi, r15d
cmp dword [rbx + 0x18], r15d
jbe 0x140004a59
nop dword [rax]
mov rcx, qword [rbx + 0x20]
mov eax, esi
add rax, rax
mov rcx, qword [rcx + rax*8]
call fcn.140009ec0
inc esi
cmp esi, dword [rbx + 0x18]
jb 0x140004a40
mov rcx, qword [rbx + 0x20]
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], 0x2710
call fcn.14001a638
mov ecx, dword [rbx + 0x1c]
shl rcx, 4
call fcn.14001a640
mov r8d, dword [rbx + 0x1c]
xor edx, edx
shl r8, 4
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.14000d0d0
lea rcx, [0x140075050]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 0x14], r15d
je 0x140005008
movsd xmm0, qword [str._Mft]
lea rcx, [rbp + 0x5a]
movzx eax, word [0x14005f308]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x50], xmm0
mov word [rbp + 0x58], ax
call fcn.14000d0d0
xor edx, edx
mov dword [rbp + 0x258], r15d
mov r8d, 0x208
lea rcx, [rbp + 0x25c]
call fcn.14000d0d0
movups xmm0, xmmword [str._LogFile]
movzx eax, word [0x14005f320]
lea rcx, [rbp + 0x47a]
xor edx, edx
mov dword [rbp + 0x464], 1
mov r8d, 0x1f6
mov word [rbp + 0x478], ax
movups xmmword [rbp + 0x468], xmm0
call fcn.14000d0d0
movups xmm0, xmmword [str._Volume]
xor edx, edx
mov dword [rbp + 0x670], 2
mov r8d, 0x1f8
lea rcx, [rbp + 0x684]
movups xmmword [rbp + 0x674], xmm0
call fcn.14000d0d0
movups xmm0, xmmword [str._AttrDef]
movzx eax, word [0x14005f348]
lea rcx, [rbp + 0x892]
xor edx, edx
mov dword [rbp + 0x87c], 3
mov r8d, 0x1f6
movaps xmmword [rbp + 0x880], xmm0
mov word [rbp + 0x890], ax
call fcn.14000d0d0
xor edx, edx
mov dword [rbp + 0xa88], 4
mov r8d, 0x208
lea rcx, [rbp + 0xa8c]
call fcn.14000d0d0
movups xmm0, xmmword [str._Bitmap]
xor edx, edx
mov dword [rbp + 0xc94], 5
mov r8d, 0x1f8
lea rcx, [rbp + 0xca8]
movups xmmword [rbp + 0xc98], xmm0
call fcn.14000d0d0
movsd xmm0, qword [str._Boot]
lea rcx, [rbp + 0xeb0]
mov eax, dword [0x14005f368]
xor edx, edx
mov r8d, 0x1fc
movsd qword [rbp + 0xea4], xmm0
mov dword [rbp + 0xea0], 6
mov dword [rbp + 0xeac], eax
call fcn.14000d0d0
movups xmm0, xmmword [str._BadClus]
movzx eax, word [0x14005f380]
lea rcx, [rbp + 0x10c2]
xor edx, edx
mov dword [rbp + 0x10ac], 7
mov r8d, 0x1f6
movaps xmmword [rbp + 0x10b0], xmm0
mov word [rbp + 0x10c0], ax
call fcn.14000d0d0
movups xmm0, xmmword [str._Secure]
xor edx, edx
mov dword [rbp + 0x12b8], 8
mov r8d, 0x1f8
lea rcx, [rbp + 0x12cc]
movups xmmword [rbp + 0x12bc], xmm0
call fcn.14000d0d0
movups xmm0, xmmword [str._UpCase]
mov dword [rbp + 0x14c4], 9
lea rcx, [rbp + 0x14d8]
xor edx, edx
mov r8d, 0x1f8
movups xmmword [rbp + 0x14c8], xmm0
call fcn.14000d0d0
movups xmm0, xmmword [str._Extend]
xor edx, edx
mov dword [rbp + 0x16d0], 0xa
mov r8d, 0x1f8
lea rcx, [rbp + 0x16e4]
movups xmmword [rbp + 0x16d4], xmm0
call fcn.14000d0d0
xor edx, edx
mov dword [rbp + 0x18dc], InitCommonControls
mov r8d, 0x208
lea rcx, [rbp + 0x18e0]
call fcn.14000d0d0
movups xmm0, xmmword [str._Mft::_BITMAP]
lea rcx, [rbp + 0x232c]
mov eax, dword [0x14005f3d0]
movsd xmm1, qword [0x14005f3c8]
xor edx, edx
mov r8d, 0x1ec
movaps xmmword [rbp + 0x2310], xmm0
mov dword [rbp + 0x1ae8], 0xffffffff
movsd qword [rbp + 0x2320], xmm1
mov dword [rbp + 0x2328], eax
call fcn.14000d0d0
movups xmm0, xmmword [str._Secure::_ATTRIBUTE_LIST]
movzx eax, word [0x14005f408]
xor edx, edx
movups xmm1, xmmword [0x14005f3e8]
lea rcx, [rbp + 0x1b22]
mov r8d, 0x1d6
movaps xmmword [rbp + 0x1af0], xmm0
movups xmm0, xmmword [0x14005f3f8]
mov word [rbp + 0x1b20], ax
movaps xmmword [rbp + 0x1b00], xmm1
movaps xmmword [rbp + 0x1b10], xmm0
call fcn.14000d0d0
mov eax, dword [0x14005f430]
lea rcx, [rbp + 0x1d1e]
movups xmm0, xmmword [str._Secure:_SDS:_DATA]
mov dword [rbp + 0x1d18], eax
xor edx, edx
movups xmm1, xmmword [0x14005f420]
movzx eax, word [0x14005f434]
mov r8d, 0x1e2
movups xmmword [rbp + 0x1cf8], xmm0
mov word [rbp + 0x1d1c], ax
movups xmmword [rbp + 0x1d08], xmm1
call fcn.14000d0d0
movups xmm0, xmmword [str._Secure:_SDH:_INDEX_ALLOCATION]
mov eax, dword [0x14005f470]
xor edx, edx
movups xmm1, xmmword [0x14005f448]
lea rcx, [rbp + 0x1f3e]
mov dword [rbp + 0x1f38], eax
movaps xmmword [rbp + 0x1f00], xmm0
mov r8d, 0x1ca
movups xmm0, xmmword [0x14005f458]
movzx eax, word [0x14005f474]
movaps xmmword [rbp + 0x1f10], xmm1
movsd xmm1, qword [0x14005f468]
movaps xmmword [rbp + 0x1f20], xmm0
movsd qword [rbp + 0x1f30], xmm1
mov word [rbp + 0x1f3c], ax
call fcn.14000d0d0
movups xmm0, xmmword [str._Secure:_SII:_INDEX_ALLOCATION]
mov eax, dword [0x14005f4b0]
xor edx, edx
movups xmm1, xmmword [0x14005f488]
mov dword [rbp + 0x2140], eax
mov r8d, 0x1ca
movzx eax, word [0x14005f4b4]
lea rcx, [rbp + 0x2146]
movups xmmword [rbp + 0x2108], xmm0
mov word [rbp + 0x2144], ax
movups xmm0, xmmword [0x14005f498]
movups xmmword [rbp + 0x2118], xmm1
movsd xmm1, qword [0x14005f4a8]
movups xmmword [rbp + 0x2128], xmm0
movsd qword [rbp + 0x2138], xmm1
call fcn.14000d0d0
mov dword [rsp + 0x50], r15d
cmp dword [rbp + 0x258], 0xffffffff
je 0x140005008
mov rax, r15
lea rsi, [rbp + 0x258]
lea r9, [rbp + 0x50]
mov r8d, r13d
add r9, rax
lea rdx, str._c:_s
lea rcx, [rbp + 0x2520]
call fcn.140002700
mov ecx, dword [rsi]
cmp ecx, 9
je 0x140004f05
mov rax, qword [rsp + 0x60]
mov edx, ecx
mov qword [rsp + 0x30], rax
mov r9, rdi
lea rax, [rbp + 0x2520]
mov r8, r12
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.140005390
mov ecx, dword [rsi]
test ecx, ecx
jne 0x140004f6f
mov edi, r15d
mov r15, qword [rsp + 0x58]
movsxd rax, edi
lea r9, [rbp + 0x2310]
imul rcx, rax, 0x208
mov r8d, r13d
lea rdx, str._C:_s
add r9, rcx
lea rcx, [rbp + 0x2520]
call fcn.140002700
mov rax, qword [rsp + 0x60]
mov r9, r15
mov edx, dword [rsi]
mov r8, r12
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rax, [rbp + 0x2520]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140005390
inc edi
cmp edi, 1
jb 0x140004f11
jmp 0x140004fdc
cmp ecx, 9
jne 0x140004fe4
mov edi, r15d
mov r15, qword [rsp + 0x58]
nop dword [rax]
movsxd rax, edi
lea r9, [rbp + 0x1af0]
imul rcx, rax, 0x208
mov r8d, r13d
lea rdx, str._C:_s
add r9, rcx
lea rcx, [rbp + 0x2520]
call fcn.140002700
mov rax, qword [rsp + 0x60]
mov r9, r15
mov edx, dword [rsi]
mov r8, r12
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rax, [rbp + 0x2520]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140005390
inc edi
cmp edi, 4
jb 0x140004f80
mov rdi, qword [rsp + 0x58]
xor r15d, r15d
mov eax, dword [rsp + 0x50]
lea rsi, [rbp + 0x258]
inc eax
mov dword [rsp + 0x50], eax
imul rax, rax, 0x20c
add rsi, rax
cmp dword [rsi], 0xffffffff
jne 0x140004eb4
mov r8d, r13d
lea rdx, str._c:_
lea rcx, [rbp + 0x2520]
call fcn.140002700
mov rax, qword [rsp + 0x60]
mov r9, r14
mov qword [rsp + 0x28], rax
invalid
invalid