Function at 0x508cc0
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rsi, rcx
xor eax, eax
mov byte [rsp + 0x24], al
lea rdx, [r11 - 0x74]
lea rcx, [r11 - 0x70]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
nop
mov byte [rsp + 0x20], 0x43
mov byte [rsp + 0x21], Ordinal_60
mov byte [rsp + 0x22], 0
mov edx, 0x104
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov bl, 0x41
nop
nop
mov byte [rsp + 0x20], bl
mov edi, dword [rsp + 0x38]
add edi, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov edi, eax
test eax, eax
jne 0x508d9f
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x508d9b
mov rdx, qword [rsp + 0x38]
add rdx, rdx
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov edi, dword [rsp + 0x38]
add edi, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov edi, eax
test eax, eax
je 0x508d50
jmp 0x508d9f
test edi, edi
je 0x508e13
mov rdi, qword [rsp + 0x30]
test rdi, rdi
cmove rdi, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
cmp qword [rsp + 0x38], 0
je 0x508e13
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov byte [rsp + 0x80], 0
lea rcx, [rsi + 0x28]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.00506760
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + 0x38], bl
inc bl
cmp bl, 0x5a
jle 0x508d20
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
add rsp, 0x98
ret