Function at 0x4c3184
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x4c318c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c359b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov ebx, 1
lea eax, [ebp - 0x84]
lea edx, [ebx + 0x42]
call fcn.00403e74
lea eax, [ebp - 0x84]
mov edx, 0x4c35b4
call fcn.00403f54
mov eax, dword [ebp - 0x84]
call fcn.00404110
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4c31ea
inc esi
mov dword [ebp + esi*4 - 0x84], ebx
lea eax, [ebp - 0x88]
lea edx, [ebx + 0x42]
call fcn.00403e74
lea eax, [ebp - 0x88]
mov edx, 0x4c35b4
call fcn.00403f54
mov eax, dword [ebp - 0x88]
call fcn.00404110
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
je 0x4c3224
inc ebx
cmp ebx, 0x15
jne 0x4c31ae
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov edi, esi
test edi, edi
jle 0x4c3291
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x8c]
mov edx, dword [ebx]
add edx, 0x42
call fcn.00403e74
lea eax, [ebp - 0x8c]
mov edx, 0x4c35b4
call fcn.00403f54
mov eax, dword [ebp - 0x8c]
call fcn.00404110
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
call fcn.004be930
fild qword [ebp - 0x20]
fdiv dword [0x4c35b8]
call fcn.00402ac8
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
add ebx, 4
dec edi
jne 0x4c323b
fild qword [ebp - 0x30]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x10]
call fcn.0040a24c
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404154
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15560]
mov ecx, 1
mov edx, 1
call fcn.00404154
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 8]
call fcn.0040909c
lea eax, [ebp - 0xc]
call fcn.00403ccc
cmp esi, 1
jne 0x4c3309
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x15584]
lea eax, [ebp - 0xc]
mov edx, 0x4c35c4
call fcn.00403f98
cmp esi, 2
jne 0x4c33b2
push 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x7c]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0x98]
mov ecx, 5
mov eax, dword [ebp - 4]
call fcn.004c2c24
mov eax, dword [ebp - 0x94]
push eax
push 0
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x80]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xa0]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004c2c24
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403f98
push 0x4c35c4
push dword [ebp - 8]
lea edx, [ebp - 0xa4]
mov eax, esi
call fcn.00409428
push dword [ebp - 0xa4]
push 0x4c35d0
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.0040400c
cmp esi, 3
jne 0x4c3491
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x80]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xac]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0xa8]
push 0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x7c]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xb4]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0xb0]
push 0
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x78]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xbc]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0xb8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040400c
push 0x4c35c4
push dword [ebp - 8]
lea edx, [ebp - 0xc0]
mov eax, esi
call fcn.00409428
push dword [ebp - 0xc0]
push 0x4c35d0
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.0040400c
cmp esi, 3
jle 0x4c3560
push 0
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc8]
mov edx, dword [ebp - 0x80]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xc8]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0xc4]
push 0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x7c]
add edx, 0x42
call fcn.00403e74
mov edx, dword [ebp - 0xd0]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0xcc]
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040400c
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00409428
cmp esi, 9
jle 0x4c352e
lea eax, [ebp - 0x14]
mov edx, 0x4b
sub edx, esi
call fcn.00403e74
cmp esi, 0x19
jle 0x4c3540
lea eax, [ebp - 0x14]
mov edx, 0x4c35dc
call fcn.00403d64
push 0x4c35c4
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x4c35d0
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.0040400c
mov eax, dword [ebp - 4]
add eax, 0x15578
mov edx, dword [ebp - 0xc]
call fcn.00403d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c35a2
lea eax, [ebp - 0xd0]
mov edx, 0x14
call fcn.00403cf0
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403cf0
ret