Function at 0x4c5b18
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x24
push 0
push 0
dec ecx
jne 0x4c5b21
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405df4
xor eax, eax
push ebp
push 0x4c5d9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x102]
push eax
push 0xd2
call sub.KERNEL32.DLL_GetLogicalDriveStringsW
lea eax, [ebp - 0x10c]
call fcn.004c5218
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00419e68
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x10]
call fcn.00418604
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ebx, [ebp - 0x102]
test ebx, ebx
je 0x4c5cb2
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405fc8
push ebx
call sub.KERNEL32.DLL_GetDriveTypeW
mov esi, eax
cmp esi, 3
jne 0x4c5c97
mov eax, dword [ebp - 8]
call fcn.004198ac
test al, al
je 0x4c5c97
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [0x58bdf4]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4c5c97
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
jne 0x4c5c00
cmp eax, dword [ebp - 0x20]
jb 0x4c5c97
jmp 0x4c5c06
jl 0x4c5c97
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.00419e68
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00418604
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 8]
call fcn.00405e60
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004065c0
je 0x4c5c97
lea eax, [ebp - 0x118]
mov ecx, 0x4c5db8
mov edx, dword [ebp - 8]
call fcn.004062f0
mov eax, dword [ebp - 0x118]
call fcn.004198d0
test al, al
je 0x4c5c97
lea eax, [ebp - 0x11c]
mov ecx, 0x4c5db8
mov edx, dword [ebp - 8]
call fcn.004062f0
mov eax, dword [ebp - 0x11c]
call fcn.0041a26c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405e60
mov eax, ebx
call fcn.0041a2b4
inc eax
add eax, eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4c5caa
xor ebx, ebx
test ebx, ebx
jne 0x4c5ba3
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405e98
push eax
mov eax, dword [0x58bdf4]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4c5d2e
push 0
push 0x100000
mov eax, dword [ebp - 0x14]
cdq
call fcn.00407240
cmp edx, dword [ebp - 0x24]
jne 0x4c5cee
cmp eax, dword [ebp - 0x28]
jbe 0x4c5d2e
jmp 0x4c5cf0
jle 0x4c5d2e
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405e98
push eax
mov eax, dword [0x58bdf4]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4c5d2e
cmp dword [ebp - 0x24], 1
jne 0x4c5d21
cmp dword [ebp - 0x28], 0x38800000
jbe 0x4c5d2e
jmp 0x4c5d23
jle 0x4c5d2e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00405e60
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e0c
movzx eax, byte [0x4c5dd8]
push eax
lea eax, [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 4]
call fcn.00419e68
mov edx, dword [ebp - 0x124]
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
call fcn.004206ec
mov edx, dword [ebp - 0x120]
mov eax, edi
call fcn.00405e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5da4
lea eax, [ebp - 0x124]
mov edx, 8
call fcn.00405e04
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405e04
ret