Function at 0x41d910
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d6dd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d7200]
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
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
xor esi, esi
nop dword [eax]
inc esi
cmp word [esi*2 + 0x4c1e78], 0
jne 0x41d950
xor ecx, ecx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a2cb
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x41d9a0
mov ebx, 0x4c1e78
mov ecx, edi
sub ebx, edi
mov edx, esi
nop
mov ax, word [ebx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x41d990
xor eax, eax
mov byte [ebp - 0x14], 1
mov word [edi + esi*2], ax
mov dword [ebp - 4], eax
test esi, esi
jne 0x41d9c1
cmp word [edi], si
je 0x41d9be
inc esi
cmp word [edi + esi*2], 0
jne 0x41d9b6
mov dword [ebp - 0x18], esi
cmp esi, 2
jl 0x41db65
push 2
push 1
push 1
push 1
push 0x4bfc34
lea ecx, [ebp - 0x1c]
call fcn.004025a0
test eax, eax
jne 0x41daab
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41da0b
xor eax, eax
test ebx, ebx
je 0x41da08
cmp word [ebx], ax
je 0x41da08
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x41da00
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
lea ecx, [ecx + 1]
cmp word [ecx*2 + 0x4c04fc], 0
jne 0x41da10
lea esi, [eax + ecx]
mov edx, 2
xor ecx, ecx
mov dword [ebp - 0x30], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a2cb
mov edi, eax
mov esi, 0x4c04fc
add esp, 4
mov edx, ebx
mov ecx, edi
mov ebx, 0x5c
sub esi, edi
mov word [ecx], bx
add ecx, 2
movzx eax, word [esi + ecx]
mov ebx, eax
test ax, ax
jne 0x41da52
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
test ebx, ebx
je 0x41da91
movzx eax, word [ebx]
mov esi, eax
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x30]
test ax, ax
je 0x41da91
movzx eax, ax
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x41da80
xor eax, eax
mov word [ecx], ax
test ebx, ebx
je 0x41daa3
push ebx
call fcn.00489f13
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x41dab1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 6
test esi, esi
jne 0x41dace
test edi, edi
je 0x41dacb
cmp word [edi], si
je 0x41dacb
inc esi
cmp word [edi + esi*2], 0
jne 0x41dac3
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x41dae2
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
test edi, edi
jne 0x41daf7
push 2
call fcn.0048a2cb
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
push 0
push 0x2000004
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0
test esi, esi
je 0x41db65
or ebx, 0xffffffff
cmp esi, 0xffffffff
je 0x41db65
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
push eax
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0xffffffff
push eax
push 0
push 0
push 0x2d1080
push esi
mov dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
cmovne ebx, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41db68
or ebx, 0xffffffff
test edi, edi
je 0x41db75
push edi
call fcn.00489f13
add esp, 4
mov eax, ebx
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.00489f05
mov esp, ebp
pop ebp
ret