Function at 0x401450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420fee
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x42c820]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
sub esp, 8
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x78], esi
call fcn.00403120
mov dword [ebp - 4], 0
xor ebx, ebx
mov edx, 1
mov ecx, ebx
shl edx, cl
mov eax, edx
and eax, esi
cmp eax, edx
jne 0x401822
push 0
push 0x428970
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004095a0
mov byte [ebp - 4], 1
test byte [ebp - 0xdc], 1
je 0x4014f6
mov eax, dword [ebp - 0x10c]
push dword [eax]
call fcn.0040a1cb
add esp, 4
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x28]
mov dword [eax], 0
mov eax, dword [ebp - 0xfc]
mov dword [eax], 0
mov eax, dword [ebp - 0xec]
mov dword [eax], 0
mov eax, dword [ebp - 0x108]
mov dword [eax], 0
mov eax, dword [ebp - 0xf8]
mov dword [eax], 0
mov eax, dword [ebp - 0xe8]
mov dword [eax], 0
and dword [ebp - 0xdc], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmp eax, 0x10
cmovae edx, ecx
mov dword [ebp - 0xe0], 0
test esi, esi
je 0x401578
push esi
push edx
lea ecx, [ebp - 0x118]
call fcn.00404f30
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x40158a
push ecx
call fcn.0040a1cb
add esp, 4
lea edx, [ebx + 0x41]
lea ecx, [ebp - 0x120]
call fcn.004067d0
mov edx, 0x4287b4
mov ecx, eax
call fcn.004064a0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x130]
call fcn.00403250
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4017f8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x130]
call fcn.00403250
cmp dword [eax + 0x14], 0x10
jb 0x4015e9
mov eax, dword [eax]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x14], 0x10
jb 0x401611
push dword [ebp - 0x28]
call fcn.0040a1cb
add esp, 4
sub esp, 8
lea ecx, [ebp - 0x1e0]
call fcn.00403120
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
mov edi, eax
movzx esi, ax
mov eax, dword [ebp - 0x1d0]
push 0
mov eax, dword [eax + 4]
push 4
mov byte [ebp + eax - 0x190], 0x30
lea eax, [ebp - 0x1f0]
push eax
shr edi, 0x10
call fcn.0040999b
mov ecx, dword [ebp - 0x1d0]
add esp, 0xc
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x1d0]
add ecx, edx
push ecx
call eax
mov eax, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x1d0]
mov eax, dword [eax + 4]
add ecx, eax
add esp, 0xc
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
push esi
or eax, 0x800
push ecx
mov dword [ecx + 0x14], eax
push edi
lea ecx, [ebp - 0x1d0]
call fcn.004021f0
mov edx, 0x4287b8
mov ecx, eax
call fcn.004064a0
add esp, 4
mov ecx, eax
call fcn.004021f0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00409220
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00403250
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x40176d
cmp dword [ebp - 0x2c], 0x10
jb 0x401717
push dword [ebp - 0x40]
call fcn.0040a1cb
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp dword [esi + 0x14], 0x10
jae 0x401745
mov eax, dword [esi + 0x10]
inc eax
je 0x401750
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040a220
add esp, 0xc
jmp 0x401750
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x14], 0x10
jb 0x40177e
push dword [ebp - 0x28]
call fcn.0040a1cb
add esp, 4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
push eax
call fcn.00402550
cmp dword [ebp - 0x2c], 0x10
jb 0x40179b
push dword [ebp - 0x40]
call fcn.0040a1cb
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x4017be
push dword [ebp - 0x58]
call fcn.0040a1cb
add esp, 4
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 2
call fcn.004031d0
lea eax, [ebp - 0x178]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0040991c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5c], 0x10
jb 0x40180d
push dword [ebp - 0x70]
call fcn.0040a1cb
add esp, 4
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
inc ebx
cmp ebx, 0x1a
jl 0x4014a3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
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 - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x134], eax
lea ecx, [ebp - 0x118]
call fcn.00403270
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x134], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x124], eax
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x134], eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], vtable.std::ios_base.0
call fcn.0040991c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a1bc
mov esp, ebp
pop ebp
ret