Function at 0x1400f74e0
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 [0x140170608]
xor rax, rsp
mov qword [rbp + 0x37], rax
or qword [r11 - 0x78], 0xffffffffffffffff
xor eax, eax
xor ebx, ebx
mov dword [rsp + 0x28], 0x80
and dword [rbp - 9], ebx
xor r9d, r9d
and qword [rbp - 1], rbx
mov edx, 0xc0000000
mov r14, rcx
mov qword [rbp + 0x1f], rax
lea esi, [rbx + 3]
mov qword [rbp + 0x27], rax
mov r8d, esi
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 0x1400f75bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x1400f7812
test byte [rcx + 0x1c], 1
je 0x1400f7812
cmp byte [rcx + 0x19], 2
jb 0x1400f7812
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x22]
mov r9, r14
mov dword [rsp + 0x20], ebx
lea r8, [0x1401573e8]
call fcn.140005c44
jmp 0x1400f780b
and qword [rsp + 0x38], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400f7652
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x1400f7802
test byte [rcx + 0x1c], 1
je 0x1400f7802
cmp byte [rcx + 0x19], 2
jb 0x1400f7802
mov edx, 0x26
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov r9, r14
call fcn.140005c44
jmp 0x1400f7802
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x1400f7692
test byte [rcx + 0x1c], 1
je 0x1400f7692
cmp byte [rcx + 0x19], 4
jb 0x1400f7692
mov rax, qword [rbp - 1]
lea r8, [0x1401573e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x27
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.1400103bc
mov r9d, 0x18
mov dword [rsp + 0x20], esi
lea r8, [rbp + 0x1f]
mov rcx, r15
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
jns 0x1400f76ed
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rdi
je 0x1400f7802
test byte [rcx + 0x1c], 1
je 0x1400f7802
cmp byte [rcx + 0x19], 2
jb 0x1400f7802
mov edx, 0x28
mov dword [rsp + 0x20], eax
jmp 0x1400f763a
mov edx, dword [rbp + 0x33]
mov eax, dword [rbp + 0x2f]
mov esi, edx
imul rsi, rax
imul rsi, qword [rbp + 0x1f]
mov r10, qword [0x140170048]
cmp r10, rdi
je 0x1400f773f
test byte [r10 + 0x1c], 1
je 0x1400f773f
cmp byte [r10 + 0x19], 4
jb 0x1400f773f
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x29
mov qword [rsp + 0x20], rsi
mov r9, r14
call fcn.1400103bc
mov edx, dword [rbp + 0x33]
mov r10, qword [0x140170048]
mov rcx, qword [rbp - 1]
cmp rsi, rcx
jge 0x1400f7802
mov r8d, edx
mov rax, rcx
cqo
idiv r8
mov qword [rbp + 7], rax
cmp r10, rdi
je 0x1400f778b
test byte [r10 + 0x1c], 1
je 0x1400f778b
cmp byte [r10 + 0x19], 4
jb 0x1400f778b
mov qword [rsp + 0x20], rcx
lea r8, [0x1401573e8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x2a
mov r9, r14
call fcn.1400103bc
and qword [rsp + 0x38], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 7]
and dword [rsp + 0x28], ebx
mov r9d, 8
and qword [rsp + 0x20], rbx
mov edx, 0x900f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400f7802
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rdi
je 0x1400f7802
test byte [rcx + 0x1c], 1
je 0x1400f7802
cmp byte [rcx + 0x19], 2
jb 0x1400f7802
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x2b
mov r9d, ebx
call fcn.140004c78
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x1400f7843
cmp rcx, rdi
je 0x1400f7843
test byte [rcx + 0x1c], 1
je 0x1400f7843
cmp byte [rcx + 0x19], 2
jb 0x1400f7843
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x2c
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005c44
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140141340
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