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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1f36
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x60a070]
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 esi, ecx
mov dword [ebp - 0x444], esi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00562b20
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
jne 0x526ce3
cmp dword [0x615408], eax
je 0x526cac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push 0x5c0ec0
push 0x5c0ec0
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
xor al, al
jmp 0x526dd2
mov esi, dword [0x61540c]
test esi, esi
je 0x526cdc
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 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
add esp, 0x18
xor al, al
jmp 0x526dd2
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x526dd0
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [eax]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x420], 0
push eax
push edi
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x526dee
cmp dword [0x615408], eax
je 0x526d91
call ebx
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push 0x5c0ec0
push 0x5c0ec0
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
jmp 0x526dc3
mov esi, dword [0x61540c]
test esi, esi
je 0x526dbd
mov esi, dword [esi]
call ebx
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
add esp, 0x18
mov esi, dword [ebp - 0x444]
add edi, 8
cmp word [edi], 0
jne 0x526d00
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.0055eeb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x418]
xor edx, edx
mov eax, dword [ebp - 0x414]
shrd ecx, eax, 0x1e
mov dword [ebp - 0x42c], 7
shr eax, 0x1e
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], dx
push eax
push ecx
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], edx
call fcn.00502820
xor eax, eax
mov dword [ebp - 0x448], 7
add esp, 8
mov dword [ebp - 0x44c], 0
mov word [ebp - 0x45c], ax
cmp word [edi], ax
je 0x526e6f
mov eax, edi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x526e60
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x45c]
call fcn.00413c10
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x464]
mov ecx, esi
push eax
call fcn.00424460
mov ecx, dword [ebp - 0x464]
lea eax, [ebp - 0x440]
add ecx, 0x28
cmp ecx, eax
je 0x526eb2
push 0xffffffffffffffff
push 0
push eax
call fcn.00414130
mov eax, dword [ebp - 0x448]
cmp eax, 8
jb 0x526ed0
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.00414580
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x45c], ax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], 0
cmp eax, 8
jb 0x526dc3
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00414580
jmp 0x526dc3