Function at 0x4211d0
Capabilities:
Get disk information

Disassembly:
push ebp
xor eax, eax
mov ecx, 0xd
push edi
push esi
push ebx
sub esp, 0x8ec
lea edi, [esp + 0x8a0]
cld
lea edx, [esp + 0x870]
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
lea esi, [esp + 0x8a0]
mov edx, dword [esp + 0x900]
mov dword [esp], edx
call fcn.0041fd10
test eax, eax
mov edx, 0xffffffff
je 0x4215a4
mov edx, dword [esp + 0x874]
mov ebp, dword [esp + 0x878]
mov edi, dword [esp + 0x87c]
mov dword [esp + 0x8a4], edx
mov ecx, dword [esp + 0x880]
mov ebx, dword [esp + 0x870]
mov dword [esp + 0x8a8], ebp
mov edx, dword [esp + 0x884]
mov ebp, dword [esp + 0x888]
mov dword [esp + 0x8ac], edi
test bl, 0x10
mov edi, dword [esp + 0x88c]
mov dword [esp + 0x8b0], ecx
mov ecx, dword [esp + 0x890]
mov dword [esp + 0x8a0], ebx
mov dword [esp + 0x8b4], edx
mov dword [esp + 0x8b8], ebp
mov dword [esp + 0x8c0], edi
mov dword [esp + 0x8c4], ecx
jne 0x4215c0
mov ebx, 1
mov dword [esp + 0x8c8], ebx
mov eax, dword [esp + 0x900]
lea edi, [esp + 0x70]
lea ebx, [esp + 0x2c]
mov dword [esp], eax
call fcn.00422230
mov dword [esp], eax
call fcn.0041f8b0
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x24]
mov ebp, eax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x28]
lea edi, [esp + 0x470]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], edi
mov dword [esp + 0x1c], 0x400
mov dword [esp + 8], 0x400
mov dword [esp], eax
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
test eax, eax
lea edi, [esp + 0x30]
sete bl
mov dword [esp], ebp
xor ebp, ebp
movzx edx, bl
dec edx
xor ebx, ebx
and dword [esp + 0x24], edx
call sub.msvcrt.dll_free
cld
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
or ebp, edi
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x904]
or edx, ebx
mov dword [edi + 8], edx
xor edx, edx
test cl, 0x10
sete dl
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0
dec edx
and edx, 0xffffc000
add edx, 0x8000
or edx, 0x124
test cl, 1
movzx eax, dx
jne 0x42138a
or eax, 0x92
mov ebx, dword [esp + 0x54]
xor edx, edx
xor ebp, ebp
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x904]
mov esi, edi
or dword [ecx], eax
mov edi, ebx
or edi, ebp
mov ebp, edx
mov ebx, dword [esp + 0x58]
or ebp, esi
mov esi, dword [esp + 0x904]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18], ebx
mov ebx, dword [esp + 0x3c]
mov ecx, edx
mov dword [esi + 0x30], edi
xor edx, edx
mov dword [esi + 0x34], ebp
or ebx, edx
xor esi, esi
mov dword [esp + 8], 0x989680
or esi, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
sub edx, 0xd53e8000
mov ecx, esi
sbb ecx, 0x19db1de
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004258f0
mov edx, eax
mov ecx, dword [esp + 0x904]
shr eax, 0x1f
dec eax
and edx, eax
mov dword [ecx + 0x38], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x989680
mov dword [esp + 0xc], 0
call fcn.00425a10
lea ecx, [eax + eax*4]
lea ebx, [ecx + ecx*4]
mov eax, dword [esp + 0x904]
shl ebx, 2
mov esi, ebx
shr esi, 0x1f
dec esi
and esi, ebx
mov dword [eax + 0x3c], esi
mov edx, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 8], 0x989680
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov ecx, edx
xor edx, edx
or ebx, edx
or esi, ecx
mov edx, ebx
sub edx, 0xd53e8000
mov ecx, esi
sbb ecx, 0x19db1de
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004258f0
mov edx, eax
mov ecx, dword [esp + 0x904]
shr eax, 0x1f
dec eax
and edx, eax
mov dword [ecx + 0x48], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x989680
mov dword [esp + 0xc], 0
call fcn.00425a10
lea ecx, [eax + eax*4]
lea ebx, [ecx + ecx*4]
mov eax, dword [esp + 0x904]
shl ebx, 2
mov esi, ebx
shr esi, 0x1f
dec esi
and esi, ebx
mov dword [eax + 0x4c], esi
mov edx, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 8], 0x989680
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov ecx, edx
xor edx, edx
or ebx, edx
or esi, ecx
mov edx, ebx
sub edx, 0xd53e8000
mov ecx, esi
sbb ecx, 0x19db1de
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004258f0
mov edx, eax
mov ecx, dword [esp + 0x904]
shr eax, 0x1f
dec eax
and edx, eax
mov dword [ecx + 0x40], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x989680
mov dword [esp + 0xc], 0
call fcn.00425a10
lea ebx, [eax + eax*4]
mov esi, dword [esp + 0x904]
lea edx, [ebx + ebx*4]
shl edx, 2
mov eax, edi
mov ecx, edx
mov dword [esi + 0x50], 0x200
shr ecx, 0x1f
dec ecx
and ecx, edx
test ebp, ebp
mov edx, ebp
mov dword [esi + 0x44], ecx
js 0x4215b1
xor esi, esi
mov ebp, edi
mov ecx, eax
shrd ecx, edx, 9
mov ebx, edx
and ebp, 0x1ff
mov eax, esi
sar ebx, 9
or eax, ebp
je 0x421582
add ecx, 1
adc ebx, 0
mov edx, dword [esp + 0x904]
mov dword [edx + 0x5c], ebx
mov ebx, dword [esp + 0x900]
mov dword [edx + 0x58], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004203f0
xor edx, edx
add esp, 0x8ec
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, 0x1ff
adc edx, 0
jmp 0x421561
mov eax, dword [esp + 0x900]
mov dword [esp], eax
call fcn.0041fe80
mov dword [esp + 0x8c8], eax
jmp 0x4212ac