Function at 0x401250
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e91
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x224], edi
push 0x105
lea eax, [ebp - 0x118]
mov dword [ebp - 0x2f4], edi
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x2e0], 0
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 0
push eax
push 0x105
lea eax, [ebp - 0x220]
push eax
push 0x4062dc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401502
push 0xb0
lea eax, [ebp - 0x2dc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2dc], 0x406880
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x2cc], 0x406888
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2e0], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2dc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2e0], eax
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
push 0x401220
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push 0x401240
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push 0
mov esi, eax
lea eax, [ebp - 0x2f0]
push 8
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0x18
mov ecx, esi
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
push dword [ebp - 0x224]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [edi], 0
mov dword [ebp - 4], 4
xorps xmm0, xmm0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x288]
mov eax, edx
and al, 0x22
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 0x2e0], 0xa
movq qword [ebp - 0x2ec], xmm0
mov dword [ebp - 0x2e4], 0
cmp al, 2
je 0x401476
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax]
test ecx, ecx
je 0x401476
mov eax, dword [ebp - 0x2b4]
cmp ecx, dword [ebp - 0x28c]
cmovb ecx, dword [ebp - 0x28c]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4014a9
test dl, 4
jne 0x40149d
mov eax, dword [ebp - 0x2a8]
mov esi, dword [eax]
test esi, esi
je 0x40149d
mov eax, dword [ebp - 0x2b8]
mov edx, dword [eax]
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x4014a9
mov ecx, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2ec]
test edx, edx
je 0x4014b6
push ecx
push edx
mov ecx, edi
call fcn.00403260
mov eax, dword [ebp - 0x2dc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x2e0], ecx
lea ecx, [ebp - 0x2c4]
call fcn.00402e80
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x274]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x40152e
mov dword [edi], 0
push 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push str.Unknown
mov byte [edi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00403260
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004040ca
mov esp, ebp
pop ebp
ret