Function at 0x404680
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041c000
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x1cb]
push 0
push eax
mov byte [ebp - 0x1cc], 0
call fcn.00417390
add esp, 0xc
lea edi, [ebp - 0x1cc]
call fcn.004043d0
push 0x200
push 8
call dword [0x42d0c8]
push eax
call dword [0x42d0c4]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ebx, eax
push 0x431864
mov dword [ebp - 0xc], ebx
call dword [0x42d11c]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x40486a
mov edi, dword [0x42d120]
xor eax, eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push 8
lea edx, [ebp - 0x1c]
push edx
push eax
push eax
push 0x7405c
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call edi
test eax, eax
je 0x40486a
xor eax, eax
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
push 0x28
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0x700a0
push esi
call edi
test eax, eax
je 0x40486a
push 0xf00
lea edx, [ebp - 0x124c]
push 0
push edx
call fcn.00417390
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
push 0xf00
lea ecx, [ebp - 0x124c]
push ecx
push 0
push 0
push 0x70050
push esi
call edi
test eax, eax
je 0x40486a
mov edi, dword [ebp - 0x1248]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push edi
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
push 0x43188c
push 0x200
push ebx
mov dword [ebp - 0x24], edi
call fcn.0041669f
xor eax, eax
add esp, 0x30
mov dword [ebp - 8], eax
test edi, edi
jle 0x404863
lea ebx, [ebp - 0x121c]
jmp 0x4047f0
cmp dword [ebx + 0x18], 0
je 0x404852
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0x10]
push eax
add ah, cl
int3
je 0x4049c6
mov eax, dword [esi + 0x28]
mov edx, eax
and dl, 4
cmp dl, 4
sete cl
test cl, cl
jne 0x4048bb
test al, 0x41
je 0x4048b2
push 0x1d
lea edi, [esi + 0x14]
call dword [0x42d380]
push eax
mov eax, dword [esi + 0x10]
push edi
push eax
call dword [0x42d384]
push 0xd
call dword [0x42d380]
mov ecx, dword [esi + 0x10]
push eax
push edi
push ecx
call dword [0x42d37c]
mov dl, byte [ebx + 0x84]
and dl, 0x80
movzx eax, dl
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x11
push eax
jmp 0x4048bd
test byte [ebx + 0x84], 0x80
jne 0x4048c6
push 0x11
call dword [0x42d360]
mov dword [esi + 0x3c], eax
mov ecx, dword [esi + 0x3c]
mov edi, dword [esi + 0x10]
push ecx
push edi
call dword [0x42d074]
mov edx, dword [esi + 0x64]
push edx
push edi
call dword [0x42d078]
mov eax, dword [ebx + 4]
push 0
push 0
push 0x31
push eax
call dword [0x42d3f4]
mov ebx, eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x404907
push ebx
push edi
call dword [0x42d094]
mov dword [ebp - 4], eax
push 0xc7
lea ecx, [ebp - 0xef]
push 0
push ecx
mov byte [ebp - 0xf0], 0
call fcn.00411f90
mov ecx, dword [esi + 0x24]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0xf0]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push ecx
push 0x441
push eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 2
mov dword [ebp - 8], 0xc8
call dword [0x42d3f4]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x85]
shl edx, 0x12
not edx
and edx, 0x100000
or edx, 0x25
push edx
add esi, 0x14
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0xf0]
push eax
push edi
call dword [0x42d2e0]
test ebx, ebx
je 0x4049af
mov ecx, dword [ebp - 4]
push ecx
push edi
call dword [0x42d094]
mov edx, dword [ebp + 0xc]
mov eax, 4
mov dword [edx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test byte [ebx + 0x84], 0x80
jne 0x4049e3
push 0x11
call dword [0x42d360]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8