Function at 0x518580
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xab4498
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0xaf408c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [edi + 0xb4]
mov dword [ebp - 4], 0
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cdq
mov dword [ebp - 0x2c], eax
mov al, 0x41
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x64], al
mov dword [ebp - 0x70], ecx
nop dword [eax]
movsx edx, al
mov eax, 1
sub edx, 0x41
mov ecx, edx
shr edx, 5
and ecx, 0x1f
shl eax, cl
test dword [ebp + edx*4 - 0x2c], eax
je 0x5188a6
mov esi, dword [edi + 0xb8]
lea ecx, [ebp - 0x88]
push 2
mov dword [ebp - 0x88], 0
push 0xaba850
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.004731c0
push dword [ebp - 0x64]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
push 1
push 0
call fcn.00522950
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov edx, dword [ebp - 0x14]
cmp eax, 3
mov byte [ebp - 4], 1
sete byte [ebp - 0x59]
cmp edx, 0x10
jb 0x5186e4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5186da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518901
push edx
push ecx
call fcn.00a3c1d5
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x518731
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x518727
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518901
push edx
push ecx
call fcn.00a3c1d5
add esp, 8
cmp byte [ebp - 0x59], 0
je 0x5188a6
push 4
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push str.._
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004731c0
push dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00473a30
push 1
push 0xab693c
lea ecx, [ebp - 0x28]
call fcn.00473040
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0xc0]
cmovae ecx, dword [ebp - 0x28]
or esi, 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0
push ecx
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x51886f
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push 0
push eax
push 0xc
mov ecx, dword [ecx + 0xb0]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x2d1080
push edi
call ecx
test eax, eax
push edi
cmovne esi, dword [ebp - 0x54]
call dword [ebp - 0x70]
mov edi, dword [ebp - 0x60]
cmp esi, 0xffffffff
je 0x518872
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.00518cf0
test eax, eax
jne 0x518872
sub esp, 0x18
mov esi, esp
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
cmp ecx, 0x10
jae 0x518829
movups xmm0, xmmword [eax]
mov edi, 0xf
movups xmmword [esi], xmm0
jmp 0x51885d
mov edi, ecx
mov eax, SysReAllocString
or edi, 0xf
mov ecx, esi
cmp edi, 0x7fffffff
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.00472e60
mov ecx, dword [ebp - 0x68]
inc ecx
mov dword [esi], eax
push ecx
push dword [ebp - 0x6c]
push eax
call fcn.00a8d690
mov ecx, dword [ebp - 0x68]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x60]
mov ecx, edi
call fcn.0050cf10
jmp 0x518872
mov edi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x5188a6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51889c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518901
push edx
push ecx
call fcn.00a3c1d5
add esp, 8
mov al, byte [ebp - 0x64]
inc al
mov byte [ebp - 0x64], al
cmp al, 0x5a
jle 0x5185f0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5188e6
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5188dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518901
push edx
push ecx
call fcn.00a3c1d5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a3bfd6
mov esp, ebp
pop ebp
ret
call fcn.00a91621
int3