Function at 0x1400f8d40
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 3
jne 0x1400f8d9c
lea rcx, str.MEMTEST
call fcn.1400a8944
mov r11, rax
mov rax, qword [rsp + 0xc0]
lea rcx, [rax + r11*2 + 0xc]
call fcn.1400a99f8
cdqe
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
imul rax, rax, 0x40000000
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 1
jne 0x1400f8e87
lea rcx, str.vixDiskLib.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400f8dce
xor eax, eax
jmp 0x1400f9078
lea rdx, str.VixDiskLib_GetInfo
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.VixDiskLib_FreeInfo
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x4ac]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x40c]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x48]
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x68], 0
je 0x1400f8e68
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x18]
shl rax, 9
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x68]
call qword [rsp + reloc.WSOCK32.dll_WSASetLastError]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x4ac]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x50]
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 2
jne 0x1400f8ead
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x4e4]
call fcn.1400aeb58
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 4
jne 0x1400f8f24
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400f8f1d
mov rax, qword [rsp + 0x80]
jmp 0x1400f9078
xor eax, eax
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 5
jne 0x1400f8fcf
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400f8fc8
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x4b4], 1
jne 0x1400f8fb3
mov rax, qword [rsp + 0x90]
add rax, 0x200200
jmp 0x1400f9078
mov rax, qword [rsp + 0x90]
add rax, 0x200000
jmp 0x1400f9078
xor eax, eax
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 7
jne 0x1400f9046
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400f9042
mov rax, qword [rsp + 0xa0]
jmp 0x1400f9078
xor eax, eax
jmp 0x1400f9078
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 8
jne 0x1400f9064
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x4ec]
jmp 0x1400f9078
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f8d00
add rsp, 0xb8
ret