Function at 0x7cbfb0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd78
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7cc281
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040b054
mov bl, 1
mov edx, 0x7cc294
mov eax, edi
call fcn.004327c4
test eax, eax
jne 0x7cbff2
xor ebx, ebx
sub esi, 2
je 0x7cc004
dec esi
je 0x7cc024
sub esi, 2
je 0x7cc032
jmp 0x7cc269
test bl, bl
je 0x7cc016
mov esi, 0x8829f4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x7cc03e
mov esi, 0x882a04
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x7cc03e
mov esi, 0x882a04
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x7cc03e
mov esi, 0x882a14
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x12
push 0
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x8cce94]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x7cc269
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x1c
call fcn.004083a8
mov dword [ebp - 0x54], 0x1c
mov byte [ebp - 9], 1
lea eax, [ebp - 4]
call fcn.0040b054
cmp byte [ebp - 9], 1
jne 0x7cc25c
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8cd2e8]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x7cc25c
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8cd1d4]
mov eax, dword [eax]
call eax
cmp dword [ebp - 0x1c], 0
je 0x7cc24f
cmp dword [ebp - 0x1c], 0x400
ja 0x7cc24f
mov eax, dword [ebp - 0x1c]
call fcn.00407108
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x7cc248
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
mov dword [eax], 6
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x1c
call fcn.004083a8
mov dword [ebp - 0x70], 0x1c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8cd1d4]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x7cc230
lea eax, [ebp - 0x28]
push eax
push 0x20a
lea eax, [ebp - 0x286]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8ccaf8]
mov eax, dword [eax]
call eax
test eax, eax
je 0x7cc18e
lea eax, [ebp - 4]
lea edx, [ebp - 0x286]
mov ecx, 0x105
call fcn.0040bf80
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
push ebp
push 0x7cc229
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x7cc210
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x7cc210
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x78]
jne 0x7cc210
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.0040b444
call fcn.0040a7f4
call fcn.0040a7f4
jmp 0x7cc25c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7cc230
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7cc24f
mov eax, dword [ebp - 0x24]
call fcn.00407124
pop eax
jmp eax
inc dword [ebp - 0x18]
cmp byte [ebp - 9], 1
je 0x7cc08f
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8cd67c]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7cc288
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax