Function at 0x140104e84
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x37], rax
or qword [r11 - 0x78], 0xffffffffffffffff
xor ebx, ebx
and dword [rbp - 9], ebx
xorps xmm0, xmm0
and qword [rbp - 1], rbx
xor eax, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
lea esi, [rbx + 3]
mov qword [rbp + 0x2f], rax
mov r8d, esi
mov dword [rsp + 0x20], esi
mov edx, 0xc0000000
mov r14, rcx
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140104f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140104f1d
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x1401051ec
test byte [rcx + 0x1c], 1
je 0x1401051ec
cmp byte [rcx + 0x19], 2
jb 0x1401051ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166708]
mov edx, 0x25
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
jmp 0x1401051e5
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]
nop dword [rax + rax]
test eax, eax
jne 0x14010500d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140104fc1
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x1401051d6
test byte [rcx + 0x1c], 1
je 0x1401051d6
cmp byte [rcx + 0x19], 2
jb 0x1401051d6
mov edx, 0x26
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166708]
mov r9, r14
call fcn.140011330
jmp 0x1401051d6
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14010504d
test byte [rcx + 0x1c], 1
je 0x14010504d
cmp byte [rcx + 0x19], 4
jb 0x14010504d
mov rax, qword [rbp - 1]
lea r8, [0x140166708]
mov rcx, qword [rcx + 0x10]
mov edx, 0x27
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.14003d6cc
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]
nop dword [rax + rax]
test eax, eax
jns 0x1401050b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x1401051d6
test byte [rcx + 0x1c], 1
je 0x1401051d6
cmp byte [rcx + 0x19], 2
jb 0x1401051d6
mov edx, 0x28
mov dword [rsp + 0x20], eax
jmp 0x140104ff5
mov edx, dword [rbp + 0x33]
mov eax, dword [rbp + 0x2f]
mov esi, edx
imul rsi, rax
imul rsi, qword [rbp + 0x1f]
mov r10, qword [0x14017a048]
cmp r10, rdi
je 0x140105106
test byte [r10 + 0x1c], 1
je 0x140105106
cmp byte [r10 + 0x19], 4
jb 0x140105106
mov rcx, qword [r10 + 0x10]
lea r8, [0x140166708]
mov edx, 0x29
mov qword [rsp + 0x20], rsi
mov r9, r14
call fcn.14003d6cc
mov edx, dword [rbp + 0x33]
mov r10, qword [0x14017a048]
mov rcx, qword [rbp - 1]
cmp rsi, rcx
jge 0x1401051d6
mov r8d, edx
mov rax, rcx
cqo
idiv r8
mov qword [rbp + 7], rax
cmp r10, rdi
je 0x140105152
test byte [r10 + 0x1c], 1
je 0x140105152
cmp byte [r10 + 0x19], 4
jb 0x140105152
mov qword [rsp + 0x20], rcx
lea r8, [0x140166708]
mov rcx, qword [r10 + 0x10]
mov edx, 0x2a
mov r9, r14
call fcn.14003d6cc
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]
nop dword [rax + rax]
test eax, eax
jne 0x1401051d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1401051a6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x1401051d6
test byte [rcx + 0x1c], 1
je 0x1401051d6
cmp byte [rcx + 0x19], 2
jb 0x1401051d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166708]
mov edx, 0x2b
mov r9d, ebx
call fcn.140006bc4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14010521d
cmp rcx, rdi
je 0x14010521d
test byte [rcx + 0x1c], 1
je 0x14010521d
cmp byte [rcx + 0x19], 2
jb 0x14010521d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166708]
mov edx, 0x2c
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001d90
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