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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568a3e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
sub esp, 0x18
mov edi, dword [ebx + 0x10]
mov edx, esp
mov ecx, esi
mov dword [ebp - 0x84], esi
xor eax, eax
mov dword [ebp - 0x88], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x80], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbaa3
sub ecx, dword [ebp - 0x80]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004079c0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00484e80
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.00485030
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4fbaf1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407c80
cmp esi, 3
jne 0x4fbb19
test dword [ebx + 0xc], 0x20000
jne 0x4fbb6b
jmp 0x4fbd12
cmp esi, 2
jne 0x4fbb2f
mov eax, dword [ebx + 0xc]
test eax, 0x10000
jne 0x4fbb6b
test eax, 0x200000
jmp 0x4fbb65
cmp esi, 4
jne 0x4fbb42
test dword [ebx + 0xc], 0x40000
jne 0x4fbb6b
jmp 0x4fbd12
cmp esi, 5
jne 0x4fbb55
test dword [ebx + 0xc], 0x80000
jne 0x4fbb6b
jmp 0x4fbd12
cmp esi, 6
jne 0x4fbd12
test dword [ebx + 0xc], 0x100000
je 0x4fbd12
xorps xmm0, xmm0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x78]
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
call fcn.00485030
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4fbb96
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00407c80
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x84]
mov ecx, edx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x84], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbc20
sub ecx, dword [ebp - 0x84]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004079c0
mov byte [ebp - 4], 4
xor eax, eax
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x30], ax
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407c80
mov byte [ebp - 4], 6
lea eax, [ebp - 0x60]
mov esi, dword [edi + 4]
push eax
cmp dword [edi + 8], esi
je 0x4fbcfe
mov ecx, esi
mov dword [ebp - 0x88], esi
call fcn.00406d00
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
add dword [edi + 4], 0x30
jmp 0x4fbd06
push esi
mov ecx, edi
call fcn.004fdcb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00407c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00407c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18