Function at 0x14005f880
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403fad18]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13, rdx
mov r15, rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r14, rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [rsp + 0x90], 0x3a003f
mov word [rsp + 0x94], si
mov r12, r14
lea rdi, vtable.ATL::CComObjectNoLock_class_Medium_.0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x14005faed
movzx eax, word [r12]
mov word [rsp + 0x90], ax
mov qword [rsp + 0x30], rsi
mov ecx, 0xd0
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14005f979
mov rcx, rax
call fcn.14001a640
mov qword [rbx], rdi
lea rax, vtable.ATL::CComObjectNoLock_class_Medium_.2.0
mov qword [rbx + 8], rax
lea rax, vtable.ATL::CComObjectNoLock_class_Medium_.1.0
mov qword [rbx + 0xc0], rax
jmp 0x14005f97c
mov rbx, rsi
test rbx, rbx
je 0x14005f991
lock inc dword [rbx + 0x10]
mov rcx, rbx
call fcn.1400d0690
lock dec dword [rbx + 0x10]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14005f9a5
lea rcx, [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp word [rsp + 0x90], 0
je 0x14005fa08
lea rcx, [rsp + 0x90]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14005fa10
lea rax, str.bad_allocation
mov qword [rsp + 0x40], rax
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64__int____ptr64]
lea rax, vtable.std::bad_alloc.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1403e2820]
lea rcx, [rsp + 0x70]
call sub.MSVCR100.dll__CxxThrowException
mov rdi, rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea rax, vtable.com::Utf8Str.0
mov qword [rsp + 0x48], rax
mov rdx, qword [0x140321df0]
test rdi, rdi
cmovne rdx, rdi
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x48]
call fcn.1401e63f0
nop
mov rdx, qword [r15 + 0xc8]
lea rax, str.0N__
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 2
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1400c2540
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
test rdi, rdi
je 0x14005fa8c
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [r13]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, r13
call fcn.1400fede0
mov r11, rax
mov rcx, qword [r13 + 8]
movabs rax, 0x1ffffffffffffffe
sub rax, rcx
cmp rax, 1
jae 0x14005facb
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
lea rax, [rcx + 1]
mov qword [r13 + 8], rax
mov qword [rdi + 8], r11
mov rax, qword [r11 + 8]
mov qword [rax], r11
test rbx, rbx
je 0x14005faed
lea rcx, [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r12, [r12 + rcx*2]
cmp word [r12], ax
lea rdi, vtable.ATL::CComObjectNoLock_class_Medium_.0
jne 0x14005f915
mov rcx, r14
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
nop
jmp 0x14005fb24
mov eax, esi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14015fe00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret