Function at 0x401880
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4066ee
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x40b040]
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 - 0xc8], edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0xdc], edi
push eax
push 0
push 0
push 0x407468
mov dword [ebp - 0xcc], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401ae1
push 0xb0
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc4], 0x407814
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xb4], 0x407874
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xcc], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xb4]
push dword [ebp - 0x14]
push 0x4012c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov edx, dword [ebp - 0x70]
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edx
and al, 0x22
mov dword [ebp - 0xcc], 0xa
movq qword [ebp - 0xd8], xmm0
cmp al, 2
je 0x401a1d
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
test ecx, ecx
je 0x401a1d
mov eax, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x74]
cmovb ecx, dword [ebp - 0x74]
mov edx, dword [eax]
sub ecx, edx
jmp 0x401a41
test dl, 4
jne 0x401a7d
mov eax, dword [ebp - 0x90]
mov esi, dword [eax]
test esi, esi
je 0x401a7d
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, esi
mov eax, edx
sar ecx, 1
test eax, eax
je 0x401a7d
cmp ecx, 7
ja 0x401a67
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push edx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x401a7d
push edx
mov byte [ebp - 0xc8], 0
push dword [ebp - 0xc8]
push ecx
mov ecx, edi
call fcn.00404de0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0xc8], ecx
lea ecx, [ebp - 0xac]
call fcn.004039d0
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
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.004055c4
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00401180
push 0x408868
lea eax, [ebp - 0xd8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3