Function at 0x4c65f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6851
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0xb
lea edx, [ebp - 0x42c]
xor ecx, ecx
mov eax, 0x4c6864
call fcn.0040a348
mov eax, dword [ebp - 0x424]
mov dl, 1
call fcn.004d0e40
mov eax, dword [ebp - 8]
cmp word [eax + 0xe], 1
jne 0x4c6690
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
push 0
mov cx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004c50b8
mov byte [ebp - 0x11], al
jmp 0x4c66b1
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
push 1
mov cx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004c50b8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x4c6820
mov eax, dword [ebp - 8]
test byte [eax + 0x16], 1
jne 0x4c6811
lea eax, [ebp - 0x430]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 0x18]
add edx, 0x41
dec edx
call fcn.00404b40
mov edx, dword [ebp - 0x430]
lea eax, [ebp - 0x20]
mov ecx, 0x4c688c
call fcn.00404c64
push 0x100
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4c67b4
lea edx, [ebp - 0x438]
lea eax, [ebp - 0x420]
call fcn.00409e30
mov eax, dword [ebp - 0x438]
lea edx, [ebp - 0x434]
call fcn.00408d44
mov edx, dword [ebp - 0x434]
mov eax, 0x4c6898
call fcn.00404f5c
test eax, eax
je 0x4c67b4
mov dl, 1
mov eax, dword [0x4bc840]
call fcn.004bd060
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
call fcn.00419d00
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov dword [eax + 0x18], edx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4c6820
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x4c6e24]
call fcn.004c9e28
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
call fcn.00419d00
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4c6820
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c6434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6858
lea eax, [ebp - 0x438]
mov edx, 3
call fcn.0040497c
lea eax, [ebp - 0x424]
call fcn.00404958
lea eax, [ebp - 0x20]
call fcn.00404958
ret