Function at 0x454fa4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov bl, 1
mov edx, 0x4551f0
mov eax, edi
call fcn.00408a8c
test eax, eax
jne 0x454fcd
xor ebx, ebx
sub esi, 2
je 0x454fdf
dec esi
je 0x454fff
sub esi, 2
je 0x45500d
jmp 0x4551e3
test bl, bl
je 0x454ff1
mov esi, 0x45dd90
lea edi, [ebp - 0x34]
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 0x455019
mov esi, 0x45dda0
lea edi, [ebp - 0x34]
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 0x455019
mov esi, 0x45dda0
lea edi, [ebp - 0x34]
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 0x455019
mov esi, 0x45ddb0
lea edi, [ebp - 0x34]
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 - 0x34]
push eax
call sub.SetupApi.dll_SetupDiGetClassDevsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4551e3
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
mov edx, 0x1c
call fcn.00406ce8
mov dword [ebp - 0x50], 0x1c
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 1
jne 0x4551da
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.SetupApi.dll_SetupDiEnumDeviceInterfaces
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4551da
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.SetupApi.dll_SetupDiGetDeviceInterfaceDetailA
cmp dword [ebp - 0x1c], 0
je 0x4551cd
cmp dword [ebp - 0x1c], 0x400
ja 0x4551cd
mov eax, dword [ebp - 0x1c]
call fcn.00402a28
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4551c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
mov dword [eax], 5
lea eax, [ebp - 0x6c]
mov edx, 0x1c
call fcn.00406ce8
mov dword [ebp - 0x6c], 0x1c
lea eax, [ebp - 0x6c]
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 - 0x50]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.SetupApi.dll_SetupDiGetDeviceInterfaceDetailA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4551b0
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
push ebp
push 0x4551a9
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_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x455192
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x78]
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 0x455192
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x74]
jne 0x455192
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
call fcn.00403d34
call fcn.00403d34
jmp 0x4551da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4551b0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4551cd
mov eax, dword [ebp - 0x24]
call fcn.00402a58
ret
inc dword [ebp - 0x18]
cmp byte [ebp - 9], 1
je 0x45505c
mov eax, dword [ebp - 0x10]
push eax
call sub.SetupApi.dll_SetupDiDestroyDeviceInfoList
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret