Function at 0x5474c0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd72ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0xdbd0c4]
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.00536cf0
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov byte [ebp - 4], 1
cmp edx, 0x20
jae 0x5477c7
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 0x547753
push 2
push 0xd7b80c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00463b60
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.00534e40
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x5475a0
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 0x5475f6
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x5475ed
test cl, 0x1f
jne 0x547779
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x547779
sub ecx, eax
cmp ecx, 4
jb 0x547779
cmp ecx, 0x23
ja 0x547779
mov ecx, eax
push ecx
call fcn.00cfa58f
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 0x547652
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x547649
test cl, 0x1f
jne 0x547779
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x547779
sub ecx, eax
cmp ecx, 4
jb 0x547779
cmp ecx, 0x23
ja 0x547779
mov ecx, eax
push ecx
call fcn.00cfa58f
add esp, 4
test bh, bh
je 0x547753
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.00463b60
push esi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0056a680
push 1
push 0xd7b818
lea ecx, [ebp - 0x28]
call fcn.0056a770
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 0x547737
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 0x54773a
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.00547b70
test eax, eax
jne 0x54773a
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x54771c
mov eax, dword [ecx]
jmp 0x54771e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004361e0
mov ecx, edi
call fcn.00536d80
jmp 0x54773a
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x547753
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00576da0
inc bl
mov byte [ebp - 0x5c], bl
cmp bl, 0x5a
jle 0x547517
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x5477ab
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x5477a2
test cl, 0x1f
je 0x54777e
call fcn.00d4f631
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x54778a
call fcn.00d4f631
sub ecx, eax
cmp ecx, 4
jae 0x547796
call fcn.00d4f631
cmp ecx, 0x23
jbe 0x5477a0
call fcn.00d4f631
mov ecx, eax
push ecx
call fcn.00cfa58f
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.00cfa7a1
mov esp, ebp
pop ebp
ret
push str.invalid_bitset_N__position
call fcn.00cf919a
int3