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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afb9c
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], 0
xor eax, eax
mov dword [ebp - 0x1c0], eax
push 3
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b3d33
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
mov dword [ebp - 0x1b8], eax
xor edx, edx
mov word [ebp - 0x1a8], dx
lea eax, [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x1e8]
call fcn.004892e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e8]
call fcn.00489250
push eax
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x1e8]
call fcn.00489250
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
movzx ecx, word [eax]
test ecx, ecx
je 0x488bdf
mov dword [ebp - 0x1bc], 0
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1a5], 0
cmp dword [ebp - 0x1bc], 3
jne 0x488b74
mov eax, dword [ebp - 0x1a0]
movzx ecx, word [eax]
push ecx
call fcn.00488cc0
add esp, 4
cmp eax, 7
je 0x488b74
mov dword [ebp - 0x1b4], 0
xor edx, edx
mov dword [ebp - 0x1b0], edx
push 0
push 0
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x488b74
mov edx, dword [ebp - 0x1b0]
cmp edx, dword [ebp - 0x1c0]
jb 0x488b74
ja 0x488b4a
mov eax, dword [ebp - 0x1b4]
cmp eax, dword [ebp - 0x1c4]
jbe 0x488b74
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x94]
call fcn.004b36a5
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
add edx, 2
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x1a4]
mov cx, word [eax]
mov word [ebp - 0x1aa], cx
add dword [ebp - 0x1a4], 2
cmp word [ebp - 0x1aa], 0
jne 0x488b8f
mov edx, dword [ebp - 0x1a4]
sub edx, dword [ebp - 0x1c8]
sar edx, 1
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0x1a0]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x1a0], edx
jmp 0x488aa5
mov ecx, dword [ebp + 8]
call fcn.004b3b40
sub eax, 3
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b40f2
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1d4]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b3686
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004b3603
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004b3704
mov dword [ebp - 0x1d8], eax
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1dc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b3686
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x19c]
call fcn.004b3603
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e8]
call fcn.004892a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b3603
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret