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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
lea r8, [0x14011b1f8]
lea rcx, [rbp + 0x68]
call fcn.14000cd58
nop
mov r8d, 7
lea rdx, str.Unknown
lea rcx, [rbx + 0x28]
call fcn.140005dd4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
mov dword [rsp + 0x38], reloc.OLEAUT32.dll_SafeArrayLock
lea rax, [rbp + 0x88]
mov qword [rsp + 0x30], rax
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r14d, eax
lea rax, [rbp + 0x88]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140049828
lea rdx, [rbp + 0x88]
lea rcx, [rbx + 0x28]
call fcn.140005dd4
test r14d, r14d
jne 0x1400498d9
call fcn.14008d174
lea r9d, [r14 + 1]
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rsp + 0x60]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetVolumeInfo_Filessytem_failed_caption
mov rcx, rbx
call fcn.1400098d0
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x78]
mov rcx, rbx
call fcn.140045428
lea rdx, str.__ErrorCode
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp + 8]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140002658
nop
jmp 0x1400499c2
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rbx + 0x48], rdi
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1400499a7
call fcn.14008d174
mov r9d, 1
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rsp + 0x60]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetVolumeInfo_Size_failed_caption
mov rcx, rbx
call fcn.1400098d0
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x78]
mov rcx, rbx
call fcn.140045428
lea rdx, str.__ErrorCode
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp + 8]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140002658
nop
jmp 0x1400499c2
mov rax, qword [rsp + 0x40]
shr rax, 0x14
mov dword [rbx + 0x4c], eax
mov rax, qword [rsp + 0x48]
shr rax, 0x14
mov dword [rbx + 0x48], eax
mov dil, 1
lea rcx, [rbp + 0x68]
call fcn.140005cfc
nop
mov al, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret