Function at 0x140164d70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r12, rdx
mov qword [rsp + 0x50], rdx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
lea rcx, [rsp + 0x50]
call fcn.1400b5750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r13w
mov r9d, 0x101
lea r8, str.SOFTWAREMicrosoftCryptography
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.1401758b0
test al, al
je 0x140164e5a
lea r8, [rbp + 0x60]
lea rdx, str.MachineGUID
lea rcx, [rsp + 0x50]
call fcn.140175510
test al, al
jne 0x140164e5a
xor r8d, r8d
lea edx, [r13 + 4]
lea rcx, [rbp + 0xa0]
call fcn.14025e800
nop
lea rcx, [rbp + 0xa0]
call fcn.14025f760
test al, al
je 0x140164e4e
lea rdx, str.device:_Failed_to_get_MachineGUID_from_registry.
lea rcx, [rbp + 0xa0]
call fcn.140255d20
nop
lea rcx, [rbp + 0xa0]
call fcn.140255600
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140294390]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rax, [0x140281ee0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x48], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x18], 4
lea rdx, [0x140165c00]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140101340]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movdqa xmm1, xmmword [0x14027cfe0]
movdqu xmmword [rbp + 0x90], xmm1
mov word [rbp + 0x80], r13w
mov dword [rsp + 0x48], 0xa
movups xmmword [rsp + 0x58], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140164f98
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x140164f98
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
sar r8, 1
jmp 0x140164fcf
test cl, 4
jne 0x140164fc5
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140164fc5
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x140164fcf
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140164fe1
lea rcx, [rbp + 0x80]
call fcn.140093ff0
nop
lea r9, [rbp + 0x80]
mov rdi, qword [rbp + 0x80]
mov r14, qword [rbp + 0x98]
cmp r14, 8
cmovae r9, rdi
mov r15, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
sub rax, r15
mov rsi, qword [rbp + 0x90]
cmp rsi, rax
ja 0x14016504f
lea rax, [r15 + rsi]
mov qword [rbp + 0x70], rax
lea rbx, [rbp + 0x60]
cmp rcx, 8
cmovae rbx, qword [rbp + 0x60]
lea rcx, [rbx + r15*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + r15]
mov word [rbx + rax*2], r13w
lea rbx, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
jmp 0x140165074
mov qword [rsp + 0x20], rsi
movzx r8d, byte [rsp + 0x40]
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.14009c2d0
mov r14, qword [rbp + 0x98]
mov rdi, qword [rbp + 0x80]
cmp r14, 8
jb 0x1401650b3
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1401650aa
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401650aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140082030
nop
mov rax, qword [rbp + 0x70]
lea r8, [rax + rax]
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
mov rcx, r12
call fcn.140165960
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400b5b20
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140165156
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140165150
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140165150
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r13w
lea rcx, [rsp + 0x50]
call fcn.140175400
mov rax, r12
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140266400
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret