Function at 0x8240d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x8240d8
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x82432d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.0040528c
mov eax, dword [0x893580]
cmp dword [eax], 2
je 0x82422b
cmp dword [0x891d94], 0
je 0x8241a5
lea eax, [ebp - 0xc]
mov ecx, 0x824344
mov edx, dword [0x891d94]
call fcn.00405598
jmp 0x82418f
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x824344
call fcn.00405890
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004057ac
mov eax, dword [ebp - 0x10]
call fcn.0040554c
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.004057ec
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
mov cl, 0x2c
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.004bccbc
push dword [ebp - 0x24]
push 0x824350
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040560c
mov edx, dword [ebp - 0xc]
mov eax, 0x824344
call fcn.00405890
test eax, eax
jg 0x82412d
jmp 0x8242fa
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405474
lea eax, [ebp - 0x28]
mov edx, 0x82435c
call fcn.00405554
mov eax, dword [ebp - 0x28]
call fcn.0040574c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 3
jge 0x8241e4
cmp dword [ebp - 0x1c], 3
jne 0x82421d
mov eax, dword [ebp - 0x1c]
cmp eax, 0xff
ja 0x8241f5
bt dword [0x1439bb0], eax
jae 0x82421d
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405474
push dword [ebp - 0x2c]
push 0x824368
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040560c
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1b
jne 0x8241ac
jmp 0x8242fa
mov eax, dword [0x89267c]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x8242fa
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
mov eax, dword [0x89267c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0040a78c
lea eax, [ebp - 0x34]
mov edx, 0x824350
call fcn.00405554
mov eax, dword [ebp - 0x34]
pop edx
call fcn.00405890
dec eax
jne 0x8242ee
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [0x89267c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.0040554c
push eax
lea ecx, [ebp - 0x40]
mov eax, dword [0x89267c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, 0x824350
call fcn.00405890
inc eax
push eax
lea ecx, [ebp - 0x44]
mov eax, dword [0x89267c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x44]
pop edx
pop ecx
call fcn.004057ac
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00405554
jmp 0x8242fa
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x82424b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0040a298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x824334
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.004052b0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052b0
ret