Function at 0x4278b0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457ee6
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x472008]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x884], eax
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, eax
mov dword [ebp - 0x888], ecx
test ecx, ecx
jne 0x42792f
push 0x402580
push str.Failed_to_get_logical_drive_strings
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, 1
jmp 0x427d30
xor eax, eax
mov dword [ebp - 0x854], eax
test ecx, ecx
je 0x427d2e
nop
movzx esi, word [ebp + eax*2 - 0x810]
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], si
mov dword [ebp - 0x860], 1
mov word [ebp - 0x86e], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x870]
push 0x45cdb0
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00404ed0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x427992
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
mov eax, dword [ebp - 0x814]
setne bl
cmp eax, 8
jb 0x4279bb
inc eax
push 2
push eax
push dword [ebp - 0x828]
call fcn.004035c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4279fc
inc eax
push 2
push eax
push dword [ebp - 0x870]
call fcn.004035c0
add esp, 0xc
test bl, bl
je 0x427d13
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], si
mov dword [ebp - 0x860], 1
mov word [ebp - 0x86e], ax
push 0x45cdb0
lea eax, [ebp - 0x870]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00404ed0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x427a52
mov eax, dword [eax]
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x850]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x814]
mov edi, eax
cmp ecx, 8
jb 0x427a8d
inc ecx
push 2
push ecx
push dword [ebp - 0x828]
call fcn.004035c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x427ace
inc eax
push 2
push eax
push dword [ebp - 0x870]
call fcn.004035c0
add esp, 0xc
test edi, edi
je 0x427cea
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], si
mov dword [ebp - 0x818], 1
mov word [ebp - 0x826], ax
push eax
lea ecx, [ebp - 0x830]
mov dword [ebp - 4], 3
mov byte [ebp - 0x838], al
call fcn.00406d10
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x8a0]
push eax
call fcn.0040cf30
add esp, 8
push eax
lea ecx, [ebp - 0x880]
mov byte [ebp - 4], 5
call fcn.0040ded0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x427b5e
mov eax, dword [ecx]
jmp 0x427b60
mov eax, ecx
push 5
push str.drive
mov byte [eax], 0
call fcn.00403d00
lea ecx, [ebp - 0x838]
call fcn.00407440
mov cl, byte [ebp - 0x880]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x878]
mov byte [ebp - 0x880], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x874]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x874], edx
push dword [ebp - 0x880]
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 7
call fcn.0040a110
mov eax, dword [ebp - 0x88c]
cmp eax, 0x10
jb 0x427be2
inc eax
push 1
push eax
push dword [ebp - 0x8a0]
call fcn.004035c0
add esp, 0xc
sub esp, 0x10
mov dword [ebp - 0x88c], 0xf
mov ebx, esp
mov dword [ebp - 0x890], 0
lea ecx, [ebx + 8]
mov byte [ebp - 0x8a0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x858], esp
mov byte [ebx], 0
movq qword [ecx], xmm0
mov esi, dword [ebp - 0x840]
mov edi, dword [ebp - 0x83c]
movzx eax, byte [ebx]
push eax
mov byte [ebp - 4], 8
call fcn.0040a110
mov byte [ebx], 6
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
push str.total
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 9
call fcn.00404d60
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004073c0
sub esp, 0x10
xorps xmm0, xmm0
mov ebx, esp
mov dword [ebp - 0x858], esp
lea ecx, [ebx + 8]
mov byte [ebx], 0
movq qword [ecx], xmm0
mov esi, dword [ebp - 0x848]
mov edi, dword [ebp - 0x844]
movzx eax, byte [ebx]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040a110
mov byte [ebx], 6
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
push 0x45cdc0
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 0xb
call fcn.00404d60
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004073c0
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x838]
push eax
call fcn.004292c0
push dword [ebp - 0x838]
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 0xc
call fcn.0040a110
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
call fcn.00401c60
jmp 0x427d13
push 0x402580
push esi
push str.Failed_to_get_disk_space_information_for_drive
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
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___int_]
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x854]
add eax, 4
mov dword [ebp - 0x854], eax
cmp eax, dword [ebp - 0x888]
jb 0x427940
xor eax, eax
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.0040219c
mov esp, ebp
pop ebp
ret