Function at 0x54a7f0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd89cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], 0
call eax
cdq
mov bl, 0x41
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x5c], bl
movsx eax, bl
lea ecx, [ebp - 0x2c]
sub eax, 0x41
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005350d0
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov byte [ebp - 4], 1
cmp edx, 0x20
jae 0x54aaf7
mov ecx, edx
mov byte [ebp - 4], 0
and ecx, 0x1f
shr edx, 5
mov eax, 1
shl eax, cl
test dword [esi + edx*4], eax
je 0x54aa83
push 2
push 0xd928fc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00460080
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.00533330
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x54a8d0
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x10]
call eax
cmp eax, 3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
sete bh
cmp eax, 0x10
jb 0x54a926
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x54a91d
test cl, 0x1f
jne 0x54aaa9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x54aaa9
sub ecx, eax
cmp ecx, 4
jb 0x54aaa9
cmp ecx, 0x23
ja 0x54aaa9
mov ecx, eax
push ecx
call fcn.00d1159f
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x54a982
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x54a979
test cl, 0x1f
jne 0x54aaa9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x54aaa9
sub ecx, eax
cmp ecx, 4
jb 0x54aaa9
cmp ecx, 0x23
ja 0x54aaa9
mov ecx, eax
push ecx
call fcn.00d1159f
add esp, 4
test bh, bh
je 0x54aa83
push 4
push str.._
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00460080
push esi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0056c480
push 1
push 0xd92908
lea ecx, [ebp - 0x28]
call fcn.0056c570
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
or esi, 0xffffffff
push 0
push 3
push 0
push 3
push 0
push eax
mov eax, dword [edi + 0x18]
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x54aa67
push 0
lea eax, [ebp - 0x48]
push eax
push 0xc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push 0
push 0
push 0x2d1080
mov eax, dword [eax + 8]
push edi
call eax
test eax, eax
push edi
cmovne esi, dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x58]
cmp esi, 0xffffffff
je 0x54aa6a
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.0054aeb0
test eax, eax
jne 0x54aa6a
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x54aa4c
mov eax, dword [ecx]
jmp 0x54aa4e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00438340
mov ecx, edi
call fcn.00535160
jmp 0x54aa6a
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x54aa83
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0057c0a0
inc bl
mov byte [ebp - 0x5c], bl
cmp bl, 0x5a
jle 0x54a847
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x54aadb
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x54aad2
test cl, 0x1f
je 0x54aaae
call fcn.00d66671
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x54aaba
call fcn.00d66671
sub ecx, eax
cmp ecx, 4
jae 0x54aac6
call fcn.00d66671
cmp ecx, 0x23
jbe 0x54aad0
call fcn.00d66671
mov ecx, eax
push ecx
call fcn.00d1159f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
push str.invalid_bitset_N__position
call fcn.00d101aa
int3