Function at 0x4e16c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e19bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf8]
mov eax, dword [esi + 0x484]
call fcn.0040806c
dec eax
test eax, eax
jl 0x4e18d0
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov edi, ebx
add edi, edi
lea edi, [edi + edi*4]
mov eax, dword [esi + 0x484]
cmp byte [eax + edi*8 + 0x14], 0
je 0x4e172b
mov al, 1
jmp 0x4e1743
mov eax, dword [esi + 0x484]
mov eax, dword [eax + edi*8]
test eax, eax
je 0x4e173d
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
setg al
test al, al
je 0x4e175e
mov dl, 1
mov eax, dword [esi + 0x464]
call fcn.004941e4
cmp byte [ebp - 5], 0
je 0x4e18c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
call fcn.0047df08
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x484]
mov eax, dword [eax + edi*8]
test eax, eax
je 0x4e1781
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jne 0x4e17a4
mov eax, dword [esi + 0x484]
cmp byte [eax + edi*8 + 0x14], 0
jne 0x4e17a4
mov eax, dword [esi + 0x484]
mov edx, dword [eax + edi*8]
mov eax, dword [ebp - 0x10]
call fcn.0047d8f0
mov eax, dword [esi + 0x484]
mov eax, dword [eax + edi*8]
mov edx, dword [0x50050c]
call fcn.00406f5c
jne 0x4e17c8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0047dabc
jmp 0x4e1808
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [esi + 0x484]
mov eax, dword [edx + eax*8]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
jne 0x4e17f9
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0047dabc
jmp 0x4e1808
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0047dabc
mov eax, dword [esi + 0x484]
mov edx, dword [eax + edi*8 + 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x484]
mov edx, dword [eax + edi*8 + 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x484]
cmp byte [eax + edi*8 + 0x20], 0
jne 0x4e1856
mov eax, dword [esi + 0x484]
mov edx, dword [eax + edi*8 + 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4e187e
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [esi + 0x484]
movzx eax, byte [edx + eax*8 + 0x20]
lea edx, [ebp - 0x14]
call fcn.004dbe60
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x484]
push dword [eax + edi*8 + 0x34]
push dword [eax + edi*8 + 0x30]
lea eax, [ebp - 0x18]
call fcn.004d7630
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x484]
push dword [eax + edi*8 + 0x3c]
push dword [eax + edi*8 + 0x38]
lea eax, [ebp - 0x1c]
call fcn.004d7630
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 0xc]
jne 0x4e1713
cmp dword [0x50050c], 0
jne 0x4e1954
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
call fcn.0047df7c
dec eax
test eax, eax
jl 0x4e19a1
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
cmp dword [0x50050c], 0
jne 0x4e1935
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov edx, ebx
call fcn.0047dfb4
mov edx, dword [eax + 0x20]
mov eax, 0x50050c
call fcn.00406874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov edx, ebx
call fcn.0047dfb4
mov dl, 1
call fcn.0047d79c
jmp 0x4e194c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov edx, ebx
call fcn.0047dfb4
xor edx, edx
call fcn.0047d79c
inc ebx
dec dword [ebp - 0xc]
jne 0x4e18f6
jmp 0x4e19a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
call fcn.0047df7c
dec eax
test eax, eax
jl 0x4e19a1
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov edx, ebx
call fcn.0047dfb4
cmp dword [eax + 0xc], 0
sete al
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov edx, ebx
call fcn.0047dfb4
pop edx
call fcn.0047d79c
inc ebx
dec dword [ebp - 0xc]
jne 0x4e196d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e19c3
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040686c
ret