Function at 0x5f4fb4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5f4fbc
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5f5216
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xc], eax
mov ebx, 2
mov ecx, ebx
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0xc]
je 0x5f51b4
lea eax, [ebp - 0x28]
mov edx, ebx
add dl, 0x41
call fcn.00404d88
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov ecx, 0x5f522c
call fcn.00404ed8
mov eax, dword [ebp - 0x10]
call fcn.0040508c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
cmp esi, 5
jne 0x5f5031
cmp byte [ebp - 1], 1
je 0x5f503b
cmp byte [ebp - 1], 0
jne 0x5f51b4
lea eax, [ebp - 0x14]
mov edx, 0x800
call fcn.00405218
lea eax, [ebp - 0x18]
mov edx, 0x800
call fcn.00405218
push 0x800
lea eax, [ebp - 0x18]
call fcn.004050e4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x800
lea eax, [ebp - 0x14]
call fcn.004050e4
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040508c
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x5f5123
mov edx, dword [ebp - 0x14]
mov eax, 0x5f5238
call fcn.004051d0
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00405218
mov edx, dword [ebp - 0x18]
mov eax, 0x5f5238
call fcn.004051d0
mov edx, eax
dec edx
lea eax, [ebp - 0x18]
call fcn.00405218
lea eax, [ebp - 0x34]
mov edx, ebx
add dl, 0x41
call fcn.00404d88
push dword [ebp - 0x34]
push 0x5f5244
push dword [ebp - 0x14]
push 0x5f5250
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404f4c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004054bc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov ecx, esi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x24]
jmp 0x5f51b4
cmp esi, 5
jne 0x5f516f
lea eax, [ebp - 0x3c]
mov edx, ebx
add dl, 0x41
call fcn.00404d88
lea eax, [ebp - 0x3c]
mov edx, 0x5f525c
call fcn.00404e94
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.004054bc
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov ecx, esi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x24]
jmp 0x5f51b4
lea eax, [ebp - 0x44]
mov edx, ebx
add dl, 0x41
call fcn.00404d88
lea eax, [ebp - 0x44]
mov edx, 0x5f5270
call fcn.00404e94
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.004054bc
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov ecx, esi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x24]
inc ebx
cmp ebx, 0x1a
jne 0x5f4fe7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f521d
lea eax, [ebp - 0x44]
call fcn.00404ba0
lea eax, [ebp - 0x40]
call fcn.004052d8
lea eax, [ebp - 0x3c]
call fcn.00404ba0
lea eax, [ebp - 0x38]
call fcn.004052d8
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 0x2c]
call fcn.004052d8
lea eax, [ebp - 0x28]
call fcn.00404ba0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404bc4
ret