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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6db296
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x7e500c]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x444], esi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00663090
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
jne 0x5fabaf
test ebx, ebx
je 0x5fab29
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push str.HardwareUtils
push 0x71a27c
push 0x32
push ebx
jmp 0x5fab98
cmp dword [0x8076a4], 0
je 0x5fab6e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push 0x71a27c
push 0x71a27c
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
jmp 0x5fac3f
mov esi, dword [0x8076a8]
test esi, esi
je 0x5faba8
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push str.HardwareUtils
push 0x71a27c
push 0x32
push dword [0x8076a8]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
xor al, al
jmp 0x5fac3f
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x5fac3d
nop
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x5fac7e
test ebx, ebx
je 0x5fabfb
mov esi, dword [ebx]
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x71a27c
push 0x14
push ebx
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5fac2e
mov esi, dword [0x8076a4]
test esi, esi
je 0x5fac5b
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push 0x71a27c
push 0x71a27c
push str.HardwareUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x1c
mov esi, dword [ebp - 0x444]
add edi, 8
cmp word [edi], 0
jne 0x5fabc0
mov al, 1
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.00650ddc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8076a8]
test eax, eax
je 0x5fac2e
mov esi, dword [eax]
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x71a27c
push 0x14
push eax
jmp 0x5fabe9
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x438]
movq qword [ebp - 0x440], xmm0
push eax
lea eax, [ebp - 0x440]
movq qword [ebp - 0x438], xmm0
push eax
push edi
movq qword [ebp - 0x418], xmm0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x5fad49
test ebx, ebx
je 0x5face0
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x71a27c
push 0x32
jmp 0x5fabe8
cmp dword [0x8076a4], 0
je 0x5fad16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push 0x71a27c
push 0x71a27c
push str.HardwareUtils
push str.OOBEUtils
push 0x32
jmp 0x5fac21
mov esi, dword [0x8076a8]
test esi, esi
je 0x5fac2e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x71a27c
push 0x32
push dword [0x8076a8]
jmp 0x5fabe9
mov ecx, dword [ebp - 0x418]
xor edx, edx
mov eax, dword [ebp - 0x414]
shrd ecx, eax, 0x1e
mov dword [ebp - 0x420], 0
shr eax, 0x1e
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], dx
push eax
push ecx
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], edx
call fcn.005cef00
add esp, 8
mov dword [ebp - 0x44c], 0
xor eax, eax
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5fadb0
sub eax, edx
lea ecx, [ebp - 0x45c]
sar eax, 1
push eax
push edi
call fcn.004271d0
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00438090
lea ecx, [ebp - 0x430]
cmp eax, ecx
je 0x5fae04
cmp dword [ebp - 0x41c], 8
push dword [ebp - 0x420]
cmovae ecx, dword [ebp - 0x430]
push ecx
mov ecx, eax
call fcn.004271d0
lea ecx, [ebp - 0x45c]
call fcn.00427170
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
jmp 0x5fac34