Function at 0x44614d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
movzx ecx, word [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x10]
sar ebx, 0x10
xor eax, eax
push esi
and ebx, 0xffdf
test cl, 1
push edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x446186
test cl, 8
je 0x446186
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
jne 0x4461a1
push 0x200
lea ecx, [ebp - 0x18]
call fcn.00435c7d
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x49bafc
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x1b
add eax, 0xc
pop edx
and dword [eax + 4], 0
or ecx, 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax - 4], ecx
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
add eax, 0x18
dec edx
jne 0x4461c1
call dword [0x494228]
cmp bx, 0x61
mov dword [ebp - 0x28], eax
jb 0x4461f7
cmp bx, 0x7a
ja 0x4461f7
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x446215
cmp bx, 0x5a
ja 0x446215
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
movsx ebx, ax
jmp 0x446475
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x28]
test ecx, eax
je 0x44646e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x41
mov word [ebp - 0x48], ax
lea eax, [ebx + ebx*2]
lea esi, [ecx + eax*8]
lea eax, [ebx + 0x41]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x48]
push eax
call dword [fcn.004941c4]
mov edi, eax
cmp edi, 3
mov dword [ebp - 0x24], edi
je 0x446288
cmp edi, 2
je 0x446288
and dword [esi], 0
xor al, al
or byte [esi + 0x11], 0xc0
cmp edi, 1
je 0x44646e
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
je 0x44629f
cmp ecx, 0x10
jne 0x44628c
cmp edi, 2
jmp 0x4462a2
mov al, 1
jmp 0x44626d
cmp ecx, 4
je 0x4462a8
test al, al
jne 0x4462a8
cmp dword [ebp - 0x14], 0
je 0x44646e
cmp edi, 5
jne 0x44646e
or dword [ebp - 8], 0xffffffff
cmp edi, 2
jne 0x4462ec
cmp word [ebp - 0xc], 1
jg 0x4462ec
lea eax, [ebx*4 + 0x4ad220]
cmp dword [eax], 0
je 0x4462ec
cmp ecx, 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x4462d8
cmp eax, 0xb
je 0x44646e
cmp ecx, 4
je 0x4462ec
cmp ecx, 0x10
je 0x4462ec
cmp dword [ebp - 8], 0xb
jne 0x44646e
xor eax, eax
push eax
push 0x20000000
push 3
push eax
push 3
mov dword [ebp - 4], eax
push 0x80000000
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 4]
call fcn.004045f9
xor eax, eax
cmp dword [ebp - 4], eax
je 0x446466
cmp dword [ebp - 8], eax
jge 0x44632f
push ebx
push 1
push eax
push dword [ebp - 4]
call fcn.0043a9c5
add esp, 0x10
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x446355
cmp dword [ebp + 0x10], 0x10
jne 0x446345
cmp dword [ebp - 8], 0xb
jne 0x446355
jmp 0x446466
cmp dword [ebp + 0x10], 4
je 0x446355
cmp dword [ebp - 8], 0xb
jne 0x446466
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov edi, 0x90
push edi
push 0
push ebx
call fcn.0047fd70
or dword [ebx + 0x18], 0xffffffff
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push edi
mov edi, dword [fcn.004943dc]
push ebx
push eax
push eax
push 0x70048
push dword [ebp - 4]
call edi
test eax, eax
mov cx, word [esi]
mov word [ebp - 0x1c], cx
je 0x4463a5
mov ax, word [ebx + 0x18]
mov word [ebp - 0x1c], ax
and dword [ebp - 0x208], 0
push 0
call dword [fcn.0049441c]
or dword [ebx + 4], 0xffffffff
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0xc
push ebx
push eax
push eax
push 0x2d1080
push dword [ebp - 4]
call edi
mov dword [ebp - 0x20], eax
call dword [fcn.0049447c]
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x446414
cmp dword [ebp - 0x24], 5
jne 0x446414
cmp dword [ebp - 0x20], edi
je 0x446466
push 0x4958f8
push edi
lea eax, [ebp - 0x78]
push eax
movzx eax, word [ebx + 4]
push eax
mov word [ebp - 0x78], di
call fcn.0043a346
add esp, 0x10
cmp word [ebp - 0x78], di
je 0x446466
movzx eax, word [ebp - 0x48]
mov dword [esi + 0x10], eax
cmp dword [ebp - 0x20], 0
movsx edi, word [ebp - 0x1c]
mov dword [esi], edi
je 0x446427
movsx eax, word [ebx + 4]
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x44643c
push dword [ebp - 4]
push 0
call fcn.00437883
pop ecx
pop ecx
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
movsx edx, word [ebx + 4]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
push 0x49baa0
push 0x4acf10
call fcn.0040cde2
add esp, 0x1c
lea ecx, [ebp - 4]
call fcn.00402b27
inc dword [ebp - 0xc]
movsx ebx, word [ebp - 0xc]
cmp ebx, dword [ebp - 0x10]
jle 0x446220
push 0
call dword [0x494478]
lea ecx, [ebp - 0x18]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret