Function at 0x490ff7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4d21
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x6a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x220]
mov ecx, dword [ecx]
lea esi, [eax + 0xf4]
mov dword [esp + 0x1c], eax
push 0x4cb648
lea eax, [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
call fcn.00409d45
and dword [esp + 0x6b0], 0
push 0x4de2c0
lea eax, [esp + 0x28]
call fcn.00409d45
lea eax, [esp + 0x24]
push eax
push esi
lea ebx, [esp + 0x80]
mov byte [esp + 0x6b8], 1
call fcn.00488b78
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x28]
call fcn.0040a3ed
or dword [esp + 0x6b0], 0xffffffff
push 1
mov esi, ebx
call fcn.0040a3ed
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jbe 0x4910db
cmp dword [esi + 0x14], 8
jb 0x4910c9
mov ecx, dword [esi]
jmp 0x4910cb
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4910db
dec eax
mov ecx, esi
call fcn.0040f73c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x104]
mov ecx, dword [ecx + 0x27c]
lea eax, [ecx + eax + 0x1f]
cmp eax, 0x104
setb byte [esp + 0x17]
cmp byte [esp + 0x17], bl
je 0x4912b9
push esi
call fcn.004902e2
mov byte [esp + 0x17], al
test al, al
je 0x4912b9
cmp dword [esi + 0x14], 8
jb 0x491121
mov esi, dword [esi]
mov eax, 0x100
push eax
lea ecx, [esp + 0x4a0]
push ecx
push eax
lea ecx, [esp + 0x2a8]
push ecx
push eax
lea eax, [esp + 0xb0]
push eax
push 3
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.004a8dc4
add esp, 0x24
cmp eax, ebx
jne 0x491170
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
sete byte [esp + 0x17]
jmp 0x491174
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x4912b9
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push 2
pop esi
push SysReAllocString
push 0x5c
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x6b8], esi
call fcn.004134a2
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
mov edi, str.__:___
cmp eax, esi
jae 0x4911cd
mov byte [esp + 0x17], 0
jmp 0x491219
dec eax
cmp eax, 1
jbe 0x491219
lea esi, [ecx + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 0xf5
setb cl
test eax, eax
setne al
and cl, al
and byte [esp + 0x17], cl
cmp dword [esi + 4], 8
jb 0x4911fd
mov eax, dword [esi - 0x10]
jmp 0x491200
lea eax, [esi - 0x10]
push edi
push eax
call fcn.004aac8b
neg eax
sbb al, al
inc al
and byte [esp + 0x1f], al
pop ecx
add esi, 0x1c
dec ebx
pop ecx
jne 0x4911d9
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x44]
call fcn.00409d45
lea eax, [esp + 0x49c]
push eax
lea eax, [esp + 0x60]
mov byte [esp + 0x6b4], 3
call fcn.00409d45
cmp dword [esp + 0x50], ebx
seta al
and byte [esp + 0x17], al
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x49125d
lea eax, [esp + 0x40]
push edi
push eax
call fcn.004aac8b
neg eax
sbb al, al
inc al
and byte [esp + 0x1f], al
pop ecx
pop ecx
cmp dword [esp + 0x6c], ebx
jbe 0x491298
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x491285
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.004aac8b
neg eax
sbb al, al
pop ecx
inc al
and byte [esp + 0x1b], al
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x60]
call fcn.0040a3ed
push 1
lea esi, [esp + 0x44]
call fcn.0040a3ed
lea ebx, [esp + 0x24]
call fcn.004083a6
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x6a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 4