Function at 0x537090
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd5f546
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0xda90c4]
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.00522810
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov byte [ebp - 4], 1
cmp edx, 0x20
jae 0x537397
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 0x537323
push 2
push 0xd674a4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00451dd0
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.00520a70
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x537170
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 0x5371c6
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x5371bd
test cl, 0x1f
jne 0x537349
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x537349
sub ecx, eax
cmp ecx, 4
jb 0x537349
cmp ecx, 0x23
ja 0x537349
mov ecx, eax
push ecx
call fcn.00ce6e1f
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 0x537222
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x537219
test cl, 0x1f
jne 0x537349
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x537349
sub ecx, eax
cmp ecx, 4
jb 0x537349
cmp ecx, 0x23
ja 0x537349
mov ecx, eax
push ecx
call fcn.00ce6e1f
add esp, 4
test bh, bh
je 0x537323
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.00451dd0
push esi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00557060
push 1
push 0xd674b0
lea ecx, [ebp - 0x28]
call fcn.00557150
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 0x537307
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 0x53730a
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.00537740
test eax, eax
jne 0x53730a
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x5372ec
mov eax, dword [ecx]
jmp 0x5372ee
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00431a70
mov ecx, edi
call fcn.005228a0
jmp 0x53730a
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x537323
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00562ae0
inc bl
mov byte [ebp - 0x5c], bl
cmp bl, 0x5a
jle 0x5370e7
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x53737b
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x537372
test cl, 0x1f
je 0x53734e
call fcn.00d3bed1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x53735a
call fcn.00d3bed1
sub ecx, eax
cmp ecx, 4
jae 0x537366
call fcn.00d3bed1
cmp ecx, 0x23
jbe 0x537370
call fcn.00d3bed1
mov ecx, eax
push ecx
call fcn.00ce6e1f
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.00ce7031
mov esp, ebp
pop ebp
ret
push str.invalid_bitset_N__position
call fcn.00ce5a2a
int3