Function at 0x4b259c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0x4b25a4
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x4b2afc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov eax, edi
call fcn.004b1f5c
and eax, 0xff
lea edx, [ebp - 0x38]
call fcn.00409258
mov ebx, 1
lea eax, [ebp - 0x8c]
lea edx, [ebx + 0x42]
call fcn.00404bf8
lea eax, [ebp - 0x8c]
mov edx, 0x4b2b14
call fcn.00404cd8
mov eax, dword [ebp - 0x8c]
call fcn.00404ed0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4b261e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x8c], ebx
lea eax, [ebp - 0x90]
lea edx, [ebx + 0x42]
call fcn.00404bf8
lea eax, [ebp - 0x90]
mov edx, 0x4b2b14
call fcn.00404cd8
mov eax, dword [ebp - 0x90]
call fcn.00404ed0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
je 0x4b2658
inc ebx
cmp ebx, 0x15
jne 0x4b25dd
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
test esi, esi
jle 0x4b26c9
lea ebx, [ebp - 0x88]
lea eax, [ebp - 0x94]
mov edx, dword [ebx]
add edx, 0x42
call fcn.00404bf8
lea eax, [ebp - 0x94]
mov edx, 0x4b2b14
call fcn.00404cd8
mov eax, dword [ebp - 0x94]
call fcn.00404ed0
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
call fcn.004a931c
fild qword [ebp - 0x20]
fdiv dword [0x4b2b18]
call fcn.00402c60
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
add ebx, 4
dec esi
jne 0x4b2673
fild qword [ebp - 0x30]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x10]
call fcn.0040a914
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404f30
lea eax, [ebp - 0x98]
push eax
mov eax, dword [edi + 0x511d4]
mov ecx, 1
mov edx, 1
call fcn.00404f30
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 8]
call fcn.00408c38
lea eax, [ebp - 0xc]
call fcn.00404a10
cmp dword [ebp - 4], 1
jne 0x4b2875
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov eax, 0x4b2b1c
call fcn.004a931c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, 0x4549df1
adc edx, 0
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
fild qword [ebp - 0xa4]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x9c]
call fcn.0040a914
mov edx, dword [ebp - 0x9c]
lea eax, [edi + 0x511c8]
call fcn.00404a64
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x511c8]
call fcn.00404cd0
mov esi, eax
test esi, esi
jle 0x4b27b3
mov ebx, 1
mov eax, dword [edi + 0x511c8]
movzx eax, byte [eax + ebx - 1]
add eax, dword [ebp - 0x18]
sub eax, 0x30
mov dword [ebp - 0x18], eax
inc ebx
dec esi
jne 0x4b279b
mov eax, dword [edi + 0x511c8]
call fcn.00404cd0
lea edx, [ebp - 0x14]
call fcn.00409258
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404cd0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404f30
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x18]
call fcn.00409258
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x34]
mov edx, 0x4b2b28
call fcn.00404d1c
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00404cd0
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x34]
call fcn.00404f30
lea eax, [ebp - 0xac]
push eax
mov eax, dword [edi + 0x511c8]
mov ecx, 2
mov edx, 1
call fcn.00404f30
push dword [ebp - 0xac]
push dword [ebp - 0x14]
push dword [ebp - 0x34]
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [edi + 0x511c8]
mov ecx, 4
mov edx, 1
call fcn.00404f30
push dword [ebp - 0xb0]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404d90
cmp dword [ebp - 4], 2
jne 0x4b28fa
push 0
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0x84]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xb8]
mov ecx, 5
mov eax, edi
call fcn.004b1da8
mov eax, dword [ebp - 0xb4]
push eax
push 0
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x88]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xc0]
mov ecx, 4
mov eax, edi
call fcn.004b1da8
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00404d1c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00404aa8
cmp dword [ebp - 4], 3
jne 0x4b29b8
push 0
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc8]
mov edx, dword [ebp - 0x88]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xc8]
mov ecx, 3
mov eax, edi
call fcn.004b1da8
push dword [ebp - 0xc4]
push 0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x84]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xd0]
mov ecx, 3
mov eax, edi
call fcn.004b1da8
push dword [ebp - 0xcc]
push 0
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0x80]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xd8]
mov ecx, 3
mov eax, edi
call fcn.004b1da8
push dword [ebp - 0xd4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d90
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00404aa8
cmp dword [ebp - 4], 3
jle 0x4b2a7b
push 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
mov edx, dword [ebp - 0x88]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xe0]
mov ecx, 3
mov eax, edi
call fcn.004b1da8
push dword [ebp - 0xdc]
push 0
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xe8]
mov edx, dword [ebp - 0x84]
add edx, 0x42
call fcn.00404bf8
mov edx, dword [ebp - 0xe8]
mov ecx, 3
mov eax, edi
call fcn.004b1da8
push dword [ebp - 0xe4]
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d90
lea eax, [ebp - 0x14]
call fcn.00404a10
cmp dword [ebp - 4], 9
jle 0x4b2a5a
lea eax, [ebp - 0x14]
mov edx, 0x4b
sub edx, dword [ebp - 4]
call fcn.00404bf8
cmp dword [ebp - 4], 0x19
jle 0x4b2a6d
lea eax, [ebp - 0x14]
mov edx, 0x4b2b34
call fcn.00404aa8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404d1c
push dword [ebp - 8]
push 0x4b2b40
push dword [ebp - 0x38]
lea edx, [ebp - 0xec]
mov eax, dword [ebp - 4]
call fcn.00409258
push dword [ebp - 0xec]
push dword [ebp - 0xc]
lea eax, [edi + 0x511c8]
mov edx, 5
call fcn.00404d90
mov eax, edi
call fcn.004aade8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2b03
lea eax, [ebp - 0xec]
mov edx, 0x12
call fcn.00404a34
lea eax, [ebp - 0x9c]
mov edx, 5
call fcn.00404a34
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404a34
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404a34
ret