Function at 0x4ff270
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], 0x8000
xor esi, esi
call fcn.004ff1d0
test al, al
je 0x4ff34e
mov eax, dword [esp + 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x4ff34e
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push 1
push 3
call dword [0x9875e4]
test eax, eax
jne 0x4ff310
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call dword [0x9875e8]
test eax, eax
je 0x4ff305
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
push eax
call dword [0x9875f0]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x4ff34e
mov edx, dword [esp + 0x14]
add edx, 0x14
mov ebx, eax
mov eax, dword [edx]
cmp eax, ebp
je 0x4ff343
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ff330
sub eax, edi
sar eax, 1
lea esi, [esi + eax*2 + 2]
add esi, 0xc
add edx, 0x20
sub ebx, 1
jne 0x4ff321
lea edi, [esi + 0x144]
push edi
call fcn.00507d92
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4ff513
mov eax, dword [esp + 0x10]
push edi
lea ebp, [ebx + 0x138]
lea ecx, [eax + eax*2]
push 0
mov dword [esp + 0x24], ebp
push ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
lea ebp, [ebp + ecx*4]
mov esi, 1
call fcn.0051c1b0
add esp, 0xc
lea ecx, [esi + 0x41]
lea eax, [ebx + 4]
lea edx, [esi + 0xc]
mov edi, edi
test dword [esp + 0x28], esi
je 0x4ff3af
or dword [eax], 1
lea edi, [ecx - 1]
mov dword [eax - 4], edi
mov edi, dword [esp + 0x28]
add esi, esi
test edi, esi
je 0x4ff3c0
or dword [eax + 0xc], 1
mov dword [eax + 8], ecx
add esi, esi
add ecx, 2
add eax, 0x18
sub edx, 1
jne 0x4ff3a0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4ff49f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ff49f
mov dword [esp + 0x28], edx
jbe 0x4ff49f
add edi, 0x10
cmp dword [edi - 0xc], 1
mov esi, dword [edi + 4]
mov ecx, dword [edi]
jne 0x4ff48b
cmp dword [edi - 8], 3
jne 0x4ff48b
test esi, esi
je 0x4ff48b
test ecx, ecx
je 0x4ff443
movzx eax, word [ecx]
test ax, ax
je 0x4ff443
cmp word [ecx + 2], 0x3a
jne 0x4ff443
movzx edx, ax
push edx
call fcn.00507cfc
movsx ecx, al
lea eax, [ecx + ecx*2 - 0xc3]
lea eax, [ebx + eax*4]
add esp, 4
mov dword [eax], ecx
jmp 0x4ff450
mov ecx, dword [esp + 0x1c]
mov eax, ecx
add ecx, 0xc
mov dword [esp + 0x1c], ecx
or dword [eax + 4], 3
mov edx, ebp
mov dword [eax + 8], ebp
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ff460
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ff474
sub eax, edx
sar eax, 1
lea ebp, [ebp + eax*2 + 2]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc ecx
add edi, 0x20
mov dword [esp + 0x28], ecx
cmp ecx, eax
jb 0x4ff3f2
mov ecx, dword [esp + 0x1c]
cmp ebx, ecx
jae 0x4ff511
jmp 0x4ff4b0
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], 0
je 0x4ff4d9
mov edx, dword [esp + 0x20]
cmp eax, edx
jbe 0x4ff4d2
mov esi, dword [eax]
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
add edx, 0xc
mov dword [esp + 0x20], edx
add eax, 0xc
mov dword [esp + 0x2c], eax
cmp eax, ecx
jb 0x4ff4b0
mov esi, dword [esp + 0x20]
cmp esi, ecx
jae 0x4ff511
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push esi
call fcn.0051c1b0
add esp, 0xc
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4ff52a
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret