Function at 0x4e13a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e13b0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4e1681
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
lea eax, [ebp - 4]
mov edx, 0x4e1698
call fcn.00404cd8
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
test eax, esi
je 0x4e165c
lea eax, [ebp - 4]
call fcn.00405130
mov byte [eax], 0x41
lea eax, [ebp - 4]
call fcn.00405130
add byte [eax], bl
lea eax, [ebp - 8]
mov ecx, 0x4e16a4
mov edx, dword [ebp - 4]
call fcn.00404f58
mov eax, dword [ebp - 8]
call fcn.004050d0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4e1546
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov edx, dword [0x4ef1f0]
mov eax, dword [edx + eax*4 - 0x104]
test eax, eax
je 0x4e145e
mov edx, dword [0x4ef1f0]
cmp dword [eax + 0xa038], 0
jle 0x4e145e
mov edx, dword [0x4ef1f0]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
lea eax, [ebp - 0xc]
mov edx, 0x4e16a4
call fcn.00404f0c
mov eax, dword [ebp - 0xc]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [0x4e32c0]
call fcn.004e332c
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
mov ecx, dword [0x4ef1f0]
mov dword [ecx + edx*4 - 0x104], eax
push 0x4e16b0
push dword [ebp - 4]
push 0x4e16c0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404fd4
mov eax, dword [ebp - 0x14]
call fcn.004050d0
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404e38
mov eax, dword [ebp - 0x10]
push eax
call fcn.004e1f48
test al, al
je 0x4e1666
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4eee5c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4e1518
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4eee5c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov cl, 1
mov dl, 1
mov eax, dword [0x4e11f0]
call fcn.00423dc8
mov ebx, eax
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov byte [ebx + 0xf], 1
mov eax, ebx
call fcn.004242f4
jmp 0x4e1666
push 0x4e16b0
push dword [ebp - 4]
push 0x4e16c0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404fd4
mov eax, dword [ebp - 0x24]
call fcn.004050d0
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00404e38
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e1f48
test al, al
je 0x4e165c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov edx, dword [0x4ef1f0]
mov eax, dword [edx + eax*4 - 0x104]
test eax, eax
je 0x4e15b6
mov edx, dword [0x4ef1f0]
cmp dword [eax + 0xa038], 0
jle 0x4e15b6
mov edx, dword [0x4ef1f0]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
lea eax, [ebp - 0x28]
mov edx, 0x4e16a4
call fcn.00404f0c
mov eax, dword [ebp - 0x28]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [0x4e32c0]
call fcn.004e332c
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
mov ecx, dword [0x4ef1f0]
mov dword [ecx + edx*4 - 0x104], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4eee5c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4e1633
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4eee5c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov cl, 1
mov dl, 1
mov eax, dword [0x4e11f0]
call fcn.00423dc8
mov edi, eax
lea eax, [edi + 0x40]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.00404e28
mov byte [edi + 0xf], 1
mov eax, edi
call fcn.004242f4
inc ebx
cmp ebx, 0x1a
jne 0x4e13de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1688
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00404c64
ret