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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac48c
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x63b070]
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.004b08d7
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.00488060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e8]
call fcn.00487fd0
push eax
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x1e8]
call fcn.00487fd0
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
movzx ecx, word [eax]
test ecx, ecx
je 0x487bcf
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 0x487b64
mov eax, dword [ebp - 0x1a0]
movzx ecx, word [eax]
push ecx
call fcn.00487cb0
add esp, 4
cmp eax, 7
je 0x487b64
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 0x487b64
mov edx, dword [ebp - 0x1b0]
cmp edx, dword [ebp - 0x1c0]
jb 0x487b64
ja 0x487b3a
mov eax, dword [ebp - 0x1b4]
cmp eax, dword [ebp - 0x1c4]
jbe 0x487b64
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.004b0249
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 0x487b7f
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 0x487a95
mov ecx, dword [ebp + 8]
call fcn.004b06e4
sub eax, 3
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b0c96
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.004b022a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004b01a7
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004b02b5
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.004b022a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x19c]
call fcn.004b01a7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e8]
call fcn.00488020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b01a7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret