Function at 0x140057f70
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x1b8], 0xfffffffffffffffe
mov rax, qword [0x1403abd28]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1e0]
call qword [rax + 0x18]
test eax, eax
je 0x140057fe2
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1e0]
call qword [rax + 0x10]
cmp dword [rsp + 0x1e8], 0
jne 0x140058124
lea rdx, [0x1401627b8]
lea rcx, [rsp + 0x160]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
cmp dword [rsp + 0x1f0], 0
je 0x14005801d
cmp dword [rsp + 0x1f0], 1
jne 0x1400580fa
mov eax, dword [rsp + 0x1f0]
add eax, 0x41
mov byte [rsp + 0x190], al
mov byte [rsp + 0x191], 0
mov eax, dword [rsp + 0x1f0]
add eax, 0x41
mov byte [rsp + 0x188], al
mov byte [rsp + 0x189], 0x3a
mov byte [rsp + 0x18a], 0x5c
mov byte [rsp + 0x18b], 0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x194], eax
mov ecx, dword [rsp + 0x1f0]
mov eax, 1
shl eax, cl
mov dword [rsp + 0x18c], eax
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rdx, [0x1401627c0]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
mov ecx, dword [rsp + 0x194]
mov eax, dword [rsp + 0x18c]
and eax, ecx
test eax, eax
je 0x1400580d3
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1400580f8
mov dword [rsp + 0x19c], 0x57
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x19c]
jmp 0x14005837a
jmp 0x14005811f
mov dword [rsp + 0x1a0], 0x57
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x1a0]
jmp 0x14005837a
jmp 0x14005828f
cmp dword [rsp + 0x1e8], 3
jne 0x140058175
mov r8d, dword [rsp + 0x1f0]
lea rdx, [0x1401627c4]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea rdx, str..PHYSICALDRIVE
lea rcx, [rsp + 0x160]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
jmp 0x14005828f
cmp dword [rsp + 0x1e8], 4
jne 0x1400581c6
mov r8d, dword [rsp + 0x1f0]
lea rdx, [0x1401627dc]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea rdx, str..CDROM
lea rcx, [rsp + 0x160]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
jmp 0x14005828f
cmp dword [rsp + 0x1e8], 5
jne 0x14005826a
lea rdx, [0x1401627ec]
lea rcx, [rsp + 0x160]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
cmp dword [rsp + 0x1f0], 0
jl 0x140058243
cmp dword [rsp + 0x1f0], 0x1a
jge 0x140058243
mov eax, dword [rsp + 0x1f0]
add eax, 0x41
mov byte [rsp + 0x198], al
mov byte [rsp + 0x199], 0
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rdx, [0x1401627f4]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
jmp 0x140058268
mov dword [rsp + 0x1a4], 0x57
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x1a4]
jmp 0x14005837a
jmp 0x14005828f
mov dword [rsp + 0x1a8], 0x57
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x1a8]
jmp 0x14005837a
mov rcx, qword [rsp + 0x1e0]
mov eax, dword [rsp + 0x1f0]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0x1e0]
mov eax, dword [rsp + 0x1e8]
mov dword [rcx + 0x14], eax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const___ptr64]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r11, rax
mov rax, qword [rsp + 0x1e0]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140058351
mov rax, qword [rsp + 0x1e0]
mov dword [rax + 0x14], 0xffffffff
mov rax, qword [rsp + 0x1e0]
mov dword [rax + 0x10], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1ac], eax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x1ac]
jmp 0x14005837a
mov rcx, qword [rsp + 0x1e0]
call fcn.1400585e0
mov dword [rsp + 0x1b0], eax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14012bc90
add rsp, 0x1d8
ret