Function at 0x1800199a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov dword [rsp + 0x38], 0x40
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x54]
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov r8d, 0x40
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor r12d, r12d
lea rcx, [rbx + 0x52]
lea edx, [r12 + 0x1f]
test eax, eax
je 0x180019a4c
lea r8, [rbp - 0x10]
call fcn.1801259f0
mov eax, dword [rsp + 0x40]
lea r8, [rbp + 0x70]
lea edx, [r12 + 0x1f]
mov dword [rbx + 0x4e], eax
lea rcx, [rbx + 0xa]
call fcn.1801259f0
mov eax, dword [rsp + 0x44]
mov dword [rbx + 0x4a], eax
mov dword [rbx + 0xd6], eax
jmp 0x180019a78
lea r8, str._Unknown_
call fcn.1801259f0
lea r8, str._Unknown_
mov dword [rbx + 0x4e], 0xff
mov edx, 0x1f
lea rcx, [rbx + 0xa]
call fcn.1801259f0
mov dword [rbx + 0x4a], r12d
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rax, [rbx + 0x158]
mov rcx, qword [rbx]
xor r9d, r9d
mov dword [rsp + 0x28], 0x18
xor r8d, r8d
mov edx, 0x70000
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180019ad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ObtainVolumeInfo:_IOCTL_DISK_GET_DRIVE_GEOMETRY_error__ErrCode_x
call sym.SafeBase64.dll_DbgPrintW
xor eax, eax
jmp 0x180019d6e
mov rcx, qword [rbx + 0x150]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r8, [rbx + 0xc2]
mov qword [rsp + 0x240], r15
lea rdx, [rbx + 0xbe]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [rsp + 0x4c]
mov qword [rbx + 0xa2], rcx
mov ecx, dword [rsp + 0x50]
mov qword [rbx + 0x9a], rcx
test eax, eax
jne 0x180019b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ObtainVolumeInfo:_GetDiskFreeSpace_error__ErrCode_x
call sym.SafeBase64.dll_DbgPrintW
xor eax, eax
jmp 0x180019d66
mov rcx, qword [rbx + 0x150]
lea r9, [rbx + 0xce]
lea r8, [rbx + 0xc6]
mov qword [rsp + 0x238], r14
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x180019b81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ObtainVolumeInfo:_GetDiskFreeSpaceEx_error__ErrCode_x
call sym.SafeBase64.dll_DbgPrintW
xor eax, eax
jmp 0x180019d5e
mov r8d, dword [rbx + 0xbe]
xor edx, edx
imul r8d, dword [rbx + 0xc2]
mov rax, qword [rbx + 0xc6]
div r8
xor edx, edx
mov dword [rbx + 0xba], r8d
mov rcx, rax
mov qword [rbx + 0x9a], rax
mov rax, qword [rbx + 0xce]
div r8
mov qword [rbx + 0x92], rcx
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
mov qword [rbx + 0xa2], rax
call fcn.180016f50
test eax, eax
jne 0x180019bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ObtainVolumeInfo:_GetPartitonInfo_error__ErrCode_x
call sym.SafeBase64.dll_DbgPrintW
xor eax, eax
jmp 0x180019d5e
mov r10d, dword [rsp + 0x60]
test r10d, r10d
je 0x180019c19
mov dword [rbx + 0xda], r12d
mov r11d, r12d
mov byte [rbx + 0x13a], 0x42
mov cl, 0x42
mov byte [rbx + 0x13c], r12b
jmp 0x180019c44
mov eax, dword [rbp - 0x7c]
mov dword [rbx + 0xda], eax
movzx eax, byte [rbp - 0x80]
mov r11d, dword [rbx + 0xda]
mov byte [rbx + 0x13a], al
movzx eax, byte [rbp - 0x7f]
movzx ecx, byte [rbx + 0x13a]
mov byte [rbx + 0x13c], al
mov r8, qword [rsp + 0x68]
mov r9d, dword [rbx + 0xc2]
mov rax, r8
cqo
movzx ecx, cl
idiv r9
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ecx
mov rdx, rax
lea rcx, str.ObtainVolumeInfo:_VolumeStartLBA_lld_off_lld_BytesPerSector_d_style_d_realType_d_HiddenSectors_d
mov qword [rbx + 0xaa], rax
mov dword [rsp + 0x20], r10d
call sym.SafeBase64.dll_DbgPrintW
mov qword [rbx + 0xb2], r12
mov rax, qword [rbx + 0x150]
cmp dword [rax - 0x10], r12d
jl 0x180019d8b
movzx eax, byte [rax]
mov r8d, dword [rbx + 0xc2]
mov rcx, qword [rbx + 0xaa]
mov byte [rbx + 0x13b], al
mov rax, qword [rsp + 0x68]
cqo
mov qword [rbx + 0xe6], rcx
idiv r8
mov qword [rbx + 0xde], rax
mov rax, qword [rsp + 0x70]
cqo
idiv r8
mov qword [rbx + 0xf6], rax
add rax, rcx
mov qword [rbx + 0xee], rax
movzx eax, r8w
mov dword [rbx + 0x126], eax
movzx eax, word [rbx + 0xbe]
mov dword [rbx + 0x12a], eax
mov rax, qword [rbx + 0x9a]
mov qword [rbx + 0x11e], rax
movzx eax, byte [rbx + 0x13a]
add eax, 0xfffffffc
cmp eax, 0xa
ja case.0x180019d28.5
lea rdx, [0x180000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x19d98]
add rcx, rdx
jmp rcx
mov word [rbx + 0x139], 0x605
jmp 0x180019d52
mov word [rbx + 0x139], 0xb06
jmp 0x180019d52
mov word [rbx + 0x139], 0x707
jmp 0x180019d52
mov byte [rbx + 0x139], 9
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.180019520
mov r14, qword [rsp + 0x238]
mov r15, qword [rsp + 0x240]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x200
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.180007f70
int3