Function at 0x14011f438
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x37], rax
or qword [r11 - 0x78], 0xffffffffffffffff
xor eax, eax
xor ebx, ebx
and dword [rbp - 9], ebx
lea esi, [rbx + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, esi
mov dword [rsp + 0x28], 0x80
mov r14, rcx
mov qword [rbp - 1], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14011f513
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14011f76a
test byte [rcx + 0x1c], 1
je 0x14011f76a
cmp byte [rcx + 0x19], 2
jb 0x14011f76a
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x22]
lea r8, [0x1400127c8]
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x14011f763
and qword [rsp + 0x38], rbx
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 1]
xor r8d, r8d
mov edx, 0x7405c
mov rcx, r15
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011f597
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14011f75a
test byte [rcx + 0x1c], 1
je 0x14011f75a
cmp byte [rcx + 0x19], 2
jb 0x14011f75a
mov edx, 0x26
mov dword [rsp + 0x20], ebx
jmp 0x14011f62d
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14011f5d7
test byte [rcx + 0x1c], 1
je 0x14011f5d7
cmp byte [rcx + 0x19], 4
jb 0x14011f5d7
mov rax, qword [rbp - 1]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x27
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.140028b0c
lea r8, [rbp + 0x1f]
lea rdx, [rbp + 0xf]
mov r9d, 0x18
mov rcx, r15
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
jns 0x14011f645
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x14011f75a
test byte [rcx + 0x1c], 1
je 0x14011f75a
cmp byte [rcx + 0x19], 2
jb 0x14011f75a
mov edx, 0x28
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov r9, r14
call fcn.14001ecbc
jmp 0x14011f75a
mov edx, dword [rbp + 0x33]
mov eax, dword [rbp + 0x2f]
mov esi, edx
imul rsi, rax
imul rsi, qword [rbp + 0x1f]
mov r10, qword [0x14017d3a8]
cmp r10, rdi
je 0x14011f697
test byte [r10 + 0x1c], 1
je 0x14011f697
cmp byte [r10 + 0x19], 4
jb 0x14011f697
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x29
mov r9, r14
mov qword [rsp + 0x20], rsi
call fcn.140028b0c
mov edx, dword [rbp + 0x33]
mov r10, qword [0x14017d3a8]
mov rcx, qword [rbp - 1]
cmp rsi, rcx
jge 0x14011f75a
mov r8d, edx
mov rax, rcx
cqo
idiv r8
mov qword [rbp + 7], rax
cmp r10, rdi
je 0x14011f6e3
test byte [r10 + 0x1c], 1
je 0x14011f6e3
cmp byte [r10 + 0x19], 4
jb 0x14011f6e3
mov qword [rsp + 0x20], rcx
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x2a
mov r9, r14
call fcn.140028b0c
and qword [rsp + 0x38], rbx
lea rax, [rbp - 9]
lea r8, [rbp + 7]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov r9d, 8
mov edx, 0x900f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011f75a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x14011f75a
test byte [rcx + 0x1c], 1
je 0x14011f75a
cmp byte [rcx + 0x19], 2
jb 0x14011f75a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x2b
mov r9d, ebx
call fcn.14001de24
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14011f79b
cmp rcx, rdi
je 0x14011f79b
test byte [rcx + 0x1c], 1
je 0x14011f79b
cmp byte [rcx + 0x19], 2
jb 0x14011f79b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x2c
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret