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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f77a6
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x67d070]
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 edi, ecx
mov dword [ebp - 0x444], edi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005b3770
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
jne 0x4c9fb6
test ebx, ebx
je 0x4c9f44
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 0x622628
push 0x32
push ebx
call dword [esi + 0x34]
add esp, 0x18
xor al, al
jmp 0x4ca0fc
cmp dword [0x689958], 0
je 0x4c9f7f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x1c
xor al, al
jmp 0x4ca0fc
mov esi, dword [0x68995c]
test esi, esi
je 0x4c9faf
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 0x622628
push 0x32
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x18
xor al, al
jmp 0x4ca0fc
cmp word [ebp - 0x410], 0
lea esi, [ebp - 0x410]
je 0x4ca0fa
nop word [eax + eax]
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x4ca061
test ebx, ebx
je 0x4ca004
mov eax, dword [ebx]
push esi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x622628
push 0x14
push ebx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x4ca0ed
mov eax, dword [0x689958]
test eax, eax
je 0x4ca033
push esi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x14
call eax
add esp, 0x1c
jmp 0x4ca0ed
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca0ed
mov eax, dword [ecx]
push esi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x622628
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x4ca0ed
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 esi
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 0x4ca17e
test ebx, ebx
je 0x4ca118
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebx]
call eax
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x622628
push 0x32
push ebx
call dword [edi + 0x34]
add esp, 0x18
mov edi, dword [ebp - 0x444]
add esi, 8
cmp word [esi], 0
jne 0x4c9fd0
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.00599c70
mov esp, ebp
pop ebp
ret
cmp dword [0x689958], 0
je 0x4ca14e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x1c
jmp 0x4ca0ed
mov edi, dword [0x68995c]
test edi, edi
je 0x4ca0e7
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [edi]
call eax
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x622628
push 0x32
push dword [0x68995c]
jmp 0x4ca0e1
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.0049f340
add esp, 8
lea ecx, [ebp - 0x45c]
push esi
call fcn.00406e60
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x464]
mov ecx, edi
push eax
call fcn.004310b0
mov ecx, dword [ebp - 0x464]
lea eax, [ebp - 0x440]
add ecx, 0x28
cmp ecx, eax
je 0x4ca203
push 0xffffffffffffffff
push 0
push eax
call fcn.00407550
mov eax, dword [ebp - 0x448]
cmp eax, 8
jb 0x4ca221
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.00407b40
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 0x4ca0ed
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407b40
jmp 0x4ca0ed