Function at 0x41d9a0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d6ad
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 + 0x4c1e58], 0
jne 0x41d9e0
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.0048a28e
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x41da30
mov ebx, 0x4c1e58
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 0x41da20
xor eax, eax
mov byte [ebp - 0x14], 1
mov word [edi + esi*2], ax
mov dword [ebp - 4], eax
test esi, esi
jne 0x41da51
cmp word [edi], si
je 0x41da4e
inc esi
cmp word [edi + esi*2], 0
jne 0x41da46
mov dword [ebp - 0x18], esi
cmp esi, 2
jl 0x41dbf5
push 2
push 1
push 1
push 1
push 0x4bfc34
lea ecx, [ebp - 0x1c]
call fcn.004025a0
test eax, eax
jne 0x41db3b
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41da9b
xor eax, eax
test ebx, ebx
je 0x41da98
cmp word [ebx], ax
je 0x41da98
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x41da90
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
lea ecx, [ecx + 1]
cmp word [ecx*2 + 0x4c04fc], 0
jne 0x41daa0
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.0048a28e
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 0x41dae2
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
test ebx, ebx
je 0x41db21
movzx eax, word [ebx]
mov esi, eax
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x30]
test ax, ax
je 0x41db21
movzx eax, ax
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x41db10
xor eax, eax
mov word [ecx], ax
test ebx, ebx
je 0x41db33
push ebx
call fcn.00489ed3
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x41db41
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 6
test esi, esi
jne 0x41db5e
test edi, edi
je 0x41db5b
cmp word [edi], si
je 0x41db5b
inc esi
cmp word [edi + esi*2], 0
jne 0x41db53
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x41db72
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
test edi, edi
jne 0x41db87
push 2
call fcn.0048a28e
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 0x41dbf5
or ebx, 0xffffffff
cmp esi, 0xffffffff
je 0x41dbf5
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 0x41dbf8
or ebx, 0xffffffff
test edi, edi
je 0x41dc05
push edi
call fcn.00489ed3
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.00489ec5
mov esp, ebp
pop ebp
ret