Function at 0x504b20
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 0x57e410
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebx + 8]
mov ecx, edx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x30], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504bb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004082a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push 1
sub esp, 0x18
mov dword [ebp - 0x94], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push eax
call fcn.00407250
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0048e260
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00408570
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.0048db40
push 0x5c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], 1
mov esi, eax
call fcn.0040baa0
cmp dword [esi + 0x14], 8
jb 0x504c4a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, 1
mov edi, eax
mov dword [ebp - 0x7c], esi
and esi, 0xfffffffe
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00408570
cmp edi, 3
jne 0x504c80
test dword [ebx + 0xc], 0x20000
jne 0x504cd2
jmp 0x504ea2
cmp edi, 2
jne 0x504c96
mov eax, dword [ebx + 0xc]
test eax, 0x10000
jne 0x504cd2
test eax, 0x200000
jmp 0x504ccc
cmp edi, 4
jne 0x504ca9
test dword [ebx + 0xc], 0x40000
jne 0x504cd2
jmp 0x504ea2
cmp edi, 5
jne 0x504cbc
test dword [ebx + 0xc], 0x80000
jne 0x504cd2
jmp 0x504ea2
cmp edi, 6
jne 0x504ea2
test dword [ebx + 0xc], 0x100000
je 0x504ea2
xorps xmm0, xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x78]
call fcn.0048db40
or esi, 2
mov dword [ebp - 0x88], eax
push 0x5c
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x7c], esi
call fcn.0040baa0
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x14], 8
jb 0x504d19
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]
and esi, 0xfffffffd
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00408570
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x8c]
mov ecx, edx
mov esi, dword [ebp - 0xa0]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x30], 0
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 - 0x8c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504da6
sub ecx, dword [ebp - 0x8c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004082a0
mov byte [ebp - 4], 8
xor eax, eax
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00408570
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x60]
mov edi, dword [ebp - 0x98]
push eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x504e8e
mov ecx, esi
mov dword [ebp - 0x98], esi
call fcn.00407250
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0xa
add dword [edi + 4], 0x30
jmp 0x504e96
push esi
mov ecx, edi
call fcn.00506ba0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00408570
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.0052df57
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18